stub

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretClient

type SecretClient struct {
	// contains filtered or unexported fields
}

SecretClient satisfies the secretClient interface in package azcfg. Purpose is to be used as a stub for secret retrieval.

func NewSecretClient

func NewSecretClient(secrets map[string]string, err error) SecretClient

NewSecretClient creates a new SecretClient. Argument the map[string]string secrets should be key-value pairs of secret names and values. Argument error is to set if method calls should return an error.

func (SecretClient) GetSecrets added in v0.10.0

func (c SecretClient) GetSecrets(names []string, options ...secret.Option) (map[string]secret.Secret, error)

Get secrets set to the stub client.

type SettingClient added in v0.10.0

type SettingClient struct {
	// contains filtered or unexported fields
}

SettingClient satisfies the settingClient interface in package azcfg. Purpose is to be used as a stub for setting retrieval.

func NewSettingClient added in v0.10.0

func NewSettingClient(settings map[string]string, err error) SettingClient

NewSettingClient creates a new SettingClient. Argument the map[string]string settings should be key-value pairs of setting keys and values. Argument error is to set if method calls should return an error.

func (SettingClient) GetSettings added in v0.10.0

func (c SettingClient) GetSettings(keys []string, options ...setting.Option) (map[string]setting.Setting, error)

Get settings set to the stub client.

Jump to

Keyboard shortcuts

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