cloud-sdk-go

APACHE-2.0 License

Stars
21
Committers
31

Bot releases are hidden (Show)

cloud-sdk-go - v1.0.0-beta3 - ECE 2.5.0-ms36

Published by karencfv over 4 years ago

Changelog

Notable changes

Add DecodeFlags to reduce parsing code

Adds a new DecodeFlags function which through reflection and
mapstructure is able to decode a cobra.Command defined flags into a
structure's fields which match the flag's type and mapstructure tag.

Add package with Prefixed error type

Adds a new package under pkg/multierror which is aimed to be used
instead of multierror.Error. The main motivation behind this change is
to enforce a prefix to be used in all of the multierrors which will
provide more context to the error consumers.

Modify transport to handle proxied responses

Modifies the ErrCatchTransport type so that it handles the case when
Content-Type is text/html, the auto-generated client framework won't
be able to handle the proxied responses of that type since they're
contingent on the error response specified by the swagger definition,
thus anything with a Content-Type different than application/json
won't be handled and instead a cryptic error will be returned.

Add change tracker backed by Deployments API

New TrackChange function which uses the deployments
API to track any pending changes of a Deployment. It supports tracking
changes by specifying a DeploymentID or ResourceID and Kind which
is very similar to what the legacy plan tracker did.

Detailed changes

  • e888015 api: generate client/models 2.5.0-ms36 (#97)
  • ca0a676 Fix typo in docs (#96)
  • 4a4eeab build(deps): bump github.com/mitchellh/mapstructure from 1.1.2 to 1.2.2 (#90)
  • 7be185a build(deps): bump github.com/go-openapi/validate from 0.19.7 to 0.19.8 (#94)
  • 7acaaaf build(deps): bump github.com/go-openapi/swag from 0.19.8 to 0.19.9 (#93)
  • 0fb44ca cmdutil: Add DecodeFlags to reduce parsing code (#89)
  • ce9de91 deps: revert multierror to 1.0.0 (#87)
  • 84996de build(deps): bump github.com/hashicorp/go-multierror from 1.0.0 to 1.1.0 (#85)
  • 3896c35 build(deps): bump github.com/go-openapi/runtime from 0.19.14 to 0.19.15 (#84)
  • db3c269 build(deps): bump github.com/spf13/cobra from 0.0.6 to 0.0.7 (#83)
  • c64d182 misc: update codeowners (#82)
  • f139ce5 multierror: Add package with Prefixed error type (#81)
  • 68879af api: Modify transport to handle Proxied responses (#80)
  • 546ac80 build(deps): bump github.com/go-openapi/runtime from 0.19.12 to 0.19.14 (#79)
  • 240add7 plan: Add change tracker backed by Deployments API (#66)
cloud-sdk-go - v1.0.0-beta2 - ECE 2.5.0

Published by marclop over 4 years ago

Changelog

Notable changes

This release contains bug fixes, version updates, and development improvements.
As usual, the autogenerated Go code has been updated to match the 2.5.0 ECE API swagger specification.

Features

Customizable User-Agent

Allows the user to configure a user agent via api.Config.UserAgent. If the field is not set, it defaults
to cloud-sdk-go/<version>, which after this release will be cloud-sdk-go/2.5.0.

Bug fixes

Plan tracker reported some plans as successfully finished when they actually failed

Fixes a bug in the plan tracker logic which made it return the first
step which finished with status "error" rather than the last step. This
has many downstream effects but most notably, makes vacates miss the end
result of the vacate and potentially flag a cluster vacate as sucessful
when it is not.

Detailed changes

  • ab3e5bc api: Add custom User-Agent transport (#77)
  • e50562a api: Update API version to 2.5.0 (#76)
  • cf2338d release: Update apidocs.json to ECE 2.5.0 spec (#67)
  • aba24d5 build(deps): bump github.com/go-openapi/errors from 0.19.3 to 0.19.4 (#71)
  • 5e422fb build(deps): bump github.com/go-openapi/runtime from 0.19.11 to 0.19.12 (#72)
  • 4808101 build(deps): bump github.com/go-openapi/strfmt from 0.19.4 to 0.19.5 (#73)
  • a564caa build(deps): bump github.com/go-openapi/validate from 0.19.6 to 0.19.7 (#74)
  • 1afc3c4 build(deps): bump github.com/go-openapi/swag from 0.19.7 to 0.19.8 (#70)
  • 834f44b build(deps): bump github.com/go-openapi/spec from 0.19.6 to 0.19.7 (#69)
  • 6bd291d deps: Bump golangci-lint to v1.23.8 (#68)
  • 8877c73 plan: Fix bug where last step error was missed (#65)
  • 5c4b8bd build(deps): bump github.com/spf13/cobra from 0.0.5 to 0.0.6 (#64)
  • 558f37a feat(cmdutil): add resource closer logger. (#63)
  • ab7bbd2 makefile: using caching in deps target (#61)
  • a8c57d3 release: changelog and version tag for v1.0.0-beta1 (#60)
  • 47fe6b9 build(deps): bump github.com/go-openapi/runtime from 0.19.10 to 0.19.11 (#57)
  • 985599c build(deps): bump github.com/go-openapi/spec from 0.19.5 to 0.19.6 (#56)
  • 2ff814b build: Add Go module cache for GitHub actions (#58)
  • 7c191f6 deps: Update swagger to v0.22.0 (#59)
  • 5469f6f release: changelog and version tag for v1.0.0-bc14 (#55)
  • 9c5dfa6 util: copy cmdutil package files that are not specific to ecctl (#54)
  • 513b94d improve logging names and package structure (#50)
  • 122578f build(deps): bump github.com/go-openapi/runtime from 0.19.9 to 0.19.10 (#51)
  • 1657f03 build(deps): bump github.com/go-openapi/swag from 0.19.6 to 0.19.7 (#52)
  • 0c5a8ad build(deps): bump github.com/go-openapi/validate from 0.19.5 to 0.19.6 (#53)
  • aa9fd3c api: /deployment/{id}/notes should use region path (#49)
  • e4a7634 add the soteria logging wrarppers,utils and assertions (#47)
  • 9d1e170 bump golang-ci linter version to 1.22.2 (#48)
cloud-sdk-go - v1.0.0-beta1 - Update swagger import

Published by karencfv over 4 years ago

Updates swagger to v0.22.0

cloud-sdk-go - v1.0.0-bc14 - Add cmdutil package

Published by karencfv over 4 years ago

Introduces a cmdutil package for common utility functions a cli can use

cloud-sdk-go - v1.0.0-bc13

Published by ppapapetrou76 over 4 years ago

cloud-sdk-go - v1.0.0-bc11

Published by ppapapetrou76 almost 5 years ago

cloud-sdk-go - v1.0.0-bc9 - api: Add Timeout duration field to Config

Published by karencfv almost 5 years ago

  • Adds a Timeout field of time.Duration to the api.Config structure, allowing users to set the Timeout value for all API calls.

  • Updates various dependencies to their latest versions.

cloud-sdk-go - api: Add ErrCatchTransport as DefaultTransport (ECE 2.4.2)

Published by marclop almost 5 years ago

Adds a new type ErrCatchTransport which implements http.RoundTripper. Its intended usage is to be used as the Transport for http.Client(s) which want to successfully be able to unwrap all possible errors returned by the autogenerated code from the swagger definition via api.UnwrapError.

cloud-sdk-go - api: Add Version const defining ECE compatibility (ECE 2.4.2)

Published by marclop almost 5 years ago

Adds an api.Version variable which can be used by clients to see which
ECE compatibility version it has.
Also changes the swagger target to automatically open their ${EDITOR}
after the models have been generated.

$ make swagger
[..]
--> Please update "pkg/api/version.go" with the version number of the ECE compatible definition just used for code generation.
-> Press enter to open the file with vim
cloud-sdk-go - Correct POST /deployment status code to 200

Published by marclop almost 5 years ago

cloud-sdk-go - v1.0.0-bc3 - Boolean validation function in util

Published by karencfv almost 5 years ago

cloud-sdk-go - v1.0.0-bc2 - API spec update to ECE 2.4

Published by karencfv about 5 years ago