Documentation
¶
Index ¶
- type Associator
- func (_m *Associator) AttachAuth(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...) error
- func (_m *Associator) AttachPolicy(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...) error
- func (_m *Associator) AttachRegistry(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...) error
- func (_m *Associator) AttachRole(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...) error
- func (_m *Associator) DetachAuth(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...) error
- func (_m *Associator) DetachPolicy(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...) error
- func (_m *Associator) DetachRegistry(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...) error
- func (_m *Associator) DetachRole(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...) error
- func (_m *Associator) EXPECT() *Associator_Expecter
- type Associator_AttachAuth_Call
- func (_c *Associator_AttachAuth_Call) Return(_a0 error) *Associator_AttachAuth_Call
- func (_c *Associator_AttachAuth_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...)) *Associator_AttachAuth_Call
- func (_c *Associator_AttachAuth_Call) RunAndReturn(...) *Associator_AttachAuth_Call
- type Associator_AttachPolicy_Call
- func (_c *Associator_AttachPolicy_Call) Return(_a0 error) *Associator_AttachPolicy_Call
- func (_c *Associator_AttachPolicy_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...)) *Associator_AttachPolicy_Call
- func (_c *Associator_AttachPolicy_Call) RunAndReturn(...) *Associator_AttachPolicy_Call
- type Associator_AttachRegistry_Call
- func (_c *Associator_AttachRegistry_Call) Return(_a0 error) *Associator_AttachRegistry_Call
- func (_c *Associator_AttachRegistry_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...)) *Associator_AttachRegistry_Call
- func (_c *Associator_AttachRegistry_Call) RunAndReturn(...) *Associator_AttachRegistry_Call
- type Associator_AttachRole_Call
- func (_c *Associator_AttachRole_Call) Return(_a0 error) *Associator_AttachRole_Call
- func (_c *Associator_AttachRole_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...)) *Associator_AttachRole_Call
- func (_c *Associator_AttachRole_Call) RunAndReturn(...) *Associator_AttachRole_Call
- type Associator_DetachAuth_Call
- func (_c *Associator_DetachAuth_Call) Return(_a0 error) *Associator_DetachAuth_Call
- func (_c *Associator_DetachAuth_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...)) *Associator_DetachAuth_Call
- func (_c *Associator_DetachAuth_Call) RunAndReturn(...) *Associator_DetachAuth_Call
- type Associator_DetachPolicy_Call
- func (_c *Associator_DetachPolicy_Call) Return(_a0 error) *Associator_DetachPolicy_Call
- func (_c *Associator_DetachPolicy_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...)) *Associator_DetachPolicy_Call
- func (_c *Associator_DetachPolicy_Call) RunAndReturn(...) *Associator_DetachPolicy_Call
- type Associator_DetachRegistry_Call
- func (_c *Associator_DetachRegistry_Call) Return(_a0 error) *Associator_DetachRegistry_Call
- func (_c *Associator_DetachRegistry_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...)) *Associator_DetachRegistry_Call
- func (_c *Associator_DetachRegistry_Call) RunAndReturn(...) *Associator_DetachRegistry_Call
- type Associator_DetachRole_Call
- func (_c *Associator_DetachRole_Call) Return(_a0 error) *Associator_DetachRole_Call
- func (_c *Associator_DetachRole_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...)) *Associator_DetachRole_Call
- func (_c *Associator_DetachRole_Call) RunAndReturn(...) *Associator_DetachRole_Call
- type Associator_Expecter
- func (_e *Associator_Expecter) AttachAuth(ctx interface{}, gatewayID interface{}, consumerID interface{}, ...) *Associator_AttachAuth_Call
- func (_e *Associator_Expecter) AttachPolicy(ctx interface{}, gatewayID interface{}, consumerID interface{}, ...) *Associator_AttachPolicy_Call
- func (_e *Associator_Expecter) AttachRegistry(ctx interface{}, gatewayID interface{}, consumerID interface{}, ...) *Associator_AttachRegistry_Call
- func (_e *Associator_Expecter) AttachRole(ctx interface{}, gatewayID interface{}, consumerID interface{}, ...) *Associator_AttachRole_Call
- func (_e *Associator_Expecter) DetachAuth(ctx interface{}, gatewayID interface{}, consumerID interface{}, ...) *Associator_DetachAuth_Call
- func (_e *Associator_Expecter) DetachPolicy(ctx interface{}, gatewayID interface{}, consumerID interface{}, ...) *Associator_DetachPolicy_Call
- func (_e *Associator_Expecter) DetachRegistry(ctx interface{}, gatewayID interface{}, consumerID interface{}, ...) *Associator_DetachRegistry_Call
- func (_e *Associator_Expecter) DetachRole(ctx interface{}, gatewayID interface{}, consumerID interface{}, ...) *Associator_DetachRole_Call
- type Creator
- type Creator_Create_Call
- type Creator_Expecter
- type DataFinder
- type DataFinder_Expecter
- type DataFinder_FindByGateway_Call
- func (_c *DataFinder_FindByGateway_Call) Return(_a0 *consumer.Data, _a1 error) *DataFinder_FindByGateway_Call
- func (_c *DataFinder_FindByGateway_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind])) *DataFinder_FindByGateway_Call
- func (_c *DataFinder_FindByGateway_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind]) (*consumer.Data, error)) *DataFinder_FindByGateway_Call
- type Deleter
- type Deleter_Delete_Call
- type Deleter_Expecter
- type Finder
- type Finder_Expecter
- type Finder_FindByID_Call
- type Finder_List_Call
- type PathResolver
- type PathResolver_Expecter
- type PathResolver_Match_Call
- func (_c *PathResolver_Match_Call) Return(_a0 []consumer.PathMatch, _a1 error) *PathResolver_Match_Call
- func (_c *PathResolver_Match_Call) Run(run func(ctx context.Context, host string, path string)) *PathResolver_Match_Call
- func (_c *PathResolver_Match_Call) RunAndReturn(run func(context.Context, string, string) ([]consumer.PathMatch, error)) *PathResolver_Match_Call
- type Updater
- type Updater_Expecter
- type Updater_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Associator ¶
Associator is an autogenerated mock type for the Associator type
func NewAssociator ¶
func NewAssociator(t interface {
mock.TestingT
Cleanup(func())
}) *Associator
NewAssociator creates a new instance of Associator. 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 (*Associator) AttachAuth ¶
func (_m *Associator) AttachAuth(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], consumerID ids.ID[ids.ConsumerKind], authID ids.ID[ids.AuthKind]) error
AttachAuth provides a mock function with given fields: ctx, gatewayID, consumerID, authID
func (*Associator) AttachPolicy ¶
func (_m *Associator) AttachPolicy(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], consumerID ids.ID[ids.ConsumerKind], policyID ids.ID[ids.PolicyKind]) error
AttachPolicy provides a mock function with given fields: ctx, gatewayID, consumerID, policyID
func (*Associator) AttachRegistry ¶
func (_m *Associator) AttachRegistry(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], consumerID ids.ID[ids.ConsumerKind], registryID ids.ID[ids.RegistryKind], weight *int) error
AttachRegistry provides a mock function with given fields: ctx, gatewayID, consumerID, registryID, weight
func (*Associator) AttachRole ¶
func (_m *Associator) AttachRole(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], consumerID ids.ID[ids.ConsumerKind], roleID ids.ID[ids.RoleKind]) error
AttachRole provides a mock function with given fields: ctx, gatewayID, consumerID, roleID
func (*Associator) DetachAuth ¶
func (_m *Associator) DetachAuth(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], consumerID ids.ID[ids.ConsumerKind], authID ids.ID[ids.AuthKind]) error
DetachAuth provides a mock function with given fields: ctx, gatewayID, consumerID, authID
func (*Associator) DetachPolicy ¶
func (_m *Associator) DetachPolicy(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], consumerID ids.ID[ids.ConsumerKind], policyID ids.ID[ids.PolicyKind]) error
DetachPolicy provides a mock function with given fields: ctx, gatewayID, consumerID, policyID
func (*Associator) DetachRegistry ¶
func (_m *Associator) DetachRegistry(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], consumerID ids.ID[ids.ConsumerKind], registryID ids.ID[ids.RegistryKind]) error
DetachRegistry provides a mock function with given fields: ctx, gatewayID, consumerID, registryID
func (*Associator) DetachRole ¶
func (_m *Associator) DetachRole(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], consumerID ids.ID[ids.ConsumerKind], roleID ids.ID[ids.RoleKind]) error
DetachRole provides a mock function with given fields: ctx, gatewayID, consumerID, roleID
func (*Associator) EXPECT ¶
func (_m *Associator) EXPECT() *Associator_Expecter
type Associator_AttachAuth_Call ¶
Associator_AttachAuth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachAuth'
func (*Associator_AttachAuth_Call) Return ¶
func (_c *Associator_AttachAuth_Call) Return(_a0 error) *Associator_AttachAuth_Call
func (*Associator_AttachAuth_Call) Run ¶
func (_c *Associator_AttachAuth_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], consumerID ids.ID[ids.ConsumerKind], authID ids.ID[ids.AuthKind])) *Associator_AttachAuth_Call
func (*Associator_AttachAuth_Call) RunAndReturn ¶
func (_c *Associator_AttachAuth_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], ids.ID[ids.ConsumerKind], ids.ID[ids.AuthKind]) error) *Associator_AttachAuth_Call
type Associator_AttachPolicy_Call ¶
Associator_AttachPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachPolicy'
func (*Associator_AttachPolicy_Call) Return ¶
func (_c *Associator_AttachPolicy_Call) Return(_a0 error) *Associator_AttachPolicy_Call
func (*Associator_AttachPolicy_Call) Run ¶
func (_c *Associator_AttachPolicy_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], consumerID ids.ID[ids.ConsumerKind], policyID ids.ID[ids.PolicyKind])) *Associator_AttachPolicy_Call
func (*Associator_AttachPolicy_Call) RunAndReturn ¶
func (_c *Associator_AttachPolicy_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], ids.ID[ids.ConsumerKind], ids.ID[ids.PolicyKind]) error) *Associator_AttachPolicy_Call
type Associator_AttachRegistry_Call ¶
Associator_AttachRegistry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachRegistry'
func (*Associator_AttachRegistry_Call) Return ¶
func (_c *Associator_AttachRegistry_Call) Return(_a0 error) *Associator_AttachRegistry_Call
func (*Associator_AttachRegistry_Call) Run ¶
func (_c *Associator_AttachRegistry_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], consumerID ids.ID[ids.ConsumerKind], registryID ids.ID[ids.RegistryKind], weight *int)) *Associator_AttachRegistry_Call
func (*Associator_AttachRegistry_Call) RunAndReturn ¶
func (_c *Associator_AttachRegistry_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], ids.ID[ids.ConsumerKind], ids.ID[ids.RegistryKind], *int) error) *Associator_AttachRegistry_Call
type Associator_AttachRole_Call ¶
Associator_AttachRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachRole'
func (*Associator_AttachRole_Call) Return ¶
func (_c *Associator_AttachRole_Call) Return(_a0 error) *Associator_AttachRole_Call
func (*Associator_AttachRole_Call) Run ¶
func (_c *Associator_AttachRole_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], consumerID ids.ID[ids.ConsumerKind], roleID ids.ID[ids.RoleKind])) *Associator_AttachRole_Call
func (*Associator_AttachRole_Call) RunAndReturn ¶
func (_c *Associator_AttachRole_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], ids.ID[ids.ConsumerKind], ids.ID[ids.RoleKind]) error) *Associator_AttachRole_Call
type Associator_DetachAuth_Call ¶
Associator_DetachAuth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachAuth'
func (*Associator_DetachAuth_Call) Return ¶
func (_c *Associator_DetachAuth_Call) Return(_a0 error) *Associator_DetachAuth_Call
func (*Associator_DetachAuth_Call) Run ¶
func (_c *Associator_DetachAuth_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], consumerID ids.ID[ids.ConsumerKind], authID ids.ID[ids.AuthKind])) *Associator_DetachAuth_Call
func (*Associator_DetachAuth_Call) RunAndReturn ¶
func (_c *Associator_DetachAuth_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], ids.ID[ids.ConsumerKind], ids.ID[ids.AuthKind]) error) *Associator_DetachAuth_Call
type Associator_DetachPolicy_Call ¶
Associator_DetachPolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachPolicy'
func (*Associator_DetachPolicy_Call) Return ¶
func (_c *Associator_DetachPolicy_Call) Return(_a0 error) *Associator_DetachPolicy_Call
func (*Associator_DetachPolicy_Call) Run ¶
func (_c *Associator_DetachPolicy_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], consumerID ids.ID[ids.ConsumerKind], policyID ids.ID[ids.PolicyKind])) *Associator_DetachPolicy_Call
func (*Associator_DetachPolicy_Call) RunAndReturn ¶
func (_c *Associator_DetachPolicy_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], ids.ID[ids.ConsumerKind], ids.ID[ids.PolicyKind]) error) *Associator_DetachPolicy_Call
type Associator_DetachRegistry_Call ¶
Associator_DetachRegistry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachRegistry'
func (*Associator_DetachRegistry_Call) Return ¶
func (_c *Associator_DetachRegistry_Call) Return(_a0 error) *Associator_DetachRegistry_Call
func (*Associator_DetachRegistry_Call) Run ¶
func (_c *Associator_DetachRegistry_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], consumerID ids.ID[ids.ConsumerKind], registryID ids.ID[ids.RegistryKind])) *Associator_DetachRegistry_Call
func (*Associator_DetachRegistry_Call) RunAndReturn ¶
func (_c *Associator_DetachRegistry_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], ids.ID[ids.ConsumerKind], ids.ID[ids.RegistryKind]) error) *Associator_DetachRegistry_Call
type Associator_DetachRole_Call ¶
Associator_DetachRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetachRole'
func (*Associator_DetachRole_Call) Return ¶
func (_c *Associator_DetachRole_Call) Return(_a0 error) *Associator_DetachRole_Call
func (*Associator_DetachRole_Call) Run ¶
func (_c *Associator_DetachRole_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], consumerID ids.ID[ids.ConsumerKind], roleID ids.ID[ids.RoleKind])) *Associator_DetachRole_Call
func (*Associator_DetachRole_Call) RunAndReturn ¶
func (_c *Associator_DetachRole_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], ids.ID[ids.ConsumerKind], ids.ID[ids.RoleKind]) error) *Associator_DetachRole_Call
type Associator_Expecter ¶
type Associator_Expecter struct {
// contains filtered or unexported fields
}
func (*Associator_Expecter) AttachAuth ¶
func (_e *Associator_Expecter) AttachAuth(ctx interface{}, gatewayID interface{}, consumerID interface{}, authID interface{}) *Associator_AttachAuth_Call
AttachAuth is a helper method to define mock.On call
- ctx context.Context
- gatewayID ids.ID[ids.GatewayKind]
- consumerID ids.ID[ids.ConsumerKind]
- authID ids.ID[ids.AuthKind]
func (*Associator_Expecter) AttachPolicy ¶
func (_e *Associator_Expecter) AttachPolicy(ctx interface{}, gatewayID interface{}, consumerID interface{}, policyID interface{}) *Associator_AttachPolicy_Call
AttachPolicy is a helper method to define mock.On call
- ctx context.Context
- gatewayID ids.ID[ids.GatewayKind]
- consumerID ids.ID[ids.ConsumerKind]
- policyID ids.ID[ids.PolicyKind]
func (*Associator_Expecter) AttachRegistry ¶
func (_e *Associator_Expecter) AttachRegistry(ctx interface{}, gatewayID interface{}, consumerID interface{}, registryID interface{}, weight interface{}) *Associator_AttachRegistry_Call
AttachRegistry 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]
- weight *int
func (*Associator_Expecter) AttachRole ¶
func (_e *Associator_Expecter) AttachRole(ctx interface{}, gatewayID interface{}, consumerID interface{}, roleID interface{}) *Associator_AttachRole_Call
AttachRole is a helper method to define mock.On call
- ctx context.Context
- gatewayID ids.ID[ids.GatewayKind]
- consumerID ids.ID[ids.ConsumerKind]
- roleID ids.ID[ids.RoleKind]
func (*Associator_Expecter) DetachAuth ¶
func (_e *Associator_Expecter) DetachAuth(ctx interface{}, gatewayID interface{}, consumerID interface{}, authID interface{}) *Associator_DetachAuth_Call
DetachAuth is a helper method to define mock.On call
- ctx context.Context
- gatewayID ids.ID[ids.GatewayKind]
- consumerID ids.ID[ids.ConsumerKind]
- authID ids.ID[ids.AuthKind]
func (*Associator_Expecter) DetachPolicy ¶
func (_e *Associator_Expecter) DetachPolicy(ctx interface{}, gatewayID interface{}, consumerID interface{}, policyID interface{}) *Associator_DetachPolicy_Call
DetachPolicy is a helper method to define mock.On call
- ctx context.Context
- gatewayID ids.ID[ids.GatewayKind]
- consumerID ids.ID[ids.ConsumerKind]
- policyID ids.ID[ids.PolicyKind]
func (*Associator_Expecter) DetachRegistry ¶
func (_e *Associator_Expecter) DetachRegistry(ctx interface{}, gatewayID interface{}, consumerID interface{}, registryID interface{}) *Associator_DetachRegistry_Call
DetachRegistry 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 (*Associator_Expecter) DetachRole ¶
func (_e *Associator_Expecter) DetachRole(ctx interface{}, gatewayID interface{}, consumerID interface{}, roleID interface{}) *Associator_DetachRole_Call
DetachRole is a helper method to define mock.On call
- ctx context.Context
- gatewayID ids.ID[ids.GatewayKind]
- consumerID ids.ID[ids.ConsumerKind]
- roleID ids.ID[ids.RoleKind]
type Creator ¶
Creator is an autogenerated mock type for the Creator type
func NewCreator ¶
NewCreator creates a new instance of Creator. 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 (*Creator) Create ¶
func (_m *Creator) Create(ctx context.Context, in consumer.CreateInput) (*domainconsumer.Consumer, error)
Create provides a mock function with given fields: ctx, in
func (*Creator) EXPECT ¶
func (_m *Creator) EXPECT() *Creator_Expecter
type Creator_Create_Call ¶
Creator_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*Creator_Create_Call) Return ¶
func (_c *Creator_Create_Call) Return(_a0 *domainconsumer.Consumer, _a1 error) *Creator_Create_Call
func (*Creator_Create_Call) Run ¶
func (_c *Creator_Create_Call) Run(run func(ctx context.Context, in consumer.CreateInput)) *Creator_Create_Call
func (*Creator_Create_Call) RunAndReturn ¶
func (_c *Creator_Create_Call) RunAndReturn(run func(context.Context, consumer.CreateInput) (*domainconsumer.Consumer, error)) *Creator_Create_Call
type Creator_Expecter ¶
type Creator_Expecter struct {
// contains filtered or unexported fields
}
func (*Creator_Expecter) Create ¶
func (_e *Creator_Expecter) Create(ctx interface{}, in interface{}) *Creator_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- in consumer.CreateInput
type DataFinder ¶
DataFinder is an autogenerated mock type for the DataFinder type
func NewDataFinder ¶
func NewDataFinder(t interface {
mock.TestingT
Cleanup(func())
}) *DataFinder
NewDataFinder creates a new instance of DataFinder. 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 (*DataFinder) EXPECT ¶
func (_m *DataFinder) EXPECT() *DataFinder_Expecter
func (*DataFinder) FindByGateway ¶
func (_m *DataFinder) FindByGateway(ctx context.Context, gatewayID ids.ID[ids.GatewayKind]) (*consumer.Data, error)
FindByGateway provides a mock function with given fields: ctx, gatewayID
type DataFinder_Expecter ¶
type DataFinder_Expecter struct {
// contains filtered or unexported fields
}
func (*DataFinder_Expecter) FindByGateway ¶
func (_e *DataFinder_Expecter) FindByGateway(ctx interface{}, gatewayID interface{}) *DataFinder_FindByGateway_Call
FindByGateway is a helper method to define mock.On call
- ctx context.Context
- gatewayID ids.ID[ids.GatewayKind]
type DataFinder_FindByGateway_Call ¶
DataFinder_FindByGateway_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByGateway'
func (*DataFinder_FindByGateway_Call) Return ¶
func (_c *DataFinder_FindByGateway_Call) Return(_a0 *consumer.Data, _a1 error) *DataFinder_FindByGateway_Call
func (*DataFinder_FindByGateway_Call) Run ¶
func (_c *DataFinder_FindByGateway_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind])) *DataFinder_FindByGateway_Call
func (*DataFinder_FindByGateway_Call) RunAndReturn ¶
func (_c *DataFinder_FindByGateway_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind]) (*consumer.Data, error)) *DataFinder_FindByGateway_Call
type Deleter ¶
Deleter is an autogenerated mock type for the Deleter type
func NewDeleter ¶
NewDeleter creates a new instance of Deleter. 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 (*Deleter) Delete ¶
func (_m *Deleter) 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 (*Deleter) EXPECT ¶
func (_m *Deleter) EXPECT() *Deleter_Expecter
type Deleter_Delete_Call ¶
Deleter_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Deleter_Delete_Call) Return ¶
func (_c *Deleter_Delete_Call) Return(_a0 error) *Deleter_Delete_Call
func (*Deleter_Delete_Call) Run ¶
func (_c *Deleter_Delete_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], id ids.ID[ids.ConsumerKind])) *Deleter_Delete_Call
func (*Deleter_Delete_Call) RunAndReturn ¶
func (_c *Deleter_Delete_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], ids.ID[ids.ConsumerKind]) error) *Deleter_Delete_Call
type Deleter_Expecter ¶
type Deleter_Expecter struct {
// contains filtered or unexported fields
}
func (*Deleter_Expecter) Delete ¶
func (_e *Deleter_Expecter) Delete(ctx interface{}, gatewayID interface{}, id interface{}) *Deleter_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]
type Finder ¶
Finder is an autogenerated mock type for the Finder type
func NewFinder ¶
NewFinder creates a new instance of Finder. 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 (*Finder) EXPECT ¶
func (_m *Finder) EXPECT() *Finder_Expecter
type Finder_Expecter ¶
type Finder_Expecter struct {
// contains filtered or unexported fields
}
func (*Finder_Expecter) FindByID ¶
func (_e *Finder_Expecter) FindByID(ctx interface{}, gatewayID interface{}, id interface{}) *Finder_FindByID_Call
FindByID is a helper method to define mock.On call
- ctx context.Context
- gatewayID ids.ID[ids.GatewayKind]
- id ids.ID[ids.ConsumerKind]
func (*Finder_Expecter) List ¶
func (_e *Finder_Expecter) List(ctx interface{}, filter interface{}) *Finder_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- filter consumer.ListFilter
type Finder_FindByID_Call ¶
Finder_FindByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByID'
func (*Finder_FindByID_Call) Return ¶
func (_c *Finder_FindByID_Call) Return(_a0 *consumer.Consumer, _a1 error) *Finder_FindByID_Call
func (*Finder_FindByID_Call) Run ¶
func (_c *Finder_FindByID_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], id ids.ID[ids.ConsumerKind])) *Finder_FindByID_Call
func (*Finder_FindByID_Call) RunAndReturn ¶
func (_c *Finder_FindByID_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], ids.ID[ids.ConsumerKind]) (*consumer.Consumer, error)) *Finder_FindByID_Call
type Finder_List_Call ¶
Finder_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Finder_List_Call) Return ¶
func (_c *Finder_List_Call) Return(_a0 []*consumer.Consumer, _a1 int, _a2 error) *Finder_List_Call
func (*Finder_List_Call) Run ¶
func (_c *Finder_List_Call) Run(run func(ctx context.Context, filter consumer.ListFilter)) *Finder_List_Call
func (*Finder_List_Call) RunAndReturn ¶
func (_c *Finder_List_Call) RunAndReturn(run func(context.Context, consumer.ListFilter) ([]*consumer.Consumer, int, error)) *Finder_List_Call
type PathResolver ¶
PathResolver is an autogenerated mock type for the PathResolver type
func NewPathResolver ¶
func NewPathResolver(t interface {
mock.TestingT
Cleanup(func())
}) *PathResolver
NewPathResolver creates a new instance of PathResolver. 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 (*PathResolver) EXPECT ¶
func (_m *PathResolver) EXPECT() *PathResolver_Expecter
type PathResolver_Expecter ¶
type PathResolver_Expecter struct {
// contains filtered or unexported fields
}
func (*PathResolver_Expecter) Match ¶
func (_e *PathResolver_Expecter) Match(ctx interface{}, host interface{}, path interface{}) *PathResolver_Match_Call
Match is a helper method to define mock.On call
- ctx context.Context
- host string
- path string
type PathResolver_Match_Call ¶
PathResolver_Match_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Match'
func (*PathResolver_Match_Call) Return ¶
func (_c *PathResolver_Match_Call) Return(_a0 []consumer.PathMatch, _a1 error) *PathResolver_Match_Call
func (*PathResolver_Match_Call) Run ¶
func (_c *PathResolver_Match_Call) Run(run func(ctx context.Context, host string, path string)) *PathResolver_Match_Call
func (*PathResolver_Match_Call) RunAndReturn ¶
func (_c *PathResolver_Match_Call) RunAndReturn(run func(context.Context, string, string) ([]consumer.PathMatch, error)) *PathResolver_Match_Call
type Updater ¶
Updater is an autogenerated mock type for the Updater type
func NewUpdater ¶
NewUpdater creates a new instance of Updater. 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 (*Updater) EXPECT ¶
func (_m *Updater) EXPECT() *Updater_Expecter
func (*Updater) Update ¶
func (_m *Updater) Update(ctx context.Context, in consumer.UpdateInput) (*domainconsumer.Consumer, error)
Update provides a mock function with given fields: ctx, in
type Updater_Expecter ¶
type Updater_Expecter struct {
// contains filtered or unexported fields
}
func (*Updater_Expecter) Update ¶
func (_e *Updater_Expecter) Update(ctx interface{}, in interface{}) *Updater_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- in consumer.UpdateInput
type Updater_Update_Call ¶
Updater_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Updater_Update_Call) Return ¶
func (_c *Updater_Update_Call) Return(_a0 *domainconsumer.Consumer, _a1 error) *Updater_Update_Call
func (*Updater_Update_Call) Run ¶
func (_c *Updater_Update_Call) Run(run func(ctx context.Context, in consumer.UpdateInput)) *Updater_Update_Call
func (*Updater_Update_Call) RunAndReturn ¶
func (_c *Updater_Update_Call) RunAndReturn(run func(context.Context, consumer.UpdateInput) (*domainconsumer.Consumer, error)) *Updater_Update_Call