mocks

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigSyncer added in v0.5.0

type ConfigSyncer struct {
	mock.Mock
}

ConfigSyncer is an autogenerated mock type for the ConfigSyncer type

func NewConfigSyncer added in v0.5.0

func NewConfigSyncer(t mockConstructorTestingTNewConfigSyncer) *ConfigSyncer

NewConfigSyncer creates a new instance of ConfigSyncer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConfigSyncer) EXPECT added in v0.5.0

func (_m *ConfigSyncer) EXPECT() *ConfigSyncer_Expecter

func (*ConfigSyncer) SyncRuntimeConfig added in v0.5.0

func (_m *ConfigSyncer) SyncRuntimeConfig(ctx context.Context, namespaceID uint64, namespaceURN string, prov provider.Provider) error

SyncRuntimeConfig provides a mock function with given fields: ctx, namespaceID, namespaceURN, prov

type ConfigSyncer_Expecter added in v0.5.0

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

func (*ConfigSyncer_Expecter) SyncRuntimeConfig added in v0.5.0

func (_e *ConfigSyncer_Expecter) SyncRuntimeConfig(ctx interface{}, namespaceID interface{}, namespaceURN interface{}, prov interface{}) *ConfigSyncer_SyncRuntimeConfig_Call

SyncRuntimeConfig is a helper method to define mock.On call

  • ctx context.Context
  • namespaceID uint64
  • namespaceURN string
  • prov provider.Provider

type ConfigSyncer_SyncRuntimeConfig_Call added in v0.5.0

type ConfigSyncer_SyncRuntimeConfig_Call struct {
	*mock.Call
}

ConfigSyncer_SyncRuntimeConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncRuntimeConfig'

func (*ConfigSyncer_SyncRuntimeConfig_Call) Return added in v0.5.0

func (*ConfigSyncer_SyncRuntimeConfig_Call) Run added in v0.5.0

type Encryptor

type Encryptor struct {
	mock.Mock
}

Encryptor is an autogenerated mock type for the Encryptor type

func NewEncryptor

func NewEncryptor(t mockConstructorTestingTNewEncryptor) *Encryptor

NewEncryptor creates a new instance of Encryptor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Encryptor) Decrypt

Decrypt provides a mock function with given fields: str

func (*Encryptor) EXPECT

func (_m *Encryptor) EXPECT() *Encryptor_Expecter

func (*Encryptor) Encrypt

Encrypt provides a mock function with given fields: str

type Encryptor_Decrypt_Call

type Encryptor_Decrypt_Call struct {
	*mock.Call
}

Encryptor_Decrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decrypt'

func (*Encryptor_Decrypt_Call) Return

func (*Encryptor_Decrypt_Call) Run

type Encryptor_Encrypt_Call

type Encryptor_Encrypt_Call struct {
	*mock.Call
}

Encryptor_Encrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Encrypt'

func (*Encryptor_Encrypt_Call) Return

func (*Encryptor_Encrypt_Call) Run

type Encryptor_Expecter

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

func (*Encryptor_Expecter) Decrypt

func (_e *Encryptor_Expecter) Decrypt(str interface{}) *Encryptor_Decrypt_Call

Decrypt is a helper method to define mock.On call

  • str secret.MaskableString

func (*Encryptor_Expecter) Encrypt

func (_e *Encryptor_Expecter) Encrypt(str interface{}) *Encryptor_Encrypt_Call

Encrypt is a helper method to define mock.On call

  • str secret.MaskableString

type NamespaceRepository

type NamespaceRepository struct {
	mock.Mock
}

NamespaceRepository is an autogenerated mock type for the Repository type

func NewNamespaceRepository

func NewNamespaceRepository(t mockConstructorTestingTNewNamespaceRepository) *NamespaceRepository

NewNamespaceRepository creates a new instance of NamespaceRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*NamespaceRepository) Commit added in v0.5.0

func (_m *NamespaceRepository) Commit(ctx context.Context) error

Commit provides a mock function with given fields: ctx

func (*NamespaceRepository) Create

Create provides a mock function with given fields: _a0, _a1

func (*NamespaceRepository) Delete

func (_m *NamespaceRepository) Delete(_a0 context.Context, _a1 uint64) error

Delete provides a mock function with given fields: _a0, _a1

func (*NamespaceRepository) EXPECT

func (*NamespaceRepository) Get

Get provides a mock function with given fields: _a0, _a1

func (*NamespaceRepository) List

List provides a mock function with given fields: _a0

func (*NamespaceRepository) Rollback added in v0.5.0

func (_m *NamespaceRepository) Rollback(ctx context.Context, err error) error

Rollback provides a mock function with given fields: ctx, err

func (*NamespaceRepository) Update

Update provides a mock function with given fields: _a0, _a1

func (*NamespaceRepository) WithTransaction added in v0.5.0

func (_m *NamespaceRepository) WithTransaction(ctx context.Context) context.Context

WithTransaction provides a mock function with given fields: ctx

type NamespaceRepository_Commit_Call added in v0.5.0

type NamespaceRepository_Commit_Call struct {
	*mock.Call
}

NamespaceRepository_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'

func (*NamespaceRepository_Commit_Call) Return added in v0.5.0

func (*NamespaceRepository_Commit_Call) Run added in v0.5.0

type NamespaceRepository_Create_Call

type NamespaceRepository_Create_Call struct {
	*mock.Call
}

NamespaceRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*NamespaceRepository_Create_Call) Return

func (*NamespaceRepository_Create_Call) Run

type NamespaceRepository_Delete_Call

type NamespaceRepository_Delete_Call struct {
	*mock.Call
}

NamespaceRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*NamespaceRepository_Delete_Call) Return

func (*NamespaceRepository_Delete_Call) Run

type NamespaceRepository_Expecter

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

func (*NamespaceRepository_Expecter) Commit added in v0.5.0

Commit is a helper method to define mock.On call

  • ctx context.Context

func (*NamespaceRepository_Expecter) Create

func (_e *NamespaceRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *NamespaceRepository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *namespace.EncryptedNamespace

func (*NamespaceRepository_Expecter) Delete

func (_e *NamespaceRepository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *NamespaceRepository_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*NamespaceRepository_Expecter) Get

func (_e *NamespaceRepository_Expecter) Get(_a0 interface{}, _a1 interface{}) *NamespaceRepository_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*NamespaceRepository_Expecter) List

List is a helper method to define mock.On call

  • _a0 context.Context

func (*NamespaceRepository_Expecter) Rollback added in v0.5.0

func (_e *NamespaceRepository_Expecter) Rollback(ctx interface{}, err interface{}) *NamespaceRepository_Rollback_Call

Rollback is a helper method to define mock.On call

  • ctx context.Context
  • err error

func (*NamespaceRepository_Expecter) Update

func (_e *NamespaceRepository_Expecter) Update(_a0 interface{}, _a1 interface{}) *NamespaceRepository_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *namespace.EncryptedNamespace

func (*NamespaceRepository_Expecter) WithTransaction added in v0.5.0

func (_e *NamespaceRepository_Expecter) WithTransaction(ctx interface{}) *NamespaceRepository_WithTransaction_Call

WithTransaction is a helper method to define mock.On call

  • ctx context.Context

type NamespaceRepository_Get_Call

type NamespaceRepository_Get_Call struct {
	*mock.Call
}

NamespaceRepository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*NamespaceRepository_Get_Call) Return

func (*NamespaceRepository_Get_Call) Run

type NamespaceRepository_List_Call

type NamespaceRepository_List_Call struct {
	*mock.Call
}

NamespaceRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*NamespaceRepository_List_Call) Return

func (*NamespaceRepository_List_Call) Run

type NamespaceRepository_Rollback_Call added in v0.5.0

type NamespaceRepository_Rollback_Call struct {
	*mock.Call
}

NamespaceRepository_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'

func (*NamespaceRepository_Rollback_Call) Return added in v0.5.0

func (*NamespaceRepository_Rollback_Call) Run added in v0.5.0

type NamespaceRepository_Update_Call

type NamespaceRepository_Update_Call struct {
	*mock.Call
}

NamespaceRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*NamespaceRepository_Update_Call) Return

func (*NamespaceRepository_Update_Call) Run

type NamespaceRepository_WithTransaction_Call added in v0.5.0

type NamespaceRepository_WithTransaction_Call struct {
	*mock.Call
}

NamespaceRepository_WithTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTransaction'

func (*NamespaceRepository_WithTransaction_Call) Return added in v0.5.0

func (*NamespaceRepository_WithTransaction_Call) Run added in v0.5.0

type ProviderService added in v0.5.0

type ProviderService struct {
	mock.Mock
}

ProviderService is an autogenerated mock type for the ProviderService type

func NewProviderService added in v0.5.0

func NewProviderService(t mockConstructorTestingTNewProviderService) *ProviderService

NewProviderService creates a new instance of ProviderService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ProviderService) EXPECT added in v0.5.0

func (*ProviderService) Get added in v0.5.0

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

type ProviderService_Expecter added in v0.5.0

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

func (*ProviderService_Expecter) Get added in v0.5.0

func (_e *ProviderService_Expecter) Get(ctx interface{}, id interface{}) *ProviderService_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id uint64

type ProviderService_Get_Call added in v0.5.0

type ProviderService_Get_Call struct {
	*mock.Call
}

ProviderService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*ProviderService_Get_Call) Return added in v0.5.0

func (*ProviderService_Get_Call) Run added in v0.5.0

type Transactor added in v0.5.0

type Transactor struct {
	mock.Mock
}

Transactor is an autogenerated mock type for the Transactor type

func NewTransactor added in v0.5.0

func NewTransactor(t mockConstructorTestingTNewTransactor) *Transactor

NewTransactor creates a new instance of Transactor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Transactor) Commit added in v0.5.0

func (_m *Transactor) Commit(ctx context.Context) error

Commit provides a mock function with given fields: ctx

func (*Transactor) EXPECT added in v0.5.0

func (_m *Transactor) EXPECT() *Transactor_Expecter

func (*Transactor) Rollback added in v0.5.0

func (_m *Transactor) Rollback(ctx context.Context, err error) error

Rollback provides a mock function with given fields: ctx, err

func (*Transactor) WithTransaction added in v0.5.0

func (_m *Transactor) WithTransaction(ctx context.Context) context.Context

WithTransaction provides a mock function with given fields: ctx

type Transactor_Commit_Call added in v0.5.0

type Transactor_Commit_Call struct {
	*mock.Call
}

Transactor_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'

func (*Transactor_Commit_Call) Return added in v0.5.0

func (*Transactor_Commit_Call) Run added in v0.5.0

type Transactor_Expecter added in v0.5.0

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

func (*Transactor_Expecter) Commit added in v0.5.0

func (_e *Transactor_Expecter) Commit(ctx interface{}) *Transactor_Commit_Call

Commit is a helper method to define mock.On call

  • ctx context.Context

func (*Transactor_Expecter) Rollback added in v0.5.0

func (_e *Transactor_Expecter) Rollback(ctx interface{}, err interface{}) *Transactor_Rollback_Call

Rollback is a helper method to define mock.On call

  • ctx context.Context
  • err error

func (*Transactor_Expecter) WithTransaction added in v0.5.0

func (_e *Transactor_Expecter) WithTransaction(ctx interface{}) *Transactor_WithTransaction_Call

WithTransaction is a helper method to define mock.On call

  • ctx context.Context

type Transactor_Rollback_Call added in v0.5.0

type Transactor_Rollback_Call struct {
	*mock.Call
}

Transactor_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'

func (*Transactor_Rollback_Call) Return added in v0.5.0

func (*Transactor_Rollback_Call) Run added in v0.5.0

type Transactor_WithTransaction_Call added in v0.5.0

type Transactor_WithTransaction_Call struct {
	*mock.Call
}

Transactor_WithTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTransaction'

func (*Transactor_WithTransaction_Call) Return added in v0.5.0

func (*Transactor_WithTransaction_Call) Run added in v0.5.0

Jump to

Keyboard shortcuts

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