Documentation
¶
Index ¶
- type KeyRepository
- type SecretRepository
- func (_m *SecretRepository) DeleteDecryptedSecret(ctx context.Context, id string) error
- func (_m *SecretRepository) DeleteEncryptedSecret(ctx context.Context, id string) error
- func (_m *SecretRepository) ExistsDecryptedSecret(ctx context.Context, id string) (bool, error)
- func (_m *SecretRepository) ExistsEncryptedSecret(ctx context.Context, id string) (bool, error)
- func (_m *SecretRepository) GetDecryptedSecret(ctx context.Context, id string) (*model.Secret, error)
- func (_m *SecretRepository) GetEncryptedSecret(ctx context.Context, id string) (*model.Secret, error)
- func (_m *SecretRepository) SaveDecryptedSecret(ctx context.Context, secret model.Secret) error
- func (_m *SecretRepository) SaveEncryptedSecret(ctx context.Context, secret model.Secret) error
- type TrackRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyRepository ¶
KeyRepository is an autogenerated mock type for the KeyRepository type
func NewKeyRepository ¶ added in v0.7.0
func NewKeyRepository(t interface { mock.TestingT Cleanup(func()) }) *KeyRepository
NewKeyRepository creates a new instance of KeyRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*KeyRepository) GetPrivateKey ¶
func (_m *KeyRepository) GetPrivateKey(ctx context.Context) (model.PrivateKey, error)
GetPrivateKey provides a mock function with given fields: ctx
func (*KeyRepository) ListPrivateKeys ¶ added in v0.4.0
func (_m *KeyRepository) ListPrivateKeys(ctx context.Context) (*storage.PrivateKeyList, error)
ListPrivateKeys provides a mock function with given fields: ctx
func (*KeyRepository) ListPublicKeys ¶
func (_m *KeyRepository) ListPublicKeys(ctx context.Context) (*storage.PublicKeyList, error)
ListPublicKeys provides a mock function with given fields: ctx
type SecretRepository ¶
SecretRepository is an autogenerated mock type for the SecretRepository type
func NewSecretRepository ¶ added in v0.7.0
func NewSecretRepository(t interface { mock.TestingT Cleanup(func()) }) *SecretRepository
NewSecretRepository creates a new instance of SecretRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SecretRepository) DeleteDecryptedSecret ¶
func (_m *SecretRepository) DeleteDecryptedSecret(ctx context.Context, id string) error
DeleteDecryptedSecret provides a mock function with given fields: ctx, id
func (*SecretRepository) DeleteEncryptedSecret ¶
func (_m *SecretRepository) DeleteEncryptedSecret(ctx context.Context, id string) error
DeleteEncryptedSecret provides a mock function with given fields: ctx, id
func (*SecretRepository) ExistsDecryptedSecret ¶
ExistsDecryptedSecret provides a mock function with given fields: ctx, id
func (*SecretRepository) ExistsEncryptedSecret ¶
ExistsEncryptedSecret provides a mock function with given fields: ctx, id
func (*SecretRepository) GetDecryptedSecret ¶
func (_m *SecretRepository) GetDecryptedSecret(ctx context.Context, id string) (*model.Secret, error)
GetDecryptedSecret provides a mock function with given fields: ctx, id
func (*SecretRepository) GetEncryptedSecret ¶
func (_m *SecretRepository) GetEncryptedSecret(ctx context.Context, id string) (*model.Secret, error)
GetEncryptedSecret provides a mock function with given fields: ctx, id
func (*SecretRepository) SaveDecryptedSecret ¶
SaveDecryptedSecret provides a mock function with given fields: ctx, secret
func (*SecretRepository) SaveEncryptedSecret ¶
SaveEncryptedSecret provides a mock function with given fields: ctx, secret
type TrackRepository ¶
TrackRepository is an autogenerated mock type for the TrackRepository type
func NewTrackRepository ¶ added in v0.7.0
func NewTrackRepository(t interface { mock.TestingT Cleanup(func()) }) *TrackRepository
NewTrackRepository creates a new instance of TrackRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*TrackRepository) GetSecretRegistry ¶
func (_m *TrackRepository) GetSecretRegistry(ctx context.Context) (*model.SecretRegistry, error)
GetSecretRegistry provides a mock function with given fields: ctx
func (*TrackRepository) SaveSecretRegistry ¶
func (_m *TrackRepository) SaveSecretRegistry(ctx context.Context, reg model.SecretRegistry) error
SaveSecretRegistry provides a mock function with given fields: ctx, reg