secret

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoogleSecretManagerClient

func NewGoogleSecretManagerClient(ctx context.Context, retryOpts helper.RetryOptions, opts SecretManagerClientOptions) (*secretmanager.Client, error)

func NewTool

func NewTool(c Client, opts contract.ToolOptions[Client]) *defaultTool

Types

type Client

type Client interface {
	contract.SecretOperator
}

func NewClient

func NewClient(d Dependencies, opts ClientOptions) (Client, error)

type ClientOption

type ClientOption func(*ClientOptions)

func WithCredentialsPath

func WithCredentialsPath(path string) ClientOption

type ClientOptions

type ClientOptions struct {
	CredentialsPath string
}

func ApplyClientOptions

func ApplyClientOptions(opts *ClientOptions, modifiers ...ClientOption) ClientOptions

type Dependencies

type Dependencies struct {
	C contract.SecretManagerClient
}

type SecretManagerClientOptions

type SecretManagerClientOptions struct {
	F               contract.FSysFileReader
	FS              fs.ReadFileFS
	CredentialsPath string
}

Jump to

Keyboard shortcuts

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