fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetClientIDSecretInEnv

func SetClientIDSecretInEnv() func()

Types

type GetCertificateFn

type GetCertificateFn func(ctx context.Context, vaultBaseURL string, certificateName string, certificateVersion string) (keyvault.CertificateBundle, error)

func NewGetCertificateFn

func NewGetCertificateFn(certificate string) GetCertificateFn

type GetKeyFn

type GetKeyFn func(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string) (keyvault.KeyBundle, error)

func NewGetKeyFn

func NewGetKeyFn(key string) GetKeyFn

type GetSecretFn

type GetSecretFn func(ctx context.Context, vaultBaseURL string, secretName string, secretVersion string) (keyvault.SecretBundle, error)

func NewGetSecretFn

func NewGetSecretFn(secretString string) GetSecretFn

type SecretClient

type SecretClient struct {
	GetSecretFn      GetSecretFn
	GetKeyFn         GetKeyFn
	GetCertificateFn GetCertificateFn
}

func (*SecretClient) GetCertificate

func (sc *SecretClient) GetCertificate(ctx context.Context, vaultBaseURL string, certificateName string, certificateVersion string) (keyvault.CertificateBundle, error)

func (*SecretClient) GetKey

func (sc *SecretClient) GetKey(ctx context.Context, vaultBaseURL string, keyName string, keyVersion string) (keyvault.KeyBundle, error)

func (*SecretClient) GetSecret

func (sc *SecretClient) GetSecret(ctx context.Context, vaultBaseURL string, secretName string, secretVersion string) (keyvault.SecretBundle, error)

Jump to

Keyboard shortcuts

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