mocks

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	//Server
	ErrGetCAs = errors.New("unable to get CAs from secret engine")
)

Functions

func NewVaultSecretsMock

func NewVaultSecretsMock(t *testing.T) (*api.Client, error)

Types

type VaultSecretsMock added in v1.0.1

type VaultSecretsMock struct {
	Client *api.Client
	// contains filtered or unexported fields
}

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) DeleteCA added in v1.0.1

func (vm *VaultSecretsMock) DeleteCA(ctx context.Context, caType secrets.CAType, caName string) error

func (*VaultSecretsMock) DeleteCert added in v1.0.1

func (vm *VaultSecretsMock) DeleteCert(ctx context.Context, caType secrets.CAType, caName string, serialNumber string) error

func (*VaultSecretsMock) GetCA added in v1.0.1

func (vm *VaultSecretsMock) GetCA(ctx context.Context, caType secrets.CAType, caName string) (secrets.Cert, error)

func (*VaultSecretsMock) GetCAs added in v1.0.1

func (vm *VaultSecretsMock) GetCAs(ctx context.Context, caType secrets.CAType) (secrets.Certs, error)

func (*VaultSecretsMock) GetCert added in v1.0.1

func (vm *VaultSecretsMock) GetCert(ctx context.Context, caType secrets.CAType, caName string, serialNumber string) (secrets.Cert, error)

func (*VaultSecretsMock) GetIssuedCerts added in v1.0.1

func (vm *VaultSecretsMock) GetIssuedCerts(ctx context.Context, caType secrets.CAType, caName string) (secrets.Certs, error)

func (*VaultSecretsMock) GetSecretProviderName added in v1.0.1

func (vm *VaultSecretsMock) GetSecretProviderName(ctx context.Context) string

func (*VaultSecretsMock) ImportCA added in v1.0.1

func (vm *VaultSecretsMock) ImportCA(ctx context.Context, caType secrets.CAType, caName string, caImport secrets.CAImport) error

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)

Jump to

Keyboard shortcuts

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