Documentation ¶
Overview ¶
Package mock_storage is a generated GoMock package.
Index ¶
- type MockSecretStorage
- func (m *MockSecretStorage) CreateSecret(ctx context.Context, secret *models.Secret) (*models.Secret, error)
- func (m *MockSecretStorage) DeleteSecret(ctx context.Context, secret *models.Secret) error
- func (m *MockSecretStorage) EXPECT() *MockSecretStorageMockRecorder
- func (m *MockSecretStorage) GetSecret(ctx context.Context, name string, userID int) (*models.Secret, error)
- func (m *MockSecretStorage) ListSecrets(ctx context.Context, userID int) ([]*models.Secret, error)
- func (m *MockSecretStorage) UpdateSecret(ctx context.Context, secret *models.Secret) (*models.Secret, error)
- type MockSecretStorageMockRecorder
- func (mr *MockSecretStorageMockRecorder) CreateSecret(ctx, secret interface{}) *gomock.Call
- func (mr *MockSecretStorageMockRecorder) DeleteSecret(ctx, secret interface{}) *gomock.Call
- func (mr *MockSecretStorageMockRecorder) GetSecret(ctx, name, userID interface{}) *gomock.Call
- func (mr *MockSecretStorageMockRecorder) ListSecrets(ctx, userID interface{}) *gomock.Call
- func (mr *MockSecretStorageMockRecorder) UpdateSecret(ctx, secret interface{}) *gomock.Call
- type MockUserStorage
- type MockUserStorageMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSecretStorage ¶
type MockSecretStorage struct {
// contains filtered or unexported fields
}
MockSecretStorage is a mock of SecretStorage interface.
func NewMockSecretStorage ¶
func NewMockSecretStorage(ctrl *gomock.Controller) *MockSecretStorage
NewMockSecretStorage creates a new mock instance.
func (*MockSecretStorage) CreateSecret ¶
func (m *MockSecretStorage) CreateSecret(ctx context.Context, secret *models.Secret) (*models.Secret, error)
CreateSecret mocks base method.
func (*MockSecretStorage) DeleteSecret ¶
DeleteSecret mocks base method.
func (*MockSecretStorage) EXPECT ¶
func (m *MockSecretStorage) EXPECT() *MockSecretStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSecretStorage) GetSecret ¶
func (m *MockSecretStorage) GetSecret(ctx context.Context, name string, userID int) (*models.Secret, error)
GetSecret mocks base method.
func (*MockSecretStorage) ListSecrets ¶
ListSecrets mocks base method.
func (*MockSecretStorage) UpdateSecret ¶
func (m *MockSecretStorage) UpdateSecret(ctx context.Context, secret *models.Secret) (*models.Secret, error)
UpdateSecret mocks base method.
type MockSecretStorageMockRecorder ¶
type MockSecretStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockSecretStorageMockRecorder is the mock recorder for MockSecretStorage.
func (*MockSecretStorageMockRecorder) CreateSecret ¶
func (mr *MockSecretStorageMockRecorder) CreateSecret(ctx, secret interface{}) *gomock.Call
CreateSecret indicates an expected call of CreateSecret.
func (*MockSecretStorageMockRecorder) DeleteSecret ¶
func (mr *MockSecretStorageMockRecorder) DeleteSecret(ctx, secret interface{}) *gomock.Call
DeleteSecret indicates an expected call of DeleteSecret.
func (*MockSecretStorageMockRecorder) GetSecret ¶
func (mr *MockSecretStorageMockRecorder) GetSecret(ctx, name, userID interface{}) *gomock.Call
GetSecret indicates an expected call of GetSecret.
func (*MockSecretStorageMockRecorder) ListSecrets ¶
func (mr *MockSecretStorageMockRecorder) ListSecrets(ctx, userID interface{}) *gomock.Call
ListSecrets indicates an expected call of ListSecrets.
func (*MockSecretStorageMockRecorder) UpdateSecret ¶
func (mr *MockSecretStorageMockRecorder) UpdateSecret(ctx, secret interface{}) *gomock.Call
UpdateSecret indicates an expected call of UpdateSecret.
type MockUserStorage ¶
type MockUserStorage struct {
// contains filtered or unexported fields
}
MockUserStorage is a mock of UserStorage interface.
func NewMockUserStorage ¶
func NewMockUserStorage(ctrl *gomock.Controller) *MockUserStorage
NewMockUserStorage creates a new mock instance.
func (*MockUserStorage) EXPECT ¶
func (m *MockUserStorage) EXPECT() *MockUserStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUserStorageMockRecorder ¶
type MockUserStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockUserStorageMockRecorder is the mock recorder for MockUserStorage.
func (*MockUserStorageMockRecorder) GetUser ¶
func (mr *MockUserStorageMockRecorder) GetUser(ctx, user interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
func (*MockUserStorageMockRecorder) PutUser ¶
func (mr *MockUserStorageMockRecorder) PutUser(ctx, user interface{}) *gomock.Call
PutUser indicates an expected call of PutUser.