Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeTestClient ¶
func InitializeTestClient(bearerToken string, auth *authentication.Auth) *secretsapi.Client
InitializeTestClient initializes a testable secrets client using environment defaults for schema, host, and path. While this function departs from the secretsapi.InitializeClient signature, it's more useful for testing.
func NewDefaultTestClient ¶
func NewDefaultTestClient(bearerToken string, auth *authentication.Auth) *secretsapi.Client
NewDefaultTestClient creates a testable secrets client using environment defaults for schema, host, and path.
func NewTestClient ¶
func NewTestClient(scheme, host, basePath string, auth *authentication.Auth) *secretsapi.Client
NewTestClient creates a new secretsapi.Client with a testable Transport. Makes it possible to use httpmock.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.