Skip to content

Commit

Permalink
Update modules
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Feb 1, 2023
1 parent 0e740fe commit 8351174
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 309 deletions.
2 changes: 0 additions & 2 deletions cmd/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ github.com/hetznercloud/hcloud-go v1.18.2/go.mod h1:EhElojlVU1biA5JgBaV8rRU1vE5+
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/imdario/mergo v0.3.5 h1:JboBksRwiiAJWvIYJVo46AfV+IAIKZpfrSzVKj42R4Q=
github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
github.com/inlets/cloud-provision v0.0.0-20210717102404-016f5231b09e h1:VkNdQe7+io6kQWTvApDE19vVRKP1o7dPHzOMJHLm06Y=
github.com/inlets/cloud-provision v0.0.0-20210717102404-016f5231b09e/go.mod h1:jeujEe39lFs3CP+rzvqSmlzTJfOKohSPBye9P7Ms2oQ=
github.com/inlets/cloud-provision v0.5.5 h1:FbBhD4f7hfC2KzY9litxP0C9XlX0K9sgCQHpD6WZRkY=
github.com/inlets/cloud-provision v0.5.5/go.mod h1:T69DDSmIHdx21PWqLM+zie/1P4rnJIeMn5dyAWWf164=
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af h1:pmfjZENx5imkbgOkpRUYLnmbU7UEFbjtDA2hxJ1ichM=
Expand Down
10 changes: 5 additions & 5 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ func main() {
flag.Parse()

if len(accessToken) == 0 {
fmt.Fprintf(os.Stderr, "--access-token required")
fmt.Fprintf(os.Stderr, "--access-token required\n")
os.Exit(1)
}

provisioner, err := provision.NewDigitalOceanProvisioner(accessToken)
if err != nil {
fmt.Fprintf(os.Stderr, "%s", err.Error())
fmt.Fprintf(os.Stderr, "%s\n", err.Error())
os.Exit(1)
}

if len(userDataFile) > 0 {
res, err := ioutil.ReadFile(userDataFile)
if err != nil {
fmt.Fprintf(os.Stderr, "%s", err.Error())
fmt.Fprintf(os.Stderr, "%s\n", err.Error())
os.Exit(1)
}

Expand All @@ -58,7 +58,7 @@ func main() {
})

if err != nil {
fmt.Fprintf(os.Stderr, "%s", err.Error())
fmt.Fprintf(os.Stderr, "%s\n", err.Error())
os.Exit(1)
}

Expand All @@ -71,7 +71,7 @@ func main() {
res, err := provisioner.Status(res.ID)

if err != nil {
fmt.Fprintf(os.Stderr, "%s", err.Error())
fmt.Fprintf(os.Stderr, "%s\n", err.Error())
os.Exit(1)
}
if res.Status == provision.ActiveStatus {
Expand Down
55 changes: 27 additions & 28 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,43 @@ module github.com/inlets/cloud-provision
go 1.18

require (
github.com/aws/aws-sdk-go v1.44.75
github.com/digitalocean/godo v1.83.0
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.3
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute v1.0.0
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork v1.0.0
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0
github.com/aws/aws-sdk-go v1.44.191
github.com/digitalocean/godo v1.95.0
github.com/dimchansky/utfbom v1.1.1
github.com/dirien/ovh-go-sdk v0.2.0
github.com/golang/mock v1.6.0
github.com/google/uuid v1.3.0
github.com/hashicorp/go-retryablehttp v0.7.1
github.com/hetznercloud/hcloud-go v1.35.2
github.com/linode/linodego v1.9.1
github.com/packethost/packngo v0.25.0
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9
github.com/hashicorp/go-retryablehttp v0.7.2
github.com/hetznercloud/hcloud-go v1.39.0
github.com/linode/linodego v1.12.0
github.com/packethost/packngo v0.29.0
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.12
github.com/sethvargo/go-password v0.2.0
github.com/vultr/govultr/v2 v2.17.2
golang.org/x/oauth2 v0.0.0-20220808172628-8227340efae7
google.golang.org/api v0.92.0
)

require (
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.3
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute v1.0.0
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork v1.0.0
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0
golang.org/x/oauth2 v0.4.0
google.golang.org/api v0.109.0
)

require (
cloud.google.com/go/compute v1.7.0 // indirect
cloud.google.com/go/compute v1.14.0 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect
github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/go-resty/resty/v2 v2.1.1-0.20191201195748-d7b97669fe48 // indirect
github.com/golang-jwt/jwt v3.2.1+incompatible // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect
github.com/googleapis/gax-go/v2 v2.4.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.1 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.1 // indirect
github.com/googleapis/gax-go/v2 v2.7.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
Expand All @@ -52,14 +50,15 @@ require (
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
go.opencensus.io v0.23.0 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa // indirect
golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect
golang.org/x/sys v0.0.0-20220624220833-87e55d714810 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/net v0.5.0 // indirect
golang.org/x/sys v0.4.0 // indirect
golang.org/x/text v0.6.0 // indirect
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f // indirect
google.golang.org/grpc v1.47.0 // indirect
google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef // indirect
google.golang.org/grpc v1.51.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/ini.v1 v1.66.6 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
Expand Down
Loading

0 comments on commit 8351174

Please sign in to comment.