Documentation ¶
Index ¶
- type NamespaceDiscoveryRepository
- type NamespaceDiscoveryRepository_CreateNamespace_Call
- func (_c *NamespaceDiscoveryRepository_CreateNamespace_Call) Return(_a0 error) *NamespaceDiscoveryRepository_CreateNamespace_Call
- func (_c *NamespaceDiscoveryRepository_CreateNamespace_Call) Run(run func(_a0 context.Context, _a1 *namespace.Namespace)) *NamespaceDiscoveryRepository_CreateNamespace_Call
- func (_c *NamespaceDiscoveryRepository_CreateNamespace_Call) RunAndReturn(run func(context.Context, *namespace.Namespace) error) *NamespaceDiscoveryRepository_CreateNamespace_Call
- type NamespaceDiscoveryRepository_Expecter
- type NamespaceStorageRepository
- func (_m *NamespaceStorageRepository) Create(_a0 context.Context, _a1 *namespace.Namespace) (string, error)
- func (_m *NamespaceStorageRepository) EXPECT() *NamespaceStorageRepository_Expecter
- func (_m *NamespaceStorageRepository) GetByID(_a0 context.Context, _a1 uuid.UUID) (*namespace.Namespace, error)
- func (_m *NamespaceStorageRepository) GetByName(_a0 context.Context, _a1 string) (*namespace.Namespace, error)
- func (_m *NamespaceStorageRepository) List(_a0 context.Context) ([]*namespace.Namespace, error)
- func (_m *NamespaceStorageRepository) Update(_a0 context.Context, _a1 *namespace.Namespace) error
- type NamespaceStorageRepository_Create_Call
- func (_c *NamespaceStorageRepository_Create_Call) Return(_a0 string, _a1 error) *NamespaceStorageRepository_Create_Call
- func (_c *NamespaceStorageRepository_Create_Call) Run(run func(_a0 context.Context, _a1 *namespace.Namespace)) *NamespaceStorageRepository_Create_Call
- func (_c *NamespaceStorageRepository_Create_Call) RunAndReturn(run func(context.Context, *namespace.Namespace) (string, error)) *NamespaceStorageRepository_Create_Call
- type NamespaceStorageRepository_Expecter
- func (_e *NamespaceStorageRepository_Expecter) Create(_a0 interface{}, _a1 interface{}) *NamespaceStorageRepository_Create_Call
- func (_e *NamespaceStorageRepository_Expecter) GetByID(_a0 interface{}, _a1 interface{}) *NamespaceStorageRepository_GetByID_Call
- func (_e *NamespaceStorageRepository_Expecter) GetByName(_a0 interface{}, _a1 interface{}) *NamespaceStorageRepository_GetByName_Call
- func (_e *NamespaceStorageRepository_Expecter) List(_a0 interface{}) *NamespaceStorageRepository_List_Call
- func (_e *NamespaceStorageRepository_Expecter) Update(_a0 interface{}, _a1 interface{}) *NamespaceStorageRepository_Update_Call
- type NamespaceStorageRepository_GetByID_Call
- func (_c *NamespaceStorageRepository_GetByID_Call) Return(_a0 *namespace.Namespace, _a1 error) *NamespaceStorageRepository_GetByID_Call
- func (_c *NamespaceStorageRepository_GetByID_Call) Run(run func(_a0 context.Context, _a1 uuid.UUID)) *NamespaceStorageRepository_GetByID_Call
- func (_c *NamespaceStorageRepository_GetByID_Call) RunAndReturn(run func(context.Context, uuid.UUID) (*namespace.Namespace, error)) *NamespaceStorageRepository_GetByID_Call
- type NamespaceStorageRepository_GetByName_Call
- func (_c *NamespaceStorageRepository_GetByName_Call) Return(_a0 *namespace.Namespace, _a1 error) *NamespaceStorageRepository_GetByName_Call
- func (_c *NamespaceStorageRepository_GetByName_Call) Run(run func(_a0 context.Context, _a1 string)) *NamespaceStorageRepository_GetByName_Call
- func (_c *NamespaceStorageRepository_GetByName_Call) RunAndReturn(run func(context.Context, string) (*namespace.Namespace, error)) *NamespaceStorageRepository_GetByName_Call
- type NamespaceStorageRepository_List_Call
- func (_c *NamespaceStorageRepository_List_Call) Return(_a0 []*namespace.Namespace, _a1 error) *NamespaceStorageRepository_List_Call
- func (_c *NamespaceStorageRepository_List_Call) Run(run func(_a0 context.Context)) *NamespaceStorageRepository_List_Call
- func (_c *NamespaceStorageRepository_List_Call) RunAndReturn(run func(context.Context) ([]*namespace.Namespace, error)) *NamespaceStorageRepository_List_Call
- type NamespaceStorageRepository_Update_Call
- func (_c *NamespaceStorageRepository_Update_Call) Return(_a0 error) *NamespaceStorageRepository_Update_Call
- func (_c *NamespaceStorageRepository_Update_Call) Run(run func(_a0 context.Context, _a1 *namespace.Namespace)) *NamespaceStorageRepository_Update_Call
- func (_c *NamespaceStorageRepository_Update_Call) RunAndReturn(run func(context.Context, *namespace.Namespace) error) *NamespaceStorageRepository_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamespaceDiscoveryRepository ¶
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 ¶
func (_m *NamespaceDiscoveryRepository) EXPECT() *NamespaceDiscoveryRepository_Expecter
type NamespaceDiscoveryRepository_CreateNamespace_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 (_c *NamespaceDiscoveryRepository_CreateNamespace_Call) Return(_a0 error) *NamespaceDiscoveryRepository_CreateNamespace_Call
func (*NamespaceDiscoveryRepository_CreateNamespace_Call) Run ¶
func (_c *NamespaceDiscoveryRepository_CreateNamespace_Call) Run(run func(_a0 context.Context, _a1 *namespace.Namespace)) *NamespaceDiscoveryRepository_CreateNamespace_Call
func (*NamespaceDiscoveryRepository_CreateNamespace_Call) RunAndReturn ¶
func (_c *NamespaceDiscoveryRepository_CreateNamespace_Call) RunAndReturn(run func(context.Context, *namespace.Namespace) error) *NamespaceDiscoveryRepository_CreateNamespace_Call
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 ¶
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 ¶
func (_m *NamespaceStorageRepository) Create(_a0 context.Context, _a1 *namespace.Namespace) (string, error)
Create provides a mock function with given fields: _a0, _a1
func (*NamespaceStorageRepository) EXPECT ¶
func (_m *NamespaceStorageRepository) EXPECT() *NamespaceStorageRepository_Expecter
func (*NamespaceStorageRepository) GetByID ¶
func (_m *NamespaceStorageRepository) GetByID(_a0 context.Context, _a1 uuid.UUID) (*namespace.Namespace, error)
GetByID provides a mock function with given fields: _a0, _a1
func (*NamespaceStorageRepository) GetByName ¶
func (_m *NamespaceStorageRepository) GetByName(_a0 context.Context, _a1 string) (*namespace.Namespace, error)
GetByName provides a mock function with given fields: _a0, _a1
type NamespaceStorageRepository_Create_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 (_c *NamespaceStorageRepository_Create_Call) Return(_a0 string, _a1 error) *NamespaceStorageRepository_Create_Call
func (*NamespaceStorageRepository_Create_Call) Run ¶
func (_c *NamespaceStorageRepository_Create_Call) Run(run func(_a0 context.Context, _a1 *namespace.Namespace)) *NamespaceStorageRepository_Create_Call
func (*NamespaceStorageRepository_Create_Call) RunAndReturn ¶
func (_c *NamespaceStorageRepository_Create_Call) RunAndReturn(run func(context.Context, *namespace.Namespace) (string, error)) *NamespaceStorageRepository_Create_Call
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 ¶
func (_e *NamespaceStorageRepository_Expecter) List(_a0 interface{}) *NamespaceStorageRepository_List_Call
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 ¶
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 (_c *NamespaceStorageRepository_GetByID_Call) Return(_a0 *namespace.Namespace, _a1 error) *NamespaceStorageRepository_GetByID_Call
func (*NamespaceStorageRepository_GetByID_Call) Run ¶
func (_c *NamespaceStorageRepository_GetByID_Call) Run(run func(_a0 context.Context, _a1 uuid.UUID)) *NamespaceStorageRepository_GetByID_Call
func (*NamespaceStorageRepository_GetByID_Call) RunAndReturn ¶
func (_c *NamespaceStorageRepository_GetByID_Call) RunAndReturn(run func(context.Context, uuid.UUID) (*namespace.Namespace, error)) *NamespaceStorageRepository_GetByID_Call
type NamespaceStorageRepository_GetByName_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 (_c *NamespaceStorageRepository_GetByName_Call) Return(_a0 *namespace.Namespace, _a1 error) *NamespaceStorageRepository_GetByName_Call
func (*NamespaceStorageRepository_GetByName_Call) Run ¶
func (_c *NamespaceStorageRepository_GetByName_Call) Run(run func(_a0 context.Context, _a1 string)) *NamespaceStorageRepository_GetByName_Call
func (*NamespaceStorageRepository_GetByName_Call) RunAndReturn ¶
func (_c *NamespaceStorageRepository_GetByName_Call) RunAndReturn(run func(context.Context, string) (*namespace.Namespace, error)) *NamespaceStorageRepository_GetByName_Call
type NamespaceStorageRepository_List_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 (_c *NamespaceStorageRepository_List_Call) Return(_a0 []*namespace.Namespace, _a1 error) *NamespaceStorageRepository_List_Call
func (*NamespaceStorageRepository_List_Call) Run ¶
func (_c *NamespaceStorageRepository_List_Call) Run(run func(_a0 context.Context)) *NamespaceStorageRepository_List_Call
func (*NamespaceStorageRepository_List_Call) RunAndReturn ¶
func (_c *NamespaceStorageRepository_List_Call) RunAndReturn(run func(context.Context) ([]*namespace.Namespace, error)) *NamespaceStorageRepository_List_Call
type NamespaceStorageRepository_Update_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 (_c *NamespaceStorageRepository_Update_Call) Return(_a0 error) *NamespaceStorageRepository_Update_Call
func (*NamespaceStorageRepository_Update_Call) Run ¶
func (_c *NamespaceStorageRepository_Update_Call) Run(run func(_a0 context.Context, _a1 *namespace.Namespace)) *NamespaceStorageRepository_Update_Call
func (*NamespaceStorageRepository_Update_Call) RunAndReturn ¶
func (_c *NamespaceStorageRepository_Update_Call) RunAndReturn(run func(context.Context, *namespace.Namespace) error) *NamespaceStorageRepository_Update_Call