Skip to content

v0.3.0

Compare
Choose a tag to compare
@tuxtof tuxtof released this 27 Sep 13:41
· 66 commits to main since this release
bd4aa73

Added

  • Added the "environment" package which provides abstraction for retrieving settings like API endpoints, credentials and their sources to evolve independently from clients
  • Add logr based configurable logging for internal.NewClient
  • Add WithCertificate functional option for v3 client constructor
  • Add WithRoundTripper functional option for v3 client to add custom interceptors
  • Add WithLogger functional option for v3 client
  • Add support for Nutanix-style credentials to "secretdir" environment provider

Changed

  • The http client has been moved from pkg/nutanix to repo root
  • The fc stubs have been moved from pkg/nutanix/fc to fc
  • The foundation stubs have been moved from pkg/nutanix/foundation to foundation
  • The karbon stubs have been moved from pkg/nutanix/karbon to karbon
  • The v3 stubs have been moved from pkg/nutanix/v3 to v3
  • The underlying http client is moved from root package to internal
  • The root package is renamed from prism_go_client to prismgoclient
  • Modify NewClient constructor to use functional options
  • NewRequest and NewAuthRequest methods on internal.Client don't admit context in params
  • v3 client constructor now takes functional options as parameters
  • v3 client constructor returns error instead of failing silently
  • Add context to v3 interface method parameters to explicitly propagate context
  • Bugfix in secretdir environment provider for tolerating symlinks

Removed

  • remove internal.NewBaseClient constructor