Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockAPIKeyStorage
- func (m *MockAPIKeyStorage) CreateAPIKey(ctx context.Context, k *domain.APIKey, environmentNamespace string) error
- func (m *MockAPIKeyStorage) EXPECT() *MockAPIKeyStorageMockRecorder
- func (m *MockAPIKeyStorage) GetAPIKey(ctx context.Context, id, environmentNamespace string) (*domain.APIKey, error)
- func (m *MockAPIKeyStorage) ListAPIKeys(ctx context.Context, whereParts []mysql.WherePart, orders []*mysql.Order, ...) ([]*account.APIKey, int, int64, error)
- func (m *MockAPIKeyStorage) UpdateAPIKey(ctx context.Context, k *domain.APIKey, environmentNamespace string) error
- type MockAPIKeyStorageMockRecorder
- func (mr *MockAPIKeyStorageMockRecorder) CreateAPIKey(ctx, k, environmentNamespace interface{}) *gomock.Call
- func (mr *MockAPIKeyStorageMockRecorder) GetAPIKey(ctx, id, environmentNamespace interface{}) *gomock.Call
- func (mr *MockAPIKeyStorageMockRecorder) ListAPIKeys(ctx, whereParts, orders, limit, offset interface{}) *gomock.Call
- func (mr *MockAPIKeyStorageMockRecorder) UpdateAPIKey(ctx, k, environmentNamespace interface{}) *gomock.Call
- type MockAccountStorage
- func (m *MockAccountStorage) CreateAccount(ctx context.Context, a *domain.Account, environmentNamespace string) error
- func (m *MockAccountStorage) EXPECT() *MockAccountStorageMockRecorder
- func (m *MockAccountStorage) GetAccount(ctx context.Context, id, environmentNamespace string) (*domain.Account, error)
- func (m *MockAccountStorage) ListAccounts(ctx context.Context, whereParts []mysql.WherePart, orders []*mysql.Order, ...) ([]*account.Account, int, int64, error)
- func (m *MockAccountStorage) UpdateAccount(ctx context.Context, a *domain.Account, environmentNamespace string) error
- type MockAccountStorageMockRecorder
- func (mr *MockAccountStorageMockRecorder) CreateAccount(ctx, a, environmentNamespace interface{}) *gomock.Call
- func (mr *MockAccountStorageMockRecorder) GetAccount(ctx, id, environmentNamespace interface{}) *gomock.Call
- func (mr *MockAccountStorageMockRecorder) ListAccounts(ctx, whereParts, orders, limit, offset interface{}) *gomock.Call
- func (mr *MockAccountStorageMockRecorder) UpdateAccount(ctx, a, environmentNamespace interface{}) *gomock.Call
- type MockAdminAccountStorage
- func (m *MockAdminAccountStorage) CreateAdminAccount(ctx context.Context, a *domain.Account) error
- func (m *MockAdminAccountStorage) EXPECT() *MockAdminAccountStorageMockRecorder
- func (m *MockAdminAccountStorage) GetAdminAccount(ctx context.Context, id string) (*domain.Account, error)
- func (m *MockAdminAccountStorage) ListAdminAccounts(ctx context.Context, whereParts []mysql.WherePart, orders []*mysql.Order, ...) ([]*account.Account, int, int64, error)
- func (m *MockAdminAccountStorage) UpdateAdminAccount(ctx context.Context, a *domain.Account) error
- type MockAdminAccountStorageMockRecorder
- func (mr *MockAdminAccountStorageMockRecorder) CreateAdminAccount(ctx, a interface{}) *gomock.Call
- func (mr *MockAdminAccountStorageMockRecorder) GetAdminAccount(ctx, id interface{}) *gomock.Call
- func (mr *MockAdminAccountStorageMockRecorder) ListAdminAccounts(ctx, whereParts, orders, limit, offset interface{}) *gomock.Call
- func (mr *MockAdminAccountStorageMockRecorder) UpdateAdminAccount(ctx, a interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAPIKeyStorage ¶
type MockAPIKeyStorage struct {
// contains filtered or unexported fields
}
MockAPIKeyStorage is a mock of APIKeyStorage interface.
func NewMockAPIKeyStorage ¶
func NewMockAPIKeyStorage(ctrl *gomock.Controller) *MockAPIKeyStorage
NewMockAPIKeyStorage creates a new mock instance.
func (*MockAPIKeyStorage) CreateAPIKey ¶
func (m *MockAPIKeyStorage) CreateAPIKey(ctx context.Context, k *domain.APIKey, environmentNamespace string) error
CreateAPIKey mocks base method.
func (*MockAPIKeyStorage) EXPECT ¶
func (m *MockAPIKeyStorage) EXPECT() *MockAPIKeyStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAPIKeyStorage) GetAPIKey ¶
func (m *MockAPIKeyStorage) GetAPIKey(ctx context.Context, id, environmentNamespace string) (*domain.APIKey, error)
GetAPIKey mocks base method.
func (*MockAPIKeyStorage) ListAPIKeys ¶
func (m *MockAPIKeyStorage) ListAPIKeys(ctx context.Context, whereParts []mysql.WherePart, orders []*mysql.Order, limit, offset int) ([]*account.APIKey, int, int64, error)
ListAPIKeys mocks base method.
func (*MockAPIKeyStorage) UpdateAPIKey ¶
func (m *MockAPIKeyStorage) UpdateAPIKey(ctx context.Context, k *domain.APIKey, environmentNamespace string) error
UpdateAPIKey mocks base method.
type MockAPIKeyStorageMockRecorder ¶
type MockAPIKeyStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIKeyStorageMockRecorder is the mock recorder for MockAPIKeyStorage.
func (*MockAPIKeyStorageMockRecorder) CreateAPIKey ¶
func (mr *MockAPIKeyStorageMockRecorder) CreateAPIKey(ctx, k, environmentNamespace interface{}) *gomock.Call
CreateAPIKey indicates an expected call of CreateAPIKey.
func (*MockAPIKeyStorageMockRecorder) GetAPIKey ¶
func (mr *MockAPIKeyStorageMockRecorder) GetAPIKey(ctx, id, environmentNamespace interface{}) *gomock.Call
GetAPIKey indicates an expected call of GetAPIKey.
func (*MockAPIKeyStorageMockRecorder) ListAPIKeys ¶
func (mr *MockAPIKeyStorageMockRecorder) ListAPIKeys(ctx, whereParts, orders, limit, offset interface{}) *gomock.Call
ListAPIKeys indicates an expected call of ListAPIKeys.
func (*MockAPIKeyStorageMockRecorder) UpdateAPIKey ¶
func (mr *MockAPIKeyStorageMockRecorder) UpdateAPIKey(ctx, k, environmentNamespace interface{}) *gomock.Call
UpdateAPIKey indicates an expected call of UpdateAPIKey.
type MockAccountStorage ¶
type MockAccountStorage struct {
// contains filtered or unexported fields
}
MockAccountStorage is a mock of AccountStorage interface.
func NewMockAccountStorage ¶
func NewMockAccountStorage(ctrl *gomock.Controller) *MockAccountStorage
NewMockAccountStorage creates a new mock instance.
func (*MockAccountStorage) CreateAccount ¶
func (m *MockAccountStorage) CreateAccount(ctx context.Context, a *domain.Account, environmentNamespace string) error
CreateAccount mocks base method.
func (*MockAccountStorage) EXPECT ¶
func (m *MockAccountStorage) EXPECT() *MockAccountStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccountStorage) GetAccount ¶
func (m *MockAccountStorage) GetAccount(ctx context.Context, id, environmentNamespace string) (*domain.Account, error)
GetAccount mocks base method.
func (*MockAccountStorage) ListAccounts ¶
func (m *MockAccountStorage) ListAccounts(ctx context.Context, whereParts []mysql.WherePart, orders []*mysql.Order, limit, offset int) ([]*account.Account, int, int64, error)
ListAccounts mocks base method.
func (*MockAccountStorage) UpdateAccount ¶
func (m *MockAccountStorage) UpdateAccount(ctx context.Context, a *domain.Account, environmentNamespace string) error
UpdateAccount mocks base method.
type MockAccountStorageMockRecorder ¶
type MockAccountStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountStorageMockRecorder is the mock recorder for MockAccountStorage.
func (*MockAccountStorageMockRecorder) CreateAccount ¶
func (mr *MockAccountStorageMockRecorder) CreateAccount(ctx, a, environmentNamespace interface{}) *gomock.Call
CreateAccount indicates an expected call of CreateAccount.
func (*MockAccountStorageMockRecorder) GetAccount ¶
func (mr *MockAccountStorageMockRecorder) GetAccount(ctx, id, environmentNamespace interface{}) *gomock.Call
GetAccount indicates an expected call of GetAccount.
func (*MockAccountStorageMockRecorder) ListAccounts ¶
func (mr *MockAccountStorageMockRecorder) ListAccounts(ctx, whereParts, orders, limit, offset interface{}) *gomock.Call
ListAccounts indicates an expected call of ListAccounts.
func (*MockAccountStorageMockRecorder) UpdateAccount ¶
func (mr *MockAccountStorageMockRecorder) UpdateAccount(ctx, a, environmentNamespace interface{}) *gomock.Call
UpdateAccount indicates an expected call of UpdateAccount.
type MockAdminAccountStorage ¶
type MockAdminAccountStorage struct {
// contains filtered or unexported fields
}
MockAdminAccountStorage is a mock of AdminAccountStorage interface.
func NewMockAdminAccountStorage ¶
func NewMockAdminAccountStorage(ctrl *gomock.Controller) *MockAdminAccountStorage
NewMockAdminAccountStorage creates a new mock instance.
func (*MockAdminAccountStorage) CreateAdminAccount ¶
CreateAdminAccount mocks base method.
func (*MockAdminAccountStorage) EXPECT ¶
func (m *MockAdminAccountStorage) EXPECT() *MockAdminAccountStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAdminAccountStorage) GetAdminAccount ¶
func (m *MockAdminAccountStorage) GetAdminAccount(ctx context.Context, id string) (*domain.Account, error)
GetAdminAccount mocks base method.
func (*MockAdminAccountStorage) ListAdminAccounts ¶
func (m *MockAdminAccountStorage) ListAdminAccounts(ctx context.Context, whereParts []mysql.WherePart, orders []*mysql.Order, limit, offset int) ([]*account.Account, int, int64, error)
ListAdminAccounts mocks base method.
func (*MockAdminAccountStorage) UpdateAdminAccount ¶
UpdateAdminAccount mocks base method.
type MockAdminAccountStorageMockRecorder ¶
type MockAdminAccountStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockAdminAccountStorageMockRecorder is the mock recorder for MockAdminAccountStorage.
func (*MockAdminAccountStorageMockRecorder) CreateAdminAccount ¶
func (mr *MockAdminAccountStorageMockRecorder) CreateAdminAccount(ctx, a interface{}) *gomock.Call
CreateAdminAccount indicates an expected call of CreateAdminAccount.
func (*MockAdminAccountStorageMockRecorder) GetAdminAccount ¶
func (mr *MockAdminAccountStorageMockRecorder) GetAdminAccount(ctx, id interface{}) *gomock.Call
GetAdminAccount indicates an expected call of GetAdminAccount.
func (*MockAdminAccountStorageMockRecorder) ListAdminAccounts ¶
func (mr *MockAdminAccountStorageMockRecorder) ListAdminAccounts(ctx, whereParts, orders, limit, offset interface{}) *gomock.Call
ListAdminAccounts indicates an expected call of ListAdminAccounts.
func (*MockAdminAccountStorageMockRecorder) UpdateAdminAccount ¶
func (mr *MockAdminAccountStorageMockRecorder) UpdateAdminAccount(ctx, a interface{}) *gomock.Call
UpdateAdminAccount indicates an expected call of UpdateAdminAccount.