Skip to content

Commit 51d0290

Browse files
authored
Merge pull request #491 from moul/dev/moul/update
Various Changes
2 parents e0fe72a + 19c414c commit 51d0290

File tree

347 files changed

+65792
-26453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

347 files changed

+65792
-26453
lines changed

.gopmfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[deps]
2-
github.com/Sirupsen/logrus =
3-
github.com/docker/docker =
4-
github.com/scaleway/scaleway-cli =
2+
github.com/sirupsen/logrus =
3+
github.com/docker/docker =
4+
github.com/scaleway/scaleway-cli =
55

66
[res]
7-
include =
8-
7+
include =

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ matrix:
1919
env: TEST_WITH_REAL_API=0 GOTESTFLAGS="-race -cpu=1,2,4"
2020
- go: 1.8
2121
env: TEST_WITH_REAL_API=0 GOTESTFLAGS="-race -cpu=1,2,4"
22-
- go: 1.8
22+
- go: 1.9
23+
env: TEST_WITH_REAL_API=0 GOTESTFLAGS="-race -cpu=1,2,4"
24+
- go: "1.10"
25+
env: TEST_WITH_REAL_API=0 GOTESTFLAGS="-race -cpu=1,2,4"
26+
- go: "1.10"
2327
env: TEST_WITH_REAL_API=1
2428
- go: tip
2529
env: TEST_WITH_REAL_API=0 GOTESTFLAGS="-race -cpu=1,2,4"

Godeps/Godeps.json

Lines changed: 0 additions & 226 deletions
This file was deleted.

Godeps/Readme

Lines changed: 0 additions & 5 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Go parameters
2-
GOENV ?= GO15VENDOREXPERIMENT=1
2+
GOENV ?=
33
GO ?= $(GOENV) go
44
GODEP ?= $(GOENV) godep
55
GOBUILD ?= $(GO) build
@@ -41,13 +41,6 @@ REV = $(shell git rev-parse --short HEAD 2>/dev/null || echo "nogit")
4141
LDFLAGS = "-X `go list ./pkg/scwversion`.GITCOMMIT=$(REV) -s"
4242
BUILDER = scaleway-cli-builder
4343

44-
# Check go version
45-
GOVERSIONMAJOR = $(shell go version | grep -o '[1-9].[0-9]' | cut -d '.' -f1)
46-
GOVERSIONMINOR = $(shell go version | grep -o '[1-9].[0-9]' | cut -d '.' -f2)
47-
VERSION_GE_1_5 = $(shell [ $(GOVERSIONMAJOR) -gt 1 -o $(GOVERSIONMINOR) -ge 5 ] && echo true)
48-
ifneq ($(VERSION_GE_1_5),true)
49-
$(error Bad go version, please install a version greater than or equal to 1.5)
50-
endif
5144

5245
BUILD_LIST = $(foreach int, $(COMMANDS), $(int)_build)
5346
CLEAN_LIST = $(foreach int, $(COMMANDS) $(PACKAGES), $(int)_clean)

cmd/scw/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ package main
1111
import (
1212
"os"
1313

14-
"github.com/Sirupsen/logrus"
1514
"github.com/scaleway/scaleway-cli/pkg/cli"
15+
"github.com/sirupsen/logrus"
1616
)
1717

1818
func main() {

pkg/api/README.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
11
# Scaleway's API
22

3-
[![GoDoc](https://godoc.org/github.com/scaleway/scaleway-cli/pkg/api?status.svg)](https://godoc.org/github.com/scaleway/scaleway-cli/pkg/api)
4-
5-
This package contains facilities to play with the Scaleway API, it includes the following features:
6-
7-
- dedicated configuration file containing credentials to deal with the API
8-
- caching to resolve UUIDs without contacting the API
9-
10-
## Links
11-
12-
- [API documentation](https://developer.scaleway.com)
13-
- [Official Python SDK](https://github.com/scaleway/python-scaleway)
14-
- Projects using this SDK
15-
- https://github.com/scaleway/devhub
16-
- https://github.com/scaleway/docker-machine-driver-scaleway
17-
- https://github.com/huseyin/docker-machine-driver-scaleway
18-
- https://github.com/scaleway-community/scaleway-ubuntu-coreos/blob/master/overlay/usr/local/update-firewall/scw-api/cache.go
19-
- https://github.com/pulcy/quark
20-
- https://github.com/hex-sh/terraform-provider-scaleway
21-
- https://github.com/tscolari/bosh-scaleway-cpi
22-
- Other **golang** clients
23-
- https://github.com/lalyos/onlabs
24-
- https://github.com/meatballhat/packer-builder-onlinelabs
25-
- https://github.com/nlamirault/go-scaleway
26-
- https://github.com/golang/build/blob/master/cmd/scaleway/scaleway.go
3+
## Deprecated in favor of https://github.com/scaleway/go-scaleway

pkg/api/helpers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ import (
1414
"sync"
1515
"time"
1616

17-
"github.com/Sirupsen/logrus"
18-
log "github.com/Sirupsen/logrus"
1917
"github.com/docker/docker/pkg/namesgenerator"
2018
"github.com/dustin/go-humanize"
2119
"github.com/moul/anonuuid"
2220
"github.com/scaleway/scaleway-cli/pkg/utils"
21+
"github.com/sirupsen/logrus"
22+
log "github.com/sirupsen/logrus"
2323
)
2424

2525
// ScalewayResolvedIdentifier represents a list of matching identifier for a specifier pattern

pkg/cli/cmd_images.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ package cli
77
import (
88
"strings"
99

10-
"github.com/Sirupsen/logrus"
1110
"github.com/scaleway/scaleway-cli/pkg/commands"
11+
"github.com/sirupsen/logrus"
1212
)
1313

1414
var cmdImages = &Command{

pkg/cli/cmd_ps.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ package cli
77
import (
88
"strings"
99

10-
"github.com/Sirupsen/logrus"
1110
"github.com/scaleway/scaleway-cli/pkg/commands"
11+
"github.com/sirupsen/logrus"
1212
)
1313

1414
var cmdPs = &Command{

0 commit comments

Comments
 (0)