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)
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
}
Click to show internal directories.
Click to hide internal directories.