mocks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespaceDiscoveryRepository

type NamespaceDiscoveryRepository struct {
	mock.Mock
}

NamespaceDiscoveryRepository is an autogenerated mock type for the DiscoveryRepository type

func NewNamespaceDiscoveryRepository

func NewNamespaceDiscoveryRepository(t mockConstructorTestingTNewNamespaceDiscoveryRepository) *NamespaceDiscoveryRepository

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

func (*NamespaceDiscoveryRepository) CreateNamespace

func (_m *NamespaceDiscoveryRepository) CreateNamespace(_a0 context.Context, _a1 *namespace.Namespace) error

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

func (*NamespaceDiscoveryRepository) EXPECT

type NamespaceDiscoveryRepository_CreateNamespace_Call

type NamespaceDiscoveryRepository_CreateNamespace_Call struct {
	*mock.Call
}

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

func (*NamespaceDiscoveryRepository_CreateNamespace_Call) Return

func (*NamespaceDiscoveryRepository_CreateNamespace_Call) Run

func (*NamespaceDiscoveryRepository_CreateNamespace_Call) RunAndReturn

type NamespaceDiscoveryRepository_Expecter

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

func (*NamespaceDiscoveryRepository_Expecter) CreateNamespace

func (_e *NamespaceDiscoveryRepository_Expecter) CreateNamespace(_a0 interface{}, _a1 interface{}) *NamespaceDiscoveryRepository_CreateNamespace_Call

CreateNamespace is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *namespace.Namespace

type NamespaceStorageRepository

type NamespaceStorageRepository struct {
	mock.Mock
}

NamespaceStorageRepository is an autogenerated mock type for the StorageRepository type

func NewNamespaceStorageRepository

func NewNamespaceStorageRepository(t mockConstructorTestingTNewNamespaceStorageRepository) *NamespaceStorageRepository

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

func (*NamespaceStorageRepository) Create

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

func (*NamespaceStorageRepository) EXPECT

func (*NamespaceStorageRepository) GetByID

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

func (*NamespaceStorageRepository) GetByName

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

func (*NamespaceStorageRepository) List

List provides a mock function with given fields: _a0

func (*NamespaceStorageRepository) Update

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

type NamespaceStorageRepository_Create_Call

type NamespaceStorageRepository_Create_Call struct {
	*mock.Call
}

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

func (*NamespaceStorageRepository_Create_Call) Return

func (*NamespaceStorageRepository_Create_Call) Run

func (*NamespaceStorageRepository_Create_Call) RunAndReturn

type NamespaceStorageRepository_Expecter

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

func (*NamespaceStorageRepository_Expecter) Create

func (_e *NamespaceStorageRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *NamespaceStorageRepository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *namespace.Namespace

func (*NamespaceStorageRepository_Expecter) GetByID

func (_e *NamespaceStorageRepository_Expecter) GetByID(_a0 interface{}, _a1 interface{}) *NamespaceStorageRepository_GetByID_Call

GetByID is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uuid.UUID

func (*NamespaceStorageRepository_Expecter) GetByName

func (_e *NamespaceStorageRepository_Expecter) GetByName(_a0 interface{}, _a1 interface{}) *NamespaceStorageRepository_GetByName_Call

GetByName is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*NamespaceStorageRepository_Expecter) List

List is a helper method to define mock.On call

  • _a0 context.Context

func (*NamespaceStorageRepository_Expecter) Update

func (_e *NamespaceStorageRepository_Expecter) Update(_a0 interface{}, _a1 interface{}) *NamespaceStorageRepository_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *namespace.Namespace

type NamespaceStorageRepository_GetByID_Call

type NamespaceStorageRepository_GetByID_Call struct {
	*mock.Call
}

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

func (*NamespaceStorageRepository_GetByID_Call) Return

func (*NamespaceStorageRepository_GetByID_Call) Run

func (*NamespaceStorageRepository_GetByID_Call) RunAndReturn

type NamespaceStorageRepository_GetByName_Call

type NamespaceStorageRepository_GetByName_Call struct {
	*mock.Call
}

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

func (*NamespaceStorageRepository_GetByName_Call) Return

func (*NamespaceStorageRepository_GetByName_Call) Run

func (*NamespaceStorageRepository_GetByName_Call) RunAndReturn

type NamespaceStorageRepository_List_Call

type NamespaceStorageRepository_List_Call struct {
	*mock.Call
}

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

func (*NamespaceStorageRepository_List_Call) Return

func (*NamespaceStorageRepository_List_Call) Run

func (*NamespaceStorageRepository_List_Call) RunAndReturn

type NamespaceStorageRepository_Update_Call

type NamespaceStorageRepository_Update_Call struct {
	*mock.Call
}

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

func (*NamespaceStorageRepository_Update_Call) Return

func (*NamespaceStorageRepository_Update_Call) Run

func (*NamespaceStorageRepository_Update_Call) RunAndReturn

Jump to

Keyboard shortcuts

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