Documentation
¶
Index ¶
- type Repository
- func (_m *Repository) AttachAuth(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], ...) error
- func (_m *Repository) AttachPolicy(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], ...) error
- func (_m *Repository) AttachRegistry(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], ...) error
- func (_m *Repository) AttachRole(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], ...) error
- func (_m *Repository) Delete(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...) error
- func (_m *Repository) DetachAuth(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], ...) error
- func (_m *Repository) DetachPolicy(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], ...) error
- func (_m *Repository) DetachRegistry(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], ...) error
- func (_m *Repository) DetachRegistryIfUnreferenced(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...) (*consumer.Consumer, error)
- func (_m *Repository) DetachRole(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], ...) error
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) FindActiveBySlug(ctx context.Context, slug string) (*consumer.Consumer, error)
- func (_m *Repository) FindByID(ctx context.Context, id ids.ID[ids.ConsumerKind]) (*consumer.Consumer, error)
- func (_m *Repository) List(ctx context.Context, filter consumer.ListFilter) ([]*consumer.Consumer, int, error)
- func (_m *Repository) ListByAuthID(ctx context.Context, authID ids.ID[ids.AuthKind]) ([]*consumer.Consumer, error)
- func (_m *Repository) ListByGateway(ctx context.Context, gatewayID ids.ID[ids.GatewayKind]) ([]*consumer.Consumer, error)
- func (_m *Repository) Save(ctx context.Context, c *consumer.Consumer) error
- func (_m *Repository) Update(ctx context.Context, c *consumer.Consumer) error
- type Repository_AttachAuth_Call
- func (_c *Repository_AttachAuth_Call) Return(_a0 error) *Repository_AttachAuth_Call
- func (_c *Repository_AttachAuth_Call) Run(run func(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], ...)) *Repository_AttachAuth_Call
- func (_c *Repository_AttachAuth_Call) RunAndReturn(...) *Repository_AttachAuth_Call
- type Repository_AttachPolicy_Call
- func (_c *Repository_AttachPolicy_Call) Return(_a0 error) *Repository_AttachPolicy_Call
- func (_c *Repository_AttachPolicy_Call) Run(run func(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], ...)) *Repository_AttachPolicy_Call
- func (_c *Repository_AttachPolicy_Call) RunAndReturn(...) *Repository_AttachPolicy_Call
- type Repository_AttachRegistry_Call
- func (_c *Repository_AttachRegistry_Call) Return(_a0 error) *Repository_AttachRegistry_Call
- func (_c *Repository_AttachRegistry_Call) Run(run func(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], ...)) *Repository_AttachRegistry_Call
- func (_c *Repository_AttachRegistry_Call) RunAndReturn(...) *Repository_AttachRegistry_Call
- type Repository_AttachRole_Call
- func (_c *Repository_AttachRole_Call) Return(_a0 error) *Repository_AttachRole_Call
- func (_c *Repository_AttachRole_Call) Run(run func(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], ...)) *Repository_AttachRole_Call
- func (_c *Repository_AttachRole_Call) RunAndReturn(...) *Repository_AttachRole_Call
- type Repository_Delete_Call
- type Repository_DetachAuth_Call
- func (_c *Repository_DetachAuth_Call) Return(_a0 error) *Repository_DetachAuth_Call
- func (_c *Repository_DetachAuth_Call) Run(run func(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], ...)) *Repository_DetachAuth_Call
- func (_c *Repository_DetachAuth_Call) RunAndReturn(...) *Repository_DetachAuth_Call
- type Repository_DetachPolicy_Call
- func (_c *Repository_DetachPolicy_Call) Return(_a0 error) *Repository_DetachPolicy_Call
- func (_c *Repository_DetachPolicy_Call) Run(run func(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], ...)) *Repository_DetachPolicy_Call
- func (_c *Repository_DetachPolicy_Call) RunAndReturn(...) *Repository_DetachPolicy_Call
- type Repository_DetachRegistryIfUnreferenced_Call
- func (_c *Repository_DetachRegistryIfUnreferenced_Call) Return(_a0 *consumer.Consumer, _a1 error) *Repository_DetachRegistryIfUnreferenced_Call
- func (_c *Repository_DetachRegistryIfUnreferenced_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...)) *Repository_DetachRegistryIfUnreferenced_Call
- func (_c *Repository_DetachRegistryIfUnreferenced_Call) RunAndReturn(...) *Repository_DetachRegistryIfUnreferenced_Call
- type Repository_DetachRegistry_Call
- func (_c *Repository_DetachRegistry_Call) Return(_a0 error) *Repository_DetachRegistry_Call
- func (_c *Repository_DetachRegistry_Call) Run(run func(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], ...)) *Repository_DetachRegistry_Call
- func (_c *Repository_DetachRegistry_Call) RunAndReturn(...) *Repository_DetachRegistry_Call
- type Repository_DetachRole_Call
- func (_c *Repository_DetachRole_Call) Return(_a0 error) *Repository_DetachRole_Call
- func (_c *Repository_DetachRole_Call) Run(run func(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], ...)) *Repository_DetachRole_Call
- func (_c *Repository_DetachRole_Call) RunAndReturn(...) *Repository_DetachRole_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) AttachAuth(ctx interface{}, consumerID interface{}, authID interface{}) *Repository_AttachAuth_Call
- func (_e *Repository_Expecter) AttachPolicy(ctx interface{}, consumerID interface{}, policyID interface{}) *Repository_AttachPolicy_Call
- func (_e *Repository_Expecter) AttachRegistry(ctx interface{}, consumerID interface{}, registryID interface{}, ...) *Repository_AttachRegistry_Call
- func (_e *Repository_Expecter) AttachRole(ctx interface{}, consumerID interface{}, roleID interface{}) *Repository_AttachRole_Call
- func (_e *Repository_Expecter) Delete(ctx interface{}, gatewayID interface{}, id interface{}) *Repository_Delete_Call
- func (_e *Repository_Expecter) DetachAuth(ctx interface{}, consumerID interface{}, authID interface{}) *Repository_DetachAuth_Call
- func (_e *Repository_Expecter) DetachPolicy(ctx interface{}, consumerID interface{}, policyID interface{}) *Repository_DetachPolicy_Call
- func (_e *Repository_Expecter) DetachRegistry(ctx interface{}, consumerID interface{}, registryID interface{}) *Repository_DetachRegistry_Call
- func (_e *Repository_Expecter) DetachRegistryIfUnreferenced(ctx interface{}, gatewayID interface{}, consumerID interface{}, ...) *Repository_DetachRegistryIfUnreferenced_Call
- func (_e *Repository_Expecter) DetachRole(ctx interface{}, consumerID interface{}, roleID interface{}) *Repository_DetachRole_Call
- func (_e *Repository_Expecter) FindActiveBySlug(ctx interface{}, slug interface{}) *Repository_FindActiveBySlug_Call
- func (_e *Repository_Expecter) FindByID(ctx interface{}, id interface{}) *Repository_FindByID_Call
- func (_e *Repository_Expecter) List(ctx interface{}, filter interface{}) *Repository_List_Call
- func (_e *Repository_Expecter) ListByAuthID(ctx interface{}, authID interface{}) *Repository_ListByAuthID_Call
- func (_e *Repository_Expecter) ListByGateway(ctx interface{}, gatewayID interface{}) *Repository_ListByGateway_Call
- func (_e *Repository_Expecter) Save(ctx interface{}, c interface{}) *Repository_Save_Call
- func (_e *Repository_Expecter) Update(ctx interface{}, c interface{}) *Repository_Update_Call
- type Repository_FindActiveBySlug_Call
- func (_c *Repository_FindActiveBySlug_Call) Return(_a0 *consumer.Consumer, _a1 error) *Repository_FindActiveBySlug_Call
- func (_c *Repository_FindActiveBySlug_Call) Run(run func(ctx context.Context, slug string)) *Repository_FindActiveBySlug_Call
- func (_c *Repository_FindActiveBySlug_Call) RunAndReturn(run func(context.Context, string) (*consumer.Consumer, error)) *Repository_FindActiveBySlug_Call
- type Repository_FindByID_Call
- func (_c *Repository_FindByID_Call) Return(_a0 *consumer.Consumer, _a1 error) *Repository_FindByID_Call
- func (_c *Repository_FindByID_Call) Run(run func(ctx context.Context, id ids.ID[ids.ConsumerKind])) *Repository_FindByID_Call
- func (_c *Repository_FindByID_Call) RunAndReturn(...) *Repository_FindByID_Call
- type Repository_ListByAuthID_Call
- func (_c *Repository_ListByAuthID_Call) Return(_a0 []*consumer.Consumer, _a1 error) *Repository_ListByAuthID_Call
- func (_c *Repository_ListByAuthID_Call) Run(run func(ctx context.Context, authID ids.ID[ids.AuthKind])) *Repository_ListByAuthID_Call
- func (_c *Repository_ListByAuthID_Call) RunAndReturn(run func(context.Context, ids.ID[ids.AuthKind]) ([]*consumer.Consumer, error)) *Repository_ListByAuthID_Call
- type Repository_ListByGateway_Call
- func (_c *Repository_ListByGateway_Call) Return(_a0 []*consumer.Consumer, _a1 error) *Repository_ListByGateway_Call
- func (_c *Repository_ListByGateway_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind])) *Repository_ListByGateway_Call
- func (_c *Repository_ListByGateway_Call) RunAndReturn(...) *Repository_ListByGateway_Call
- type Repository_List_Call
- type Repository_Save_Call
- func (_c *Repository_Save_Call) Return(_a0 error) *Repository_Save_Call
- func (_c *Repository_Save_Call) Run(run func(ctx context.Context, c *consumer.Consumer)) *Repository_Save_Call
- func (_c *Repository_Save_Call) RunAndReturn(run func(context.Context, *consumer.Consumer) error) *Repository_Save_Call
- type Repository_Update_Call
- func (_c *Repository_Update_Call) Return(_a0 error) *Repository_Update_Call
- func (_c *Repository_Update_Call) Run(run func(ctx context.Context, c *consumer.Consumer)) *Repository_Update_Call
- func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, *consumer.Consumer) error) *Repository_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
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) AttachAuth ¶
func (_m *Repository) AttachAuth(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], authID ids.ID[ids.AuthKind]) error
AttachAuth provides a mock function with given fields: ctx, consumerID, authID
func (*Repository) AttachPolicy ¶
func (_m *Repository) AttachPolicy(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], policyID ids.ID[ids.PolicyKind]) error
AttachPolicy provides a mock function with given fields: ctx, consumerID, policyID
func (*Repository) AttachRegistry ¶
func (_m *Repository) AttachRegistry(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], registryID ids.ID[ids.RegistryKind], weight *int) error
AttachRegistry provides a mock function with given fields: ctx, consumerID, registryID, weight
func (*Repository) AttachRole ¶
func (_m *Repository) AttachRole(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], roleID ids.ID[ids.RoleKind]) error
AttachRole provides a mock function with given fields: ctx, consumerID, roleID
func (*Repository) Delete ¶
func (_m *Repository) Delete(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], id ids.ID[ids.ConsumerKind]) error
Delete provides a mock function with given fields: ctx, gatewayID, id
func (*Repository) DetachAuth ¶
func (_m *Repository) DetachAuth(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], authID ids.ID[ids.AuthKind]) error
DetachAuth provides a mock function with given fields: ctx, consumerID, authID
func (*Repository) DetachPolicy ¶
func (_m *Repository) DetachPolicy(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], policyID ids.ID[ids.PolicyKind]) error
DetachPolicy provides a mock function with given fields: ctx, consumerID, policyID
func (*Repository) DetachRegistry ¶
func (_m *Repository) DetachRegistry(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], registryID ids.ID[ids.RegistryKind]) error
DetachRegistry provides a mock function with given fields: ctx, consumerID, registryID
func (*Repository) DetachRegistryIfUnreferenced ¶
func (_m *Repository) DetachRegistryIfUnreferenced(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], consumerID ids.ID[ids.ConsumerKind], registryID ids.ID[ids.RegistryKind]) (*consumer.Consumer, error)
DetachRegistryIfUnreferenced provides a mock function with given fields: ctx, gatewayID, consumerID, registryID
func (*Repository) DetachRole ¶
func (_m *Repository) DetachRole(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], roleID ids.ID[ids.RoleKind]) error
DetachRole provides a mock function with given fields: ctx, consumerID, roleID
func (*Repository) EXPECT ¶
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) FindActiveBySlug ¶
func (_m *Repository) FindActiveBySlug(ctx context.Context, slug string) (*consumer.Consumer, error)
FindActiveBySlug provides a mock function with given fields: ctx, slug
func (*Repository) FindByID ¶
func (_m *Repository) FindByID(ctx context.Context, id ids.ID[ids.ConsumerKind]) (*consumer.Consumer, error)
FindByID provides a mock function with given fields: ctx, id
func (*Repository) List ¶
func (_m *Repository) List(ctx context.Context, filter consumer.ListFilter) ([]*consumer.Consumer, int, error)
List provides a mock function with given fields: ctx, filter
func (*Repository) ListByAuthID ¶
func (_m *Repository) ListByAuthID(ctx context.Context, authID ids.ID[ids.AuthKind]) ([]*consumer.Consumer, error)
ListByAuthID provides a mock function with given fields: ctx, authID
func (*Repository) ListByGateway ¶
func (_m *Repository) ListByGateway(ctx context.Context, gatewayID ids.ID[ids.GatewayKind]) ([]*consumer.Consumer, error)
ListByGateway provides a mock function with given fields: ctx, gatewayID
type Repository_AttachAuth_Call ¶
Repository_AttachAuth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachAuth'
func (*Repository_AttachAuth_Call) Return ¶
func (_c *Repository_AttachAuth_Call) Return(_a0 error) *Repository_AttachAuth_Call
func (*Repository_AttachAuth_Call) Run ¶
func (_c *Repository_AttachAuth_Call) Run(run func(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], authID ids.ID[ids.AuthKind])) *Repository_AttachAuth_Call
func (*Repository_AttachAuth_Call) RunAndReturn ¶
func (_c *Repository_AttachAuth_Call) RunAndReturn(run func(context.Context, ids.ID[ids.ConsumerKind], ids.ID[ids.AuthKind]) error) *Repository_AttachAuth_Call
type Repository_AttachPolicy_Call ¶
Repository_AttachPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachPolicy'
func (*Repository_AttachPolicy_Call) Return ¶
func (_c *Repository_AttachPolicy_Call) Return(_a0 error) *Repository_AttachPolicy_Call
func (*Repository_AttachPolicy_Call) Run ¶
func (_c *Repository_AttachPolicy_Call) Run(run func(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], policyID ids.ID[ids.PolicyKind])) *Repository_AttachPolicy_Call
func (*Repository_AttachPolicy_Call) RunAndReturn ¶
func (_c *Repository_AttachPolicy_Call) RunAndReturn(run func(context.Context, ids.ID[ids.ConsumerKind], ids.ID[ids.PolicyKind]) error) *Repository_AttachPolicy_Call
type Repository_AttachRegistry_Call ¶
Repository_AttachRegistry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachRegistry'
func (*Repository_AttachRegistry_Call) Return ¶
func (_c *Repository_AttachRegistry_Call) Return(_a0 error) *Repository_AttachRegistry_Call
func (*Repository_AttachRegistry_Call) Run ¶
func (_c *Repository_AttachRegistry_Call) Run(run func(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], registryID ids.ID[ids.RegistryKind], weight *int)) *Repository_AttachRegistry_Call
func (*Repository_AttachRegistry_Call) RunAndReturn ¶
func (_c *Repository_AttachRegistry_Call) RunAndReturn(run func(context.Context, ids.ID[ids.ConsumerKind], ids.ID[ids.RegistryKind], *int) error) *Repository_AttachRegistry_Call
type Repository_AttachRole_Call ¶
Repository_AttachRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachRole'
func (*Repository_AttachRole_Call) Return ¶
func (_c *Repository_AttachRole_Call) Return(_a0 error) *Repository_AttachRole_Call
func (*Repository_AttachRole_Call) Run ¶
func (_c *Repository_AttachRole_Call) Run(run func(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], roleID ids.ID[ids.RoleKind])) *Repository_AttachRole_Call
func (*Repository_AttachRole_Call) RunAndReturn ¶
func (_c *Repository_AttachRole_Call) RunAndReturn(run func(context.Context, ids.ID[ids.ConsumerKind], ids.ID[ids.RoleKind]) error) *Repository_AttachRole_Call
type Repository_Delete_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 ¶
func (_c *Repository_Delete_Call) Return(_a0 error) *Repository_Delete_Call
func (*Repository_Delete_Call) Run ¶
func (_c *Repository_Delete_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], id ids.ID[ids.ConsumerKind])) *Repository_Delete_Call
func (*Repository_Delete_Call) RunAndReturn ¶
func (_c *Repository_Delete_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], ids.ID[ids.ConsumerKind]) error) *Repository_Delete_Call
type Repository_DetachAuth_Call ¶
Repository_DetachAuth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachAuth'
func (*Repository_DetachAuth_Call) Return ¶
func (_c *Repository_DetachAuth_Call) Return(_a0 error) *Repository_DetachAuth_Call
func (*Repository_DetachAuth_Call) Run ¶
func (_c *Repository_DetachAuth_Call) Run(run func(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], authID ids.ID[ids.AuthKind])) *Repository_DetachAuth_Call
func (*Repository_DetachAuth_Call) RunAndReturn ¶
func (_c *Repository_DetachAuth_Call) RunAndReturn(run func(context.Context, ids.ID[ids.ConsumerKind], ids.ID[ids.AuthKind]) error) *Repository_DetachAuth_Call
type Repository_DetachPolicy_Call ¶
Repository_DetachPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachPolicy'
func (*Repository_DetachPolicy_Call) Return ¶
func (_c *Repository_DetachPolicy_Call) Return(_a0 error) *Repository_DetachPolicy_Call
func (*Repository_DetachPolicy_Call) Run ¶
func (_c *Repository_DetachPolicy_Call) Run(run func(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], policyID ids.ID[ids.PolicyKind])) *Repository_DetachPolicy_Call
func (*Repository_DetachPolicy_Call) RunAndReturn ¶
func (_c *Repository_DetachPolicy_Call) RunAndReturn(run func(context.Context, ids.ID[ids.ConsumerKind], ids.ID[ids.PolicyKind]) error) *Repository_DetachPolicy_Call
type Repository_DetachRegistryIfUnreferenced_Call ¶
Repository_DetachRegistryIfUnreferenced_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachRegistryIfUnreferenced'
func (*Repository_DetachRegistryIfUnreferenced_Call) Return ¶
func (_c *Repository_DetachRegistryIfUnreferenced_Call) Return(_a0 *consumer.Consumer, _a1 error) *Repository_DetachRegistryIfUnreferenced_Call
func (*Repository_DetachRegistryIfUnreferenced_Call) Run ¶
func (_c *Repository_DetachRegistryIfUnreferenced_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], consumerID ids.ID[ids.ConsumerKind], registryID ids.ID[ids.RegistryKind])) *Repository_DetachRegistryIfUnreferenced_Call
func (*Repository_DetachRegistryIfUnreferenced_Call) RunAndReturn ¶
func (_c *Repository_DetachRegistryIfUnreferenced_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], ids.ID[ids.ConsumerKind], ids.ID[ids.RegistryKind]) (*consumer.Consumer, error)) *Repository_DetachRegistryIfUnreferenced_Call
type Repository_DetachRegistry_Call ¶
Repository_DetachRegistry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachRegistry'
func (*Repository_DetachRegistry_Call) Return ¶
func (_c *Repository_DetachRegistry_Call) Return(_a0 error) *Repository_DetachRegistry_Call
func (*Repository_DetachRegistry_Call) Run ¶
func (_c *Repository_DetachRegistry_Call) Run(run func(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], registryID ids.ID[ids.RegistryKind])) *Repository_DetachRegistry_Call
func (*Repository_DetachRegistry_Call) RunAndReturn ¶
func (_c *Repository_DetachRegistry_Call) RunAndReturn(run func(context.Context, ids.ID[ids.ConsumerKind], ids.ID[ids.RegistryKind]) error) *Repository_DetachRegistry_Call
type Repository_DetachRole_Call ¶
Repository_DetachRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachRole'
func (*Repository_DetachRole_Call) Return ¶
func (_c *Repository_DetachRole_Call) Return(_a0 error) *Repository_DetachRole_Call
func (*Repository_DetachRole_Call) Run ¶
func (_c *Repository_DetachRole_Call) Run(run func(ctx context.Context, consumerID ids.ID[ids.ConsumerKind], roleID ids.ID[ids.RoleKind])) *Repository_DetachRole_Call
func (*Repository_DetachRole_Call) RunAndReturn ¶
func (_c *Repository_DetachRole_Call) RunAndReturn(run func(context.Context, ids.ID[ids.ConsumerKind], ids.ID[ids.RoleKind]) error) *Repository_DetachRole_Call
type Repository_Expecter ¶
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) AttachAuth ¶
func (_e *Repository_Expecter) AttachAuth(ctx interface{}, consumerID interface{}, authID interface{}) *Repository_AttachAuth_Call
AttachAuth is a helper method to define mock.On call
- ctx context.Context
- consumerID ids.ID[ids.ConsumerKind]
- authID ids.ID[ids.AuthKind]
func (*Repository_Expecter) AttachPolicy ¶
func (_e *Repository_Expecter) AttachPolicy(ctx interface{}, consumerID interface{}, policyID interface{}) *Repository_AttachPolicy_Call
AttachPolicy is a helper method to define mock.On call
- ctx context.Context
- consumerID ids.ID[ids.ConsumerKind]
- policyID ids.ID[ids.PolicyKind]
func (*Repository_Expecter) AttachRegistry ¶
func (_e *Repository_Expecter) AttachRegistry(ctx interface{}, consumerID interface{}, registryID interface{}, weight interface{}) *Repository_AttachRegistry_Call
AttachRegistry is a helper method to define mock.On call
- ctx context.Context
- consumerID ids.ID[ids.ConsumerKind]
- registryID ids.ID[ids.RegistryKind]
- weight *int
func (*Repository_Expecter) AttachRole ¶
func (_e *Repository_Expecter) AttachRole(ctx interface{}, consumerID interface{}, roleID interface{}) *Repository_AttachRole_Call
AttachRole is a helper method to define mock.On call
- ctx context.Context
- consumerID ids.ID[ids.ConsumerKind]
- roleID ids.ID[ids.RoleKind]
func (*Repository_Expecter) Delete ¶
func (_e *Repository_Expecter) Delete(ctx interface{}, gatewayID interface{}, id interface{}) *Repository_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- gatewayID ids.ID[ids.GatewayKind]
- id ids.ID[ids.ConsumerKind]
func (*Repository_Expecter) DetachAuth ¶
func (_e *Repository_Expecter) DetachAuth(ctx interface{}, consumerID interface{}, authID interface{}) *Repository_DetachAuth_Call
DetachAuth is a helper method to define mock.On call
- ctx context.Context
- consumerID ids.ID[ids.ConsumerKind]
- authID ids.ID[ids.AuthKind]
func (*Repository_Expecter) DetachPolicy ¶
func (_e *Repository_Expecter) DetachPolicy(ctx interface{}, consumerID interface{}, policyID interface{}) *Repository_DetachPolicy_Call
DetachPolicy is a helper method to define mock.On call
- ctx context.Context
- consumerID ids.ID[ids.ConsumerKind]
- policyID ids.ID[ids.PolicyKind]
func (*Repository_Expecter) DetachRegistry ¶
func (_e *Repository_Expecter) DetachRegistry(ctx interface{}, consumerID interface{}, registryID interface{}) *Repository_DetachRegistry_Call
DetachRegistry is a helper method to define mock.On call
- ctx context.Context
- consumerID ids.ID[ids.ConsumerKind]
- registryID ids.ID[ids.RegistryKind]
func (*Repository_Expecter) DetachRegistryIfUnreferenced ¶
func (_e *Repository_Expecter) DetachRegistryIfUnreferenced(ctx interface{}, gatewayID interface{}, consumerID interface{}, registryID interface{}) *Repository_DetachRegistryIfUnreferenced_Call
DetachRegistryIfUnreferenced is a helper method to define mock.On call
- ctx context.Context
- gatewayID ids.ID[ids.GatewayKind]
- consumerID ids.ID[ids.ConsumerKind]
- registryID ids.ID[ids.RegistryKind]
func (*Repository_Expecter) DetachRole ¶
func (_e *Repository_Expecter) DetachRole(ctx interface{}, consumerID interface{}, roleID interface{}) *Repository_DetachRole_Call
DetachRole is a helper method to define mock.On call
- ctx context.Context
- consumerID ids.ID[ids.ConsumerKind]
- roleID ids.ID[ids.RoleKind]
func (*Repository_Expecter) FindActiveBySlug ¶
func (_e *Repository_Expecter) FindActiveBySlug(ctx interface{}, slug interface{}) *Repository_FindActiveBySlug_Call
FindActiveBySlug is a helper method to define mock.On call
- ctx context.Context
- slug string
func (*Repository_Expecter) FindByID ¶
func (_e *Repository_Expecter) FindByID(ctx interface{}, id interface{}) *Repository_FindByID_Call
FindByID is a helper method to define mock.On call
- ctx context.Context
- id ids.ID[ids.ConsumerKind]
func (*Repository_Expecter) List ¶
func (_e *Repository_Expecter) List(ctx interface{}, filter interface{}) *Repository_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter consumer.ListFilter
func (*Repository_Expecter) ListByAuthID ¶
func (_e *Repository_Expecter) ListByAuthID(ctx interface{}, authID interface{}) *Repository_ListByAuthID_Call
ListByAuthID is a helper method to define mock.On call
- ctx context.Context
- authID ids.ID[ids.AuthKind]
func (*Repository_Expecter) ListByGateway ¶
func (_e *Repository_Expecter) ListByGateway(ctx interface{}, gatewayID interface{}) *Repository_ListByGateway_Call
ListByGateway is a helper method to define mock.On call
- ctx context.Context
- gatewayID ids.ID[ids.GatewayKind]
func (*Repository_Expecter) Save ¶
func (_e *Repository_Expecter) Save(ctx interface{}, c interface{}) *Repository_Save_Call
Save is a helper method to define mock.On call
- ctx context.Context
- c *consumer.Consumer
func (*Repository_Expecter) Update ¶
func (_e *Repository_Expecter) Update(ctx interface{}, c interface{}) *Repository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- c *consumer.Consumer
type Repository_FindActiveBySlug_Call ¶
Repository_FindActiveBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindActiveBySlug'
func (*Repository_FindActiveBySlug_Call) Return ¶
func (_c *Repository_FindActiveBySlug_Call) Return(_a0 *consumer.Consumer, _a1 error) *Repository_FindActiveBySlug_Call
func (*Repository_FindActiveBySlug_Call) Run ¶
func (_c *Repository_FindActiveBySlug_Call) Run(run func(ctx context.Context, slug string)) *Repository_FindActiveBySlug_Call
func (*Repository_FindActiveBySlug_Call) RunAndReturn ¶
func (_c *Repository_FindActiveBySlug_Call) RunAndReturn(run func(context.Context, string) (*consumer.Consumer, error)) *Repository_FindActiveBySlug_Call
type Repository_FindByID_Call ¶
Repository_FindByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByID'
func (*Repository_FindByID_Call) Return ¶
func (_c *Repository_FindByID_Call) Return(_a0 *consumer.Consumer, _a1 error) *Repository_FindByID_Call
func (*Repository_FindByID_Call) Run ¶
func (_c *Repository_FindByID_Call) Run(run func(ctx context.Context, id ids.ID[ids.ConsumerKind])) *Repository_FindByID_Call
func (*Repository_FindByID_Call) RunAndReturn ¶
func (_c *Repository_FindByID_Call) RunAndReturn(run func(context.Context, ids.ID[ids.ConsumerKind]) (*consumer.Consumer, error)) *Repository_FindByID_Call
type Repository_ListByAuthID_Call ¶
Repository_ListByAuthID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByAuthID'
func (*Repository_ListByAuthID_Call) Return ¶
func (_c *Repository_ListByAuthID_Call) Return(_a0 []*consumer.Consumer, _a1 error) *Repository_ListByAuthID_Call
func (*Repository_ListByAuthID_Call) Run ¶
func (_c *Repository_ListByAuthID_Call) Run(run func(ctx context.Context, authID ids.ID[ids.AuthKind])) *Repository_ListByAuthID_Call
func (*Repository_ListByAuthID_Call) RunAndReturn ¶
type Repository_ListByGateway_Call ¶
Repository_ListByGateway_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByGateway'
func (*Repository_ListByGateway_Call) Return ¶
func (_c *Repository_ListByGateway_Call) Return(_a0 []*consumer.Consumer, _a1 error) *Repository_ListByGateway_Call
func (*Repository_ListByGateway_Call) Run ¶
func (_c *Repository_ListByGateway_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind])) *Repository_ListByGateway_Call
func (*Repository_ListByGateway_Call) RunAndReturn ¶
func (_c *Repository_ListByGateway_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind]) ([]*consumer.Consumer, error)) *Repository_ListByGateway_Call
type Repository_List_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 ¶
func (_c *Repository_List_Call) Return(items []*consumer.Consumer, total int, err error) *Repository_List_Call
func (*Repository_List_Call) Run ¶
func (_c *Repository_List_Call) Run(run func(ctx context.Context, filter consumer.ListFilter)) *Repository_List_Call
func (*Repository_List_Call) RunAndReturn ¶
func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, consumer.ListFilter) ([]*consumer.Consumer, int, error)) *Repository_List_Call
type Repository_Save_Call ¶
Repository_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*Repository_Save_Call) Return ¶
func (_c *Repository_Save_Call) Return(_a0 error) *Repository_Save_Call
func (*Repository_Save_Call) Run ¶
func (_c *Repository_Save_Call) Run(run func(ctx context.Context, c *consumer.Consumer)) *Repository_Save_Call
func (*Repository_Save_Call) RunAndReturn ¶
func (_c *Repository_Save_Call) RunAndReturn(run func(context.Context, *consumer.Consumer) error) *Repository_Save_Call
type Repository_Update_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 ¶
func (_c *Repository_Update_Call) Return(_a0 error) *Repository_Update_Call
func (*Repository_Update_Call) Run ¶
func (_c *Repository_Update_Call) Run(run func(ctx context.Context, c *consumer.Consumer)) *Repository_Update_Call
func (*Repository_Update_Call) RunAndReturn ¶
func (_c *Repository_Update_Call) RunAndReturn(run func(context.Context, *consumer.Consumer) error) *Repository_Update_Call