mock

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) CreateAPIKey added in v0.4.0

func (m *MockAccountStorage) CreateAPIKey(ctx context.Context, k *domain.APIKey, environmentNamespace string) error

CreateAPIKey mocks base method.

func (*MockAccountStorage) CreateAccountV2 added in v0.4.0

func (m *MockAccountStorage) CreateAccountV2(ctx context.Context, a *domain.AccountV2) error

CreateAccountV2 mocks base method.

func (*MockAccountStorage) DeleteAccountV2 added in v0.4.0

func (m *MockAccountStorage) DeleteAccountV2(ctx context.Context, a *domain.AccountV2) error

DeleteAccountV2 mocks base method.

func (*MockAccountStorage) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAccountStorage) GetAPIKey added in v0.4.0

func (m *MockAccountStorage) GetAPIKey(ctx context.Context, id, environmentNamespace string) (*domain.APIKey, error)

GetAPIKey mocks base method.

func (*MockAccountStorage) GetAccountV2 added in v0.4.0

func (m *MockAccountStorage) GetAccountV2(ctx context.Context, email, organizationID string) (*domain.AccountV2, error)

GetAccountV2 mocks base method.

func (*MockAccountStorage) GetAccountV2ByEnvironmentID added in v0.4.0

func (m *MockAccountStorage) GetAccountV2ByEnvironmentID(ctx context.Context, email, environmentID string) (*domain.AccountV2, error)

GetAccountV2ByEnvironmentID mocks base method.

func (*MockAccountStorage) GetAccountsWithOrganization added in v0.4.0

func (m *MockAccountStorage) GetAccountsWithOrganization(ctx context.Context, email string) ([]*domain.AccountWithOrganization, error)

GetAccountsWithOrganization mocks base method.

func (*MockAccountStorage) GetSystemAdminAccountV2 added in v0.4.0

func (m *MockAccountStorage) GetSystemAdminAccountV2(ctx context.Context, email string) (*domain.AccountV2, error)

GetSystemAdminAccountV2 mocks base method.

func (*MockAccountStorage) ListAPIKeys added in v0.4.0

func (m *MockAccountStorage) ListAPIKeys(ctx context.Context, whereParts []mysql.WherePart, orders []*mysql.Order, limit, offset int) ([]*account.APIKey, int, int64, error)

ListAPIKeys mocks base method.

func (*MockAccountStorage) ListAccountsV2 added in v0.4.0

func (m *MockAccountStorage) ListAccountsV2(ctx context.Context, whereParts []mysql.WherePart, orders []*mysql.Order, limit, offset int) ([]*account.AccountV2, int, int64, error)

ListAccountsV2 mocks base method.

func (*MockAccountStorage) RunInTransaction added in v0.4.0

func (m *MockAccountStorage) RunInTransaction(ctx context.Context, f func() error) error

RunInTransaction mocks base method.

func (*MockAccountStorage) UpdateAPIKey added in v0.4.0

func (m *MockAccountStorage) UpdateAPIKey(ctx context.Context, k *domain.APIKey, environmentNamespace string) error

UpdateAPIKey mocks base method.

func (*MockAccountStorage) UpdateAccountV2 added in v0.4.0

func (m *MockAccountStorage) UpdateAccountV2(ctx context.Context, a *domain.AccountV2) error

UpdateAccountV2 mocks base method.

type MockAccountStorageMockRecorder

type MockAccountStorageMockRecorder struct {
	// contains filtered or unexported fields
}

MockAccountStorageMockRecorder is the mock recorder for MockAccountStorage.

func (*MockAccountStorageMockRecorder) CreateAPIKey added in v0.4.0

func (mr *MockAccountStorageMockRecorder) CreateAPIKey(ctx, k, environmentNamespace interface{}) *gomock.Call

CreateAPIKey indicates an expected call of CreateAPIKey.

func (*MockAccountStorageMockRecorder) CreateAccountV2 added in v0.4.0

func (mr *MockAccountStorageMockRecorder) CreateAccountV2(ctx, a interface{}) *gomock.Call

CreateAccountV2 indicates an expected call of CreateAccountV2.

func (*MockAccountStorageMockRecorder) DeleteAccountV2 added in v0.4.0

func (mr *MockAccountStorageMockRecorder) DeleteAccountV2(ctx, a interface{}) *gomock.Call

DeleteAccountV2 indicates an expected call of DeleteAccountV2.

func (*MockAccountStorageMockRecorder) GetAPIKey added in v0.4.0

func (mr *MockAccountStorageMockRecorder) GetAPIKey(ctx, id, environmentNamespace interface{}) *gomock.Call

GetAPIKey indicates an expected call of GetAPIKey.

func (*MockAccountStorageMockRecorder) GetAccountV2 added in v0.4.0

func (mr *MockAccountStorageMockRecorder) GetAccountV2(ctx, email, organizationID interface{}) *gomock.Call

GetAccountV2 indicates an expected call of GetAccountV2.

func (*MockAccountStorageMockRecorder) GetAccountV2ByEnvironmentID added in v0.4.0

func (mr *MockAccountStorageMockRecorder) GetAccountV2ByEnvironmentID(ctx, email, environmentID interface{}) *gomock.Call

GetAccountV2ByEnvironmentID indicates an expected call of GetAccountV2ByEnvironmentID.

func (*MockAccountStorageMockRecorder) GetAccountsWithOrganization added in v0.4.0

func (mr *MockAccountStorageMockRecorder) GetAccountsWithOrganization(ctx, email interface{}) *gomock.Call

GetAccountsWithOrganization indicates an expected call of GetAccountsWithOrganization.

func (*MockAccountStorageMockRecorder) GetSystemAdminAccountV2 added in v0.4.0

func (mr *MockAccountStorageMockRecorder) GetSystemAdminAccountV2(ctx, email interface{}) *gomock.Call

GetSystemAdminAccountV2 indicates an expected call of GetSystemAdminAccountV2.

func (*MockAccountStorageMockRecorder) ListAPIKeys added in v0.4.0

func (mr *MockAccountStorageMockRecorder) ListAPIKeys(ctx, whereParts, orders, limit, offset interface{}) *gomock.Call

ListAPIKeys indicates an expected call of ListAPIKeys.

func (*MockAccountStorageMockRecorder) ListAccountsV2 added in v0.4.0

func (mr *MockAccountStorageMockRecorder) ListAccountsV2(ctx, whereParts, orders, limit, offset interface{}) *gomock.Call

ListAccountsV2 indicates an expected call of ListAccountsV2.

func (*MockAccountStorageMockRecorder) RunInTransaction added in v0.4.0

func (mr *MockAccountStorageMockRecorder) RunInTransaction(ctx, f interface{}) *gomock.Call

RunInTransaction indicates an expected call of RunInTransaction.

func (*MockAccountStorageMockRecorder) UpdateAPIKey added in v0.4.0

func (mr *MockAccountStorageMockRecorder) UpdateAPIKey(ctx, k, environmentNamespace interface{}) *gomock.Call

UpdateAPIKey indicates an expected call of UpdateAPIKey.

func (*MockAccountStorageMockRecorder) UpdateAccountV2 added in v0.4.0

func (mr *MockAccountStorageMockRecorder) UpdateAccountV2(ctx, a interface{}) *gomock.Call

UpdateAccountV2 indicates an expected call of UpdateAccountV2.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL