mocks

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 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

type ConfigSyncer struct {
	mock.Mock
}

ConfigSyncer is an autogenerated mock type for the ConfigSyncer type

func NewConfigSyncer

func NewConfigSyncer(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*ConfigSyncer) EXPECT

func (_m *ConfigSyncer) EXPECT() *ConfigSyncer_Expecter

func (*ConfigSyncer) SyncRuntimeConfig

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

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

type ConfigSyncer_Expecter

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

func (*ConfigSyncer_Expecter) SyncRuntimeConfig

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

SyncRuntimeConfig is a helper method to define mock.On call

  • ctx context.Context
  • namespaceID uint64
  • namespaceURN string
  • namespaceLabels map[string]string
  • prov provider.Provider

type ConfigSyncer_SyncRuntimeConfig_Call

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

func (*ConfigSyncer_SyncRuntimeConfig_Call) Run

func (_c *ConfigSyncer_SyncRuntimeConfig_Call) Run(run func(ctx context.Context, namespaceID uint64, namespaceURN string, namespaceLabels map[string]string, prov provider.Provider)) *ConfigSyncer_SyncRuntimeConfig_Call

func (*ConfigSyncer_SyncRuntimeConfig_Call) RunAndReturn added in v0.6.1

type Encryptor

type Encryptor struct {
	mock.Mock
}

Encryptor is an autogenerated mock type for the Encryptor type

func NewEncryptor

func NewEncryptor(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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

func (*Encryptor_Decrypt_Call) RunAndReturn added in v0.6.1

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

func (*Encryptor_Encrypt_Call) RunAndReturn added in v0.6.1

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 ProviderService

type ProviderService struct {
	mock.Mock
}

ProviderService is an autogenerated mock type for the ProviderService type

func NewProviderService

func NewProviderService(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*ProviderService) EXPECT

func (*ProviderService) Get

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

type ProviderService_Expecter

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

func (*ProviderService_Expecter) Get

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

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

func (*ProviderService_Get_Call) Run

func (*ProviderService_Get_Call) RunAndReturn added in v0.6.1

type Repository added in v0.6.12

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository added in v0.6.12

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

NewRepository creates a new instance of Repository. 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 (*Repository) Commit added in v0.6.12

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

Commit provides a mock function with given fields: ctx

func (*Repository) Create added in v0.6.12

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

func (*Repository) Delete added in v0.6.12

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

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

func (*Repository) EXPECT added in v0.6.12

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) Get added in v0.6.12

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

func (*Repository) List added in v0.6.12

List provides a mock function with given fields: _a0

func (*Repository) Rollback added in v0.6.12

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

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

func (*Repository) Update added in v0.6.12

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

func (*Repository) UpdateLabels added in v0.6.12

func (_m *Repository) UpdateLabels(_a0 context.Context, _a1 uint64, _a2 map[string]string) error

UpdateLabels provides a mock function with given fields: _a0, _a1, _a2

func (*Repository) WithTransaction added in v0.6.12

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

WithTransaction provides a mock function with given fields: ctx

type Repository_Commit_Call added in v0.6.12

type Repository_Commit_Call struct {
	*mock.Call
}

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

func (*Repository_Commit_Call) Return added in v0.6.12

func (*Repository_Commit_Call) Run added in v0.6.12

func (*Repository_Commit_Call) RunAndReturn added in v0.6.12

func (_c *Repository_Commit_Call) RunAndReturn(run func(context.Context) error) *Repository_Commit_Call

type Repository_Create_Call added in v0.6.12

type Repository_Create_Call struct {
	*mock.Call
}

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

func (*Repository_Create_Call) Return added in v0.6.12

func (*Repository_Create_Call) Run added in v0.6.12

func (*Repository_Create_Call) RunAndReturn added in v0.6.12

type Repository_Delete_Call added in v0.6.12

type Repository_Delete_Call struct {
	*mock.Call
}

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

func (*Repository_Delete_Call) Return added in v0.6.12

func (*Repository_Delete_Call) Run added in v0.6.12

func (*Repository_Delete_Call) RunAndReturn added in v0.6.12

type Repository_Expecter added in v0.6.12

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

func (*Repository_Expecter) Commit added in v0.6.12

func (_e *Repository_Expecter) Commit(ctx interface{}) *Repository_Commit_Call

Commit is a helper method to define mock.On call

  • ctx context.Context

func (*Repository_Expecter) Create added in v0.6.12

func (_e *Repository_Expecter) Create(_a0 interface{}, _a1 interface{}) *Repository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *namespace.EncryptedNamespace

func (*Repository_Expecter) Delete added in v0.6.12

func (_e *Repository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *Repository_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*Repository_Expecter) Get added in v0.6.12

func (_e *Repository_Expecter) Get(_a0 interface{}, _a1 interface{}) *Repository_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*Repository_Expecter) List added in v0.6.12

func (_e *Repository_Expecter) List(_a0 interface{}) *Repository_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context

func (*Repository_Expecter) Rollback added in v0.6.12

func (_e *Repository_Expecter) Rollback(ctx interface{}, err interface{}) *Repository_Rollback_Call

Rollback is a helper method to define mock.On call

  • ctx context.Context
  • err error

func (*Repository_Expecter) Update added in v0.6.12

func (_e *Repository_Expecter) Update(_a0 interface{}, _a1 interface{}) *Repository_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *namespace.EncryptedNamespace

func (*Repository_Expecter) UpdateLabels added in v0.6.12

func (_e *Repository_Expecter) UpdateLabels(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Repository_UpdateLabels_Call

UpdateLabels is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64
  • _a2 map[string]string

func (*Repository_Expecter) WithTransaction added in v0.6.12

func (_e *Repository_Expecter) WithTransaction(ctx interface{}) *Repository_WithTransaction_Call

WithTransaction is a helper method to define mock.On call

  • ctx context.Context

type Repository_Get_Call added in v0.6.12

type Repository_Get_Call struct {
	*mock.Call
}

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

func (*Repository_Get_Call) Return added in v0.6.12

func (*Repository_Get_Call) Run added in v0.6.12

func (_c *Repository_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *Repository_Get_Call

func (*Repository_Get_Call) RunAndReturn added in v0.6.12

type Repository_List_Call added in v0.6.12

type Repository_List_Call struct {
	*mock.Call
}

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

func (*Repository_List_Call) Return added in v0.6.12

func (*Repository_List_Call) Run added in v0.6.12

func (_c *Repository_List_Call) Run(run func(_a0 context.Context)) *Repository_List_Call

func (*Repository_List_Call) RunAndReturn added in v0.6.12

type Repository_Rollback_Call added in v0.6.12

type Repository_Rollback_Call struct {
	*mock.Call
}

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

func (*Repository_Rollback_Call) Return added in v0.6.12

func (*Repository_Rollback_Call) Run added in v0.6.12

func (*Repository_Rollback_Call) RunAndReturn added in v0.6.12

type Repository_UpdateLabels_Call added in v0.6.12

type Repository_UpdateLabels_Call struct {
	*mock.Call
}

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

func (*Repository_UpdateLabels_Call) Return added in v0.6.12

func (*Repository_UpdateLabels_Call) Run added in v0.6.12

func (*Repository_UpdateLabels_Call) RunAndReturn added in v0.6.12

type Repository_Update_Call added in v0.6.12

type Repository_Update_Call struct {
	*mock.Call
}

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

func (*Repository_Update_Call) Return added in v0.6.12

func (*Repository_Update_Call) Run added in v0.6.12

func (*Repository_Update_Call) RunAndReturn added in v0.6.12

type Repository_WithTransaction_Call added in v0.6.12

type Repository_WithTransaction_Call struct {
	*mock.Call
}

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

func (*Repository_WithTransaction_Call) Return added in v0.6.12

func (*Repository_WithTransaction_Call) Run added in v0.6.12

func (*Repository_WithTransaction_Call) RunAndReturn added in v0.6.12

type Transactor

type Transactor struct {
	mock.Mock
}

Transactor is an autogenerated mock type for the Transactor type

func NewTransactor

func NewTransactor(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Transactor) Commit

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

Commit provides a mock function with given fields: ctx

func (*Transactor) EXPECT

func (_m *Transactor) EXPECT() *Transactor_Expecter

func (*Transactor) Rollback

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

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

func (*Transactor) WithTransaction

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

WithTransaction provides a mock function with given fields: ctx

type Transactor_Commit_Call

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

func (*Transactor_Commit_Call) Run

func (*Transactor_Commit_Call) RunAndReturn added in v0.6.1

func (_c *Transactor_Commit_Call) RunAndReturn(run func(context.Context) error) *Transactor_Commit_Call

type Transactor_Expecter

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

func (*Transactor_Expecter) Commit

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

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

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

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

func (*Transactor_Rollback_Call) Run

func (*Transactor_Rollback_Call) RunAndReturn added in v0.6.1

type Transactor_WithTransaction_Call

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

func (*Transactor_WithTransaction_Call) Run

func (*Transactor_WithTransaction_Call) RunAndReturn added in v0.6.1

Jump to

Keyboard shortcuts

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