Documentation ¶
Index ¶
- type KeyVaultGetSecretAPI
- type SecretsClient
- type SecretsClientOpt
- func CacheTTL(ttl time.Duration) SecretsClientOpt
- func ClientIDAndSecret(clientID, clientSecret string) SecretsClientOpt
- func KeyVaultName(keyVaultName string) SecretsClientOpt
- func TenantID(tenantID string) SecretsClientOpt
- func UseChainCredentials() SecretsClientOpt
- func WithContext(ctx context.Context) SecretsClientOpt
- func WithMockClient(api KeyVaultGetSecretAPI) SecretsClientOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyVaultGetSecretAPI ¶ added in v1.8.5
type KeyVaultGetSecretAPI interface {
GetSecret(ctx context.Context, name string, version string, options *azsecrets.GetSecretOptions) (azsecrets.GetSecretResponse, error)
}
type SecretsClient ¶ added in v1.8.0
type SecretsClient struct { common.SecretClient SecretCache *cache.Cache // contains filtered or unexported fields }
func NewSecretsClient ¶ added in v1.8.0
func NewSecretsClient(opts ...SecretsClientOpt) (*SecretsClient, error)
func (*SecretsClient) GetJSONSecret ¶ added in v1.8.0
func (c *SecretsClient) GetJSONSecret(secretName string, secretKey string) (string, error)
func (*SecretsClient) GetTextSecret ¶ added in v1.8.0
func (c *SecretsClient) GetTextSecret(secretName string) (string, error)
type SecretsClientOpt ¶ added in v1.8.0
type SecretsClientOpt interface {
// contains filtered or unexported methods
}
func CacheTTL ¶ added in v1.6.0
func CacheTTL(ttl time.Duration) SecretsClientOpt
func ClientIDAndSecret ¶ added in v1.8.0
func ClientIDAndSecret(clientID, clientSecret string) SecretsClientOpt
func KeyVaultName ¶
func KeyVaultName(keyVaultName string) SecretsClientOpt
func TenantID ¶
func TenantID(tenantID string) SecretsClientOpt
func UseChainCredentials ¶ added in v1.8.7
func UseChainCredentials() SecretsClientOpt
func WithContext ¶ added in v1.8.5
func WithContext(ctx context.Context) SecretsClientOpt
func WithMockClient ¶ added in v1.8.5
func WithMockClient(api KeyVaultGetSecretAPI) SecretsClientOpt
Click to show internal directories.
Click to hide internal directories.