Documentation ¶
Index ¶
- Variables
- func NewVaultSecretsMock(t *testing.T) (*api.Client, error)
- type VaultSecretsMock
- func (vm *VaultSecretsMock) CreateCA(ctx context.Context, caType secrets.CAType, caName string, ca secrets.Cert) (secrets.Cert, error)
- func (vm *VaultSecretsMock) DeleteCA(ctx context.Context, caType secrets.CAType, caName string) error
- func (vm *VaultSecretsMock) DeleteCert(ctx context.Context, caType secrets.CAType, caName string, serialNumber string) error
- func (vm *VaultSecretsMock) GetCA(ctx context.Context, caType secrets.CAType, caName string) (secrets.Cert, error)
- func (vm *VaultSecretsMock) GetCAs(ctx context.Context, caType secrets.CAType) (secrets.Certs, error)
- func (vm *VaultSecretsMock) GetCert(ctx context.Context, caType secrets.CAType, caName string, serialNumber string) (secrets.Cert, error)
- func (vm *VaultSecretsMock) GetIssuedCerts(ctx context.Context, caType secrets.CAType, caName string) (secrets.Certs, error)
- func (vm *VaultSecretsMock) GetSecretProviderName(ctx context.Context) string
- func (vm *VaultSecretsMock) ImportCA(ctx context.Context, caType secrets.CAType, caName string, ...) error
- func (vm *VaultSecretsMock) SignCertificate(ctx context.Context, caType secrets.CAType, caName string, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //Server ErrGetCAs = errors.New("unable to get CAs from secret engine") )
Functions ¶
Types ¶
type VaultSecretsMock ¶ added in v1.0.1
func (*VaultSecretsMock) CreateCA ¶ added in v1.0.1
func (vm *VaultSecretsMock) CreateCA(ctx context.Context, caType secrets.CAType, caName string, ca secrets.Cert) (secrets.Cert, error)
TODO:
func (*VaultSecretsMock) DeleteCert ¶ added in v1.0.1
func (*VaultSecretsMock) GetIssuedCerts ¶ added in v1.0.1
func (*VaultSecretsMock) GetSecretProviderName ¶ added in v1.0.1
func (vm *VaultSecretsMock) GetSecretProviderName(ctx context.Context) string
func (*VaultSecretsMock) SignCertificate ¶ added in v1.0.1
func (vm *VaultSecretsMock) SignCertificate(ctx context.Context, caType secrets.CAType, caName string, csr *x509.CertificateRequest) (string, error)
Click to show internal directories.
Click to hide internal directories.