mocks

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Associator

type Associator struct {
	mock.Mock
}

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

type Associator_AttachAuth_Call struct {
	*mock.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 (*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

type Associator_AttachPolicy_Call

type Associator_AttachPolicy_Call struct {
	*mock.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 (*Associator_AttachPolicy_Call) Run

func (*Associator_AttachPolicy_Call) RunAndReturn

type Associator_AttachRegistry_Call

type Associator_AttachRegistry_Call struct {
	*mock.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 (*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

type Associator_AttachRole_Call

type Associator_AttachRole_Call struct {
	*mock.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 (*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

type Associator_DetachAuth_Call

type Associator_DetachAuth_Call struct {
	*mock.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 (*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

type Associator_DetachPolicy_Call

type Associator_DetachPolicy_Call struct {
	*mock.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 (*Associator_DetachPolicy_Call) Run

func (*Associator_DetachPolicy_Call) RunAndReturn

type Associator_DetachRegistry_Call

type Associator_DetachRegistry_Call struct {
	*mock.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 (*Associator_DetachRegistry_Call) Run

type Associator_DetachRole_Call

type Associator_DetachRole_Call struct {
	*mock.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 (*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

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

type Creator struct {
	mock.Mock
}

Creator is an autogenerated mock type for the Creator type

func NewCreator

func NewCreator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Creator

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

Create provides a mock function with given fields: ctx, in

func (*Creator) EXPECT

func (_m *Creator) EXPECT() *Creator_Expecter

type Creator_Create_Call

type Creator_Create_Call struct {
	*mock.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 (*Creator_Create_Call) Run

func (*Creator_Create_Call) RunAndReturn

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

type DataFinder struct {
	mock.Mock
}

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

type DataFinder_FindByGateway_Call struct {
	*mock.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 (*DataFinder_FindByGateway_Call) Run

func (*DataFinder_FindByGateway_Call) RunAndReturn

type Deleter

type Deleter struct {
	mock.Mock
}

Deleter is an autogenerated mock type for the Deleter type

func NewDeleter

func NewDeleter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Deleter

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

type Deleter_Delete_Call struct {
	*mock.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 (*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

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

type Finder struct {
	mock.Mock
}

Finder is an autogenerated mock type for the Finder type

func NewFinder

func NewFinder(t interface {
	mock.TestingT
	Cleanup(func())
}) *Finder

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

func (*Finder) FindByID

func (_m *Finder) FindByID(ctx context.Context, gatewayID ids.ID[ids.GatewayKind], id ids.ID[ids.ConsumerKind]) (*consumer.Consumer, error)

FindByID provides a mock function with given fields: ctx, gatewayID, id

func (*Finder) List

func (_m *Finder) List(ctx context.Context, filter consumer.ListFilter) ([]*consumer.Consumer, int, error)

List provides a mock function with given fields: ctx, filter

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

type Finder_FindByID_Call struct {
	*mock.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 (*Finder_FindByID_Call) Run

func (*Finder_FindByID_Call) RunAndReturn

type Finder_List_Call

type Finder_List_Call struct {
	*mock.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

type PathResolver

type PathResolver struct {
	mock.Mock
}

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

func (*PathResolver) Match

func (_m *PathResolver) Match(ctx context.Context, host string, path string) ([]consumer.PathMatch, error)

Match provides a mock function with given fields: ctx, host, path

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

type PathResolver_Match_Call struct {
	*mock.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 (*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

type Updater

type Updater struct {
	mock.Mock
}

Updater is an autogenerated mock type for the Updater type

func NewUpdater

func NewUpdater(t interface {
	mock.TestingT
	Cleanup(func())
}) *Updater

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

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

type Updater_Update_Call struct {
	*mock.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 (*Updater_Update_Call) Run

func (*Updater_Update_Call) RunAndReturn

Jump to

Keyboard shortcuts

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