storagemock

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 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 KeyRepository

type KeyRepository struct {
	mock.Mock
}

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

type SecretRepository struct {
	mock.Mock
}

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

func (_m *SecretRepository) ExistsDecryptedSecret(ctx context.Context, id string) (bool, error)

ExistsDecryptedSecret provides a mock function with given fields: ctx, id

func (*SecretRepository) ExistsEncryptedSecret

func (_m *SecretRepository) ExistsEncryptedSecret(ctx context.Context, id string) (bool, error)

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

func (_m *SecretRepository) SaveDecryptedSecret(ctx context.Context, secret model.Secret) error

SaveDecryptedSecret provides a mock function with given fields: ctx, secret

func (*SecretRepository) SaveEncryptedSecret

func (_m *SecretRepository) SaveEncryptedSecret(ctx context.Context, secret model.Secret) error

SaveEncryptedSecret provides a mock function with given fields: ctx, secret

type TrackRepository

type TrackRepository struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳