Documentation
¶
Index ¶
- type Creator
- type Creator_Create_Call
- func (_c *Creator_Create_Call) Return(_a0 *domainpolicy.Policy, _a1 error) *Creator_Create_Call
- func (_c *Creator_Create_Call) Run(run func(ctx context.Context, in policy.CreateInput)) *Creator_Create_Call
- func (_c *Creator_Create_Call) RunAndReturn(run func(context.Context, policy.CreateInput) (*domainpolicy.Policy, error)) *Creator_Create_Call
- type Creator_Expecter
- type Deleter
- type Deleter_Delete_Call
- type Deleter_Expecter
- type Duplicator
- type Duplicator_Duplicate_Call
- func (_c *Duplicator_Duplicate_Call) Return(_a0 *policy.Policy, _a1 error) *Duplicator_Duplicate_Call
- func (_c *Duplicator_Duplicate_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...)) *Duplicator_Duplicate_Call
- func (_c *Duplicator_Duplicate_Call) RunAndReturn(...) *Duplicator_Duplicate_Call
- type Duplicator_Expecter
- type Finder
- type Finder_Expecter
- type Finder_FindByID_Call
- type Finder_List_Call
- func (_c *Finder_List_Call) Return(_a0 []*policy.Policy, _a1 int, _a2 error) *Finder_List_Call
- func (_c *Finder_List_Call) Run(run func(ctx context.Context, filter policy.ListFilter)) *Finder_List_Call
- func (_c *Finder_List_Call) RunAndReturn(run func(context.Context, policy.ListFilter) ([]*policy.Policy, int, error)) *Finder_List_Call
- type Scoper
- type Scoper_Expecter
- type Scoper_SetGlobal_Call
- type Scoper_UnsetGlobal_Call
- func (_c *Scoper_UnsetGlobal_Call) Return(_a0 *policy.Policy, _a1 error) *Scoper_UnsetGlobal_Call
- func (_c *Scoper_UnsetGlobal_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], ...)) *Scoper_UnsetGlobal_Call
- func (_c *Scoper_UnsetGlobal_Call) RunAndReturn(...) *Scoper_UnsetGlobal_Call
- type Updater
- type Updater_Expecter
- type Updater_Update_Call
- func (_c *Updater_Update_Call) Return(_a0 *domainpolicy.Policy, _a1 error) *Updater_Update_Call
- func (_c *Updater_Update_Call) Run(run func(ctx context.Context, in policy.UpdateInput)) *Updater_Update_Call
- func (_c *Updater_Update_Call) RunAndReturn(run func(context.Context, policy.UpdateInput) (*domainpolicy.Policy, error)) *Updater_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 policy.CreateInput) (*domainpolicy.Policy, 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 *domainpolicy.Policy, _a1 error) *Creator_Create_Call
func (*Creator_Create_Call) Run ¶
func (_c *Creator_Create_Call) Run(run func(ctx context.Context, in policy.CreateInput)) *Creator_Create_Call
func (*Creator_Create_Call) RunAndReturn ¶
func (_c *Creator_Create_Call) RunAndReturn(run func(context.Context, policy.CreateInput) (*domainpolicy.Policy, 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 policy.CreateInput
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.PolicyKind]) 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.PolicyKind])) *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.PolicyKind]) 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.PolicyKind]
type Duplicator ¶
Duplicator is an autogenerated mock type for the Duplicator type
func NewDuplicator ¶
func NewDuplicator(t interface {
mock.TestingT
Cleanup(func())
}) *Duplicator
NewDuplicator creates a new instance of Duplicator. 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 (*Duplicator) Duplicate ¶
func (_m *Duplicator) Duplicate(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], id ids.ID[ids.PolicyKind]) (*policy.Policy, error)
Duplicate provides a mock function with given fields: ctx, gatewayID, id
func (*Duplicator) EXPECT ¶
func (_m *Duplicator) EXPECT() *Duplicator_Expecter
type Duplicator_Duplicate_Call ¶
Duplicator_Duplicate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Duplicate'
func (*Duplicator_Duplicate_Call) Return ¶
func (_c *Duplicator_Duplicate_Call) Return(_a0 *policy.Policy, _a1 error) *Duplicator_Duplicate_Call
func (*Duplicator_Duplicate_Call) Run ¶
func (_c *Duplicator_Duplicate_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], id ids.ID[ids.PolicyKind])) *Duplicator_Duplicate_Call
func (*Duplicator_Duplicate_Call) RunAndReturn ¶
func (_c *Duplicator_Duplicate_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], ids.ID[ids.PolicyKind]) (*policy.Policy, error)) *Duplicator_Duplicate_Call
type Duplicator_Expecter ¶
type Duplicator_Expecter struct {
// contains filtered or unexported fields
}
func (*Duplicator_Expecter) Duplicate ¶
func (_e *Duplicator_Expecter) Duplicate(ctx interface{}, gatewayID interface{}, id interface{}) *Duplicator_Duplicate_Call
Duplicate is a helper method to define mock.On call
- ctx context.Context
- gatewayID ids.ID[ids.GatewayKind]
- id ids.ID[ids.PolicyKind]
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.PolicyKind]
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 policy.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 *policy.Policy, _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.PolicyKind])) *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.PolicyKind]) (*policy.Policy, 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 []*policy.Policy, _a1 int, _a2 error) *Finder_List_Call
func (*Finder_List_Call) Run ¶
func (_c *Finder_List_Call) Run(run func(ctx context.Context, filter policy.ListFilter)) *Finder_List_Call
func (*Finder_List_Call) RunAndReturn ¶
func (_c *Finder_List_Call) RunAndReturn(run func(context.Context, policy.ListFilter) ([]*policy.Policy, int, error)) *Finder_List_Call
type Scoper ¶
Scoper is an autogenerated mock type for the Scoper type
func NewScoper ¶
NewScoper creates a new instance of Scoper. 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 (*Scoper) EXPECT ¶
func (_m *Scoper) EXPECT() *Scoper_Expecter
type Scoper_Expecter ¶
type Scoper_Expecter struct {
// contains filtered or unexported fields
}
func (*Scoper_Expecter) SetGlobal ¶
func (_e *Scoper_Expecter) SetGlobal(ctx interface{}, gatewayID interface{}, id interface{}) *Scoper_SetGlobal_Call
SetGlobal is a helper method to define mock.On call
- ctx context.Context
- gatewayID ids.ID[ids.GatewayKind]
- id ids.ID[ids.PolicyKind]
func (*Scoper_Expecter) UnsetGlobal ¶
func (_e *Scoper_Expecter) UnsetGlobal(ctx interface{}, gatewayID interface{}, id interface{}) *Scoper_UnsetGlobal_Call
UnsetGlobal is a helper method to define mock.On call
- ctx context.Context
- gatewayID ids.ID[ids.GatewayKind]
- id ids.ID[ids.PolicyKind]
type Scoper_SetGlobal_Call ¶
Scoper_SetGlobal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetGlobal'
func (*Scoper_SetGlobal_Call) Return ¶
func (_c *Scoper_SetGlobal_Call) Return(_a0 *policy.Policy, _a1 error) *Scoper_SetGlobal_Call
func (*Scoper_SetGlobal_Call) Run ¶
func (_c *Scoper_SetGlobal_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], id ids.ID[ids.PolicyKind])) *Scoper_SetGlobal_Call
func (*Scoper_SetGlobal_Call) RunAndReturn ¶
func (_c *Scoper_SetGlobal_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], ids.ID[ids.PolicyKind]) (*policy.Policy, error)) *Scoper_SetGlobal_Call
type Scoper_UnsetGlobal_Call ¶
Scoper_UnsetGlobal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnsetGlobal'
func (*Scoper_UnsetGlobal_Call) Return ¶
func (_c *Scoper_UnsetGlobal_Call) Return(_a0 *policy.Policy, _a1 error) *Scoper_UnsetGlobal_Call
func (*Scoper_UnsetGlobal_Call) Run ¶
func (_c *Scoper_UnsetGlobal_Call) Run(run func(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], id ids.ID[ids.PolicyKind])) *Scoper_UnsetGlobal_Call
func (*Scoper_UnsetGlobal_Call) RunAndReturn ¶
func (_c *Scoper_UnsetGlobal_Call) RunAndReturn(run func(context.Context, ids.ID[ids.GatewayKind], ids.ID[ids.PolicyKind]) (*policy.Policy, error)) *Scoper_UnsetGlobal_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 policy.UpdateInput) (*domainpolicy.Policy, 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 policy.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 *domainpolicy.Policy, _a1 error) *Updater_Update_Call
func (*Updater_Update_Call) Run ¶
func (_c *Updater_Update_Call) Run(run func(ctx context.Context, in policy.UpdateInput)) *Updater_Update_Call
func (*Updater_Update_Call) RunAndReturn ¶
func (_c *Updater_Update_Call) RunAndReturn(run func(context.Context, policy.UpdateInput) (*domainpolicy.Policy, error)) *Updater_Update_Call