mocks

package
v0.228.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterRoleManager

type ClusterRoleManager struct {
	mock.Mock
}

ClusterRoleManager is an autogenerated mock type for the ClusterRoleManager type

func NewClusterRoleManager

func NewClusterRoleManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClusterRoleManager

NewClusterRoleManager creates a new instance of ClusterRoleManager. 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 (*ClusterRoleManager) DeleteAutoModePolicies

func (_m *ClusterRoleManager) DeleteAutoModePolicies(ctx context.Context) error

DeleteAutoModePolicies provides a mock function with given fields: ctx

func (*ClusterRoleManager) EXPECT

func (*ClusterRoleManager) UpdateRoleForAutoMode

func (_m *ClusterRoleManager) UpdateRoleForAutoMode(ctx context.Context) error

UpdateRoleForAutoMode provides a mock function with given fields: ctx

type ClusterRoleManager_DeleteAutoModePolicies_Call

type ClusterRoleManager_DeleteAutoModePolicies_Call struct {
	*mock.Call
}

ClusterRoleManager_DeleteAutoModePolicies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAutoModePolicies'

func (*ClusterRoleManager_DeleteAutoModePolicies_Call) Return

func (*ClusterRoleManager_DeleteAutoModePolicies_Call) Run

func (*ClusterRoleManager_DeleteAutoModePolicies_Call) RunAndReturn

type ClusterRoleManager_Expecter

type ClusterRoleManager_Expecter struct {
	// contains filtered or unexported fields
}

func (*ClusterRoleManager_Expecter) DeleteAutoModePolicies

func (_e *ClusterRoleManager_Expecter) DeleteAutoModePolicies(ctx interface{}) *ClusterRoleManager_DeleteAutoModePolicies_Call

DeleteAutoModePolicies is a helper method to define mock.On call

  • ctx context.Context

func (*ClusterRoleManager_Expecter) UpdateRoleForAutoMode

func (_e *ClusterRoleManager_Expecter) UpdateRoleForAutoMode(ctx interface{}) *ClusterRoleManager_UpdateRoleForAutoMode_Call

UpdateRoleForAutoMode is a helper method to define mock.On call

  • ctx context.Context

type ClusterRoleManager_UpdateRoleForAutoMode_Call

type ClusterRoleManager_UpdateRoleForAutoMode_Call struct {
	*mock.Call
}

ClusterRoleManager_UpdateRoleForAutoMode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRoleForAutoMode'

func (*ClusterRoleManager_UpdateRoleForAutoMode_Call) Return

func (*ClusterRoleManager_UpdateRoleForAutoMode_Call) Run

func (*ClusterRoleManager_UpdateRoleForAutoMode_Call) RunAndReturn

type ClusterStackDescriber

type ClusterStackDescriber struct {
	mock.Mock
}

ClusterStackDescriber is an autogenerated mock type for the ClusterStackDescriber type

func NewClusterStackDescriber

func NewClusterStackDescriber(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClusterStackDescriber

NewClusterStackDescriber creates a new instance of ClusterStackDescriber. 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 (*ClusterStackDescriber) ClusterHasDedicatedVPC

func (_m *ClusterStackDescriber) ClusterHasDedicatedVPC(ctx context.Context) (bool, error)

ClusterHasDedicatedVPC provides a mock function with given fields: ctx

func (*ClusterStackDescriber) DescribeClusterStack

func (_m *ClusterStackDescriber) DescribeClusterStack(ctx context.Context) (*types.Stack, error)

DescribeClusterStack provides a mock function with given fields: ctx

func (*ClusterStackDescriber) EXPECT

type ClusterStackDescriber_ClusterHasDedicatedVPC_Call

type ClusterStackDescriber_ClusterHasDedicatedVPC_Call struct {
	*mock.Call
}

ClusterStackDescriber_ClusterHasDedicatedVPC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClusterHasDedicatedVPC'

func (*ClusterStackDescriber_ClusterHasDedicatedVPC_Call) Return

func (*ClusterStackDescriber_ClusterHasDedicatedVPC_Call) Run

func (*ClusterStackDescriber_ClusterHasDedicatedVPC_Call) RunAndReturn

type ClusterStackDescriber_DescribeClusterStack_Call

type ClusterStackDescriber_DescribeClusterStack_Call struct {
	*mock.Call
}

ClusterStackDescriber_DescribeClusterStack_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeClusterStack'

func (*ClusterStackDescriber_DescribeClusterStack_Call) Return

func (*ClusterStackDescriber_DescribeClusterStack_Call) Run

func (*ClusterStackDescriber_DescribeClusterStack_Call) RunAndReturn

type ClusterStackDescriber_Expecter

type ClusterStackDescriber_Expecter struct {
	// contains filtered or unexported fields
}

func (*ClusterStackDescriber_Expecter) ClusterHasDedicatedVPC

func (_e *ClusterStackDescriber_Expecter) ClusterHasDedicatedVPC(ctx interface{}) *ClusterStackDescriber_ClusterHasDedicatedVPC_Call

ClusterHasDedicatedVPC is a helper method to define mock.On call

  • ctx context.Context

func (*ClusterStackDescriber_Expecter) DescribeClusterStack

func (_e *ClusterStackDescriber_Expecter) DescribeClusterStack(ctx interface{}) *ClusterStackDescriber_DescribeClusterStack_Call

DescribeClusterStack is a helper method to define mock.On call

  • ctx context.Context

type NodeGroupDrainer

type NodeGroupDrainer struct {
	mock.Mock
}

NodeGroupDrainer is an autogenerated mock type for the NodeGroupDrainer type

func NewNodeGroupDrainer

func NewNodeGroupDrainer(t interface {
	mock.TestingT
	Cleanup(func())
}) *NodeGroupDrainer

NewNodeGroupDrainer creates a new instance of NodeGroupDrainer. 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 (*NodeGroupDrainer) Drain

func (_m *NodeGroupDrainer) Drain(ctx context.Context) error

Drain provides a mock function with given fields: ctx

func (*NodeGroupDrainer) EXPECT

type NodeGroupDrainer_Drain_Call

type NodeGroupDrainer_Drain_Call struct {
	*mock.Call
}

NodeGroupDrainer_Drain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Drain'

func (*NodeGroupDrainer_Drain_Call) Return

func (*NodeGroupDrainer_Drain_Call) Run

func (*NodeGroupDrainer_Drain_Call) RunAndReturn

type NodeGroupDrainer_Expecter

type NodeGroupDrainer_Expecter struct {
	// contains filtered or unexported fields
}

func (*NodeGroupDrainer_Expecter) Drain

func (_e *NodeGroupDrainer_Expecter) Drain(ctx interface{}) *NodeGroupDrainer_Drain_Call

Drain is a helper method to define mock.On call

  • ctx context.Context

type RoleManager

type RoleManager struct {
	mock.Mock
}

RoleManager is an autogenerated mock type for the RoleManager type

func NewRoleManager

func NewRoleManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *RoleManager

NewRoleManager creates a new instance of RoleManager. 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 (*RoleManager) CreateOrImport

func (_m *RoleManager) CreateOrImport(ctx context.Context, clusterName string) (string, error)

CreateOrImport provides a mock function with given fields: ctx, clusterName

func (*RoleManager) DeleteIfRequired

func (_m *RoleManager) DeleteIfRequired(ctx context.Context) error

DeleteIfRequired provides a mock function with given fields: ctx

func (*RoleManager) EXPECT

func (_m *RoleManager) EXPECT() *RoleManager_Expecter

type RoleManager_CreateOrImport_Call

type RoleManager_CreateOrImport_Call struct {
	*mock.Call
}

RoleManager_CreateOrImport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateOrImport'

func (*RoleManager_CreateOrImport_Call) Return

func (*RoleManager_CreateOrImport_Call) Run

func (*RoleManager_CreateOrImport_Call) RunAndReturn

type RoleManager_DeleteIfRequired_Call

type RoleManager_DeleteIfRequired_Call struct {
	*mock.Call
}

RoleManager_DeleteIfRequired_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteIfRequired'

func (*RoleManager_DeleteIfRequired_Call) Return

func (*RoleManager_DeleteIfRequired_Call) Run

func (*RoleManager_DeleteIfRequired_Call) RunAndReturn

type RoleManager_Expecter

type RoleManager_Expecter struct {
	// contains filtered or unexported fields
}

func (*RoleManager_Expecter) CreateOrImport

func (_e *RoleManager_Expecter) CreateOrImport(ctx interface{}, clusterName interface{}) *RoleManager_CreateOrImport_Call

CreateOrImport is a helper method to define mock.On call

  • ctx context.Context
  • clusterName string

func (*RoleManager_Expecter) DeleteIfRequired

func (_e *RoleManager_Expecter) DeleteIfRequired(ctx interface{}) *RoleManager_DeleteIfRequired_Call

DeleteIfRequired is a helper method to define mock.On call

  • ctx context.Context

Jump to

Keyboard shortcuts

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