mocks

package
v0.8.93 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	mock.Mock
}

Reader is an autogenerated mock type for the Reader type

func NewReader

func NewReader(t mockConstructorTestingTNewReader) *Reader

NewReader creates a new instance of Reader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Reader) ReadAPICreds

func (_m *Reader) ReadAPICreds(ctx context.Context, secretName string, creds *credentials.APICreds) error

ReadAPICreds provides a mock function with given fields: ctx, secretName, creds

func (*Reader) ReadOCICreds

func (_m *Reader) ReadOCICreds(ctx context.Context, secretName string, creds *credentials.OCIKeypair) error

ReadOCICreds provides a mock function with given fields: ctx, secretName, creds

type ReaderWriter

type ReaderWriter struct {
	mock.Mock
}

ReaderWriter is an autogenerated mock type for the ReaderWriter type

func NewReaderWriter

func NewReaderWriter(t mockConstructorTestingTNewReaderWriter) *ReaderWriter

NewReaderWriter creates a new instance of ReaderWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ReaderWriter) DeleteCreds

func (_m *ReaderWriter) DeleteCreds(ctx context.Context, credID string) error

DeleteCreds provides a mock function with given fields: ctx, credID

func (*ReaderWriter) ReadAPICreds

func (_m *ReaderWriter) ReadAPICreds(ctx context.Context, secretName string, creds *credentials.APICreds) error

ReadAPICreds provides a mock function with given fields: ctx, secretName, creds

func (*ReaderWriter) ReadOCICreds

func (_m *ReaderWriter) ReadOCICreds(ctx context.Context, secretName string, creds *credentials.OCIKeypair) error

ReadOCICreds provides a mock function with given fields: ctx, secretName, creds

func (*ReaderWriter) SaveAPICreds

func (_m *ReaderWriter) SaveAPICreds(ctx context.Context, org string, creds *credentials.APICreds) (string, error)

SaveAPICreds provides a mock function with given fields: ctx, org, creds

func (*ReaderWriter) SaveOCICreds

func (_m *ReaderWriter) SaveOCICreds(ctx context.Context, org string, creds *credentials.OCIKeypair) (string, error)

SaveOCICreds provides a mock function with given fields: ctx, org, creds

type SecretsManagerIface

type SecretsManagerIface struct {
	mock.Mock
}

SecretsManagerIface is an autogenerated mock type for the SecretsManagerIface type

func NewSecretsManagerIface

func NewSecretsManagerIface(t mockConstructorTestingTNewSecretsManagerIface) *SecretsManagerIface

NewSecretsManagerIface creates a new instance of SecretsManagerIface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SecretsManagerIface) CreateSecret

CreateSecret provides a mock function with given fields: ctx, params, optFns

func (*SecretsManagerIface) DeleteSecret

DeleteSecret provides a mock function with given fields: ctx, params, optFns

func (*SecretsManagerIface) GetSecretValue

GetSecretValue provides a mock function with given fields: ctx, params, optFns

type Writer

type Writer struct {
	mock.Mock
}

Writer is an autogenerated mock type for the Writer type

func NewWriter

func NewWriter(t mockConstructorTestingTNewWriter) *Writer

NewWriter creates a new instance of Writer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Writer) DeleteCreds

func (_m *Writer) DeleteCreds(ctx context.Context, credID string) error

DeleteCreds provides a mock function with given fields: ctx, credID

func (*Writer) SaveAPICreds

func (_m *Writer) SaveAPICreds(ctx context.Context, org string, creds *credentials.APICreds) (string, error)

SaveAPICreds provides a mock function with given fields: ctx, org, creds

func (*Writer) SaveOCICreds

func (_m *Writer) SaveOCICreds(ctx context.Context, org string, creds *credentials.OCIKeypair) (string, error)

SaveOCICreds provides a mock function with given fields: ctx, org, creds

Jump to

Keyboard shortcuts

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