Documentation ¶
Index ¶
- type Reader
- type ReaderWriter
- func (_m *ReaderWriter) DeleteCreds(ctx context.Context, credID string) error
- func (_m *ReaderWriter) ReadAPICreds(ctx context.Context, secretName string, creds *credentials.APICreds) error
- func (_m *ReaderWriter) ReadOCICreds(ctx context.Context, secretName string, creds *credentials.OCIKeypair) error
- func (_m *ReaderWriter) SaveAPICreds(ctx context.Context, org string, creds *credentials.APICreds) (string, error)
- func (_m *ReaderWriter) SaveOCICreds(ctx context.Context, org string, creds *credentials.OCIKeypair) (string, error)
- type SecretsManagerIface
- func (_m *SecretsManagerIface) CreateSecret(ctx context.Context, params *secretsmanager.CreateSecretInput, ...) (*secretsmanager.CreateSecretOutput, error)
- func (_m *SecretsManagerIface) DeleteSecret(ctx context.Context, params *secretsmanager.DeleteSecretInput, ...) (*secretsmanager.DeleteSecretOutput, error)
- func (_m *SecretsManagerIface) GetSecretValue(ctx context.Context, params *secretsmanager.GetSecretValueInput, ...) (*secretsmanager.GetSecretValueOutput, error)
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
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 ¶
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 ¶
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 ¶
func (_m *SecretsManagerIface) CreateSecret(ctx context.Context, params *secretsmanager.CreateSecretInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.CreateSecretOutput, error)
CreateSecret provides a mock function with given fields: ctx, params, optFns
func (*SecretsManagerIface) DeleteSecret ¶
func (_m *SecretsManagerIface) DeleteSecret(ctx context.Context, params *secretsmanager.DeleteSecretInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.DeleteSecretOutput, error)
DeleteSecret provides a mock function with given fields: ctx, params, optFns
func (*SecretsManagerIface) GetSecretValue ¶
func (_m *SecretsManagerIface) GetSecretValue(ctx context.Context, params *secretsmanager.GetSecretValueInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.GetSecretValueOutput, error)
GetSecretValue provides a mock function with given fields: ctx, params, optFns
type Writer ¶
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 ¶
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