secretsapi_test

package
v0.0.0-...-98ed532 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL