mocks

package
v0.221.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatorInterface

type CreatorInterface struct {
	mock.Mock
}

CreatorInterface is an autogenerated mock type for the CreatorInterface type

func NewCreatorInterface

func NewCreatorInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *CreatorInterface

NewCreatorInterface creates a new instance of CreatorInterface. 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 (*CreatorInterface) Create

func (_m *CreatorInterface) Create(ctx context.Context, capabilities []v1alpha5.Capability) error

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

func (*CreatorInterface) CreateTasks

func (_m *CreatorInterface) CreateTasks(ctx context.Context, capabilities []v1alpha5.Capability) *tasks.TaskTree

CreateTasks provides a mock function with given fields: ctx, capabilities

func (*CreatorInterface) EXPECT

type CreatorInterface_CreateTasks_Call

type CreatorInterface_CreateTasks_Call struct {
	*mock.Call
}

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

func (*CreatorInterface_CreateTasks_Call) Return

func (*CreatorInterface_CreateTasks_Call) Run

func (*CreatorInterface_CreateTasks_Call) RunAndReturn

type CreatorInterface_Create_Call

type CreatorInterface_Create_Call struct {
	*mock.Call
}

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

func (*CreatorInterface_Create_Call) Return

func (*CreatorInterface_Create_Call) Run

func (*CreatorInterface_Create_Call) RunAndReturn

type CreatorInterface_Expecter

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

func (*CreatorInterface_Expecter) Create

func (_e *CreatorInterface_Expecter) Create(ctx interface{}, capabilities interface{}) *CreatorInterface_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • capabilities []v1alpha5.Capability

func (*CreatorInterface_Expecter) CreateTasks

func (_e *CreatorInterface_Expecter) CreateTasks(ctx interface{}, capabilities interface{}) *CreatorInterface_CreateTasks_Call

CreateTasks is a helper method to define mock.On call

  • ctx context.Context
  • capabilities []v1alpha5.Capability

type GetterInterface

type GetterInterface struct {
	mock.Mock
}

GetterInterface is an autogenerated mock type for the GetterInterface type

func NewGetterInterface

func NewGetterInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *GetterInterface

NewGetterInterface creates a new instance of GetterInterface. 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 (*GetterInterface) EXPECT

func (*GetterInterface) Get

func (_m *GetterInterface) Get(ctx context.Context, capabilityName string) ([]capability.Summary, error)

Get provides a mock function with given fields: ctx, capabilityName

type GetterInterface_Expecter

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

func (*GetterInterface_Expecter) Get

func (_e *GetterInterface_Expecter) Get(ctx interface{}, capabilityName interface{}) *GetterInterface_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • capabilityName string

type GetterInterface_Get_Call

type GetterInterface_Get_Call struct {
	*mock.Call
}

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

func (*GetterInterface_Get_Call) Return

func (*GetterInterface_Get_Call) Run

func (_c *GetterInterface_Get_Call) Run(run func(ctx context.Context, capabilityName string)) *GetterInterface_Get_Call

func (*GetterInterface_Get_Call) RunAndReturn

type RemoverInterface

type RemoverInterface struct {
	mock.Mock
}

RemoverInterface is an autogenerated mock type for the RemoverInterface type

func NewRemoverInterface

func NewRemoverInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *RemoverInterface

NewRemoverInterface creates a new instance of RemoverInterface. 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 (*RemoverInterface) Delete

func (_m *RemoverInterface) Delete(ctx context.Context, capabilities []capability.Summary) error

Delete provides a mock function with given fields: ctx, capabilities

func (*RemoverInterface) DeleteTasks

func (_m *RemoverInterface) DeleteTasks(ctx context.Context, capabilities []capability.Summary) *tasks.TaskTree

DeleteTasks provides a mock function with given fields: ctx, capabilities

func (*RemoverInterface) EXPECT

type RemoverInterface_DeleteTasks_Call

type RemoverInterface_DeleteTasks_Call struct {
	*mock.Call
}

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

func (*RemoverInterface_DeleteTasks_Call) Return

func (*RemoverInterface_DeleteTasks_Call) Run

func (*RemoverInterface_DeleteTasks_Call) RunAndReturn

type RemoverInterface_Delete_Call

type RemoverInterface_Delete_Call struct {
	*mock.Call
}

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

func (*RemoverInterface_Delete_Call) Return

func (*RemoverInterface_Delete_Call) Run

func (*RemoverInterface_Delete_Call) RunAndReturn

type RemoverInterface_Expecter

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

func (*RemoverInterface_Expecter) Delete

func (_e *RemoverInterface_Expecter) Delete(ctx interface{}, capabilities interface{}) *RemoverInterface_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • capabilities []capability.Summary

func (*RemoverInterface_Expecter) DeleteTasks

func (_e *RemoverInterface_Expecter) DeleteTasks(ctx interface{}, capabilities interface{}) *RemoverInterface_DeleteTasks_Call

DeleteTasks is a helper method to define mock.On call

  • ctx context.Context
  • capabilities []capability.Summary

type StackCreator

type StackCreator struct {
	mock.Mock
}

StackCreator is an autogenerated mock type for the StackCreator type

func NewStackCreator

func NewStackCreator(t interface {
	mock.TestingT
	Cleanup(func())
}) *StackCreator

NewStackCreator creates a new instance of StackCreator. 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 (*StackCreator) CreateStack

func (_m *StackCreator) CreateStack(ctx context.Context, stackName string, resourceSet builder.ResourceSetReader, tags map[string]string, parameters map[string]string, errs chan error) error

CreateStack provides a mock function with given fields: ctx, stackName, resourceSet, tags, parameters, errs

func (*StackCreator) EXPECT

func (_m *StackCreator) EXPECT() *StackCreator_Expecter

type StackCreator_CreateStack_Call

type StackCreator_CreateStack_Call struct {
	*mock.Call
}

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

func (*StackCreator_CreateStack_Call) Return

func (*StackCreator_CreateStack_Call) Run

func (_c *StackCreator_CreateStack_Call) Run(run func(ctx context.Context, stackName string, resourceSet builder.ResourceSetReader, tags map[string]string, parameters map[string]string, errs chan error)) *StackCreator_CreateStack_Call

func (*StackCreator_CreateStack_Call) RunAndReturn

type StackCreator_Expecter

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

func (*StackCreator_Expecter) CreateStack

func (_e *StackCreator_Expecter) CreateStack(ctx interface{}, stackName interface{}, resourceSet interface{}, tags interface{}, parameters interface{}, errs interface{}) *StackCreator_CreateStack_Call

CreateStack is a helper method to define mock.On call

  • ctx context.Context
  • stackName string
  • resourceSet builder.ResourceSetReader
  • tags map[string]string
  • parameters map[string]string
  • errs chan error

type StackRemover

type StackRemover struct {
	mock.Mock
}

StackRemover is an autogenerated mock type for the StackRemover type

func NewStackRemover

func NewStackRemover(t interface {
	mock.TestingT
	Cleanup(func())
}) *StackRemover

NewStackRemover creates a new instance of StackRemover. 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 (*StackRemover) DeleteStackSync

func (_m *StackRemover) DeleteStackSync(ctx context.Context, s *types.Stack) error

DeleteStackSync provides a mock function with given fields: ctx, s

func (*StackRemover) DescribeStack

func (_m *StackRemover) DescribeStack(ctx context.Context, s *types.Stack) (*types.Stack, error)

DescribeStack provides a mock function with given fields: ctx, s

func (*StackRemover) EXPECT

func (_m *StackRemover) EXPECT() *StackRemover_Expecter

func (*StackRemover) ListCapabilitiesIAMStacks

func (_m *StackRemover) ListCapabilitiesIAMStacks(ctx context.Context) ([]*types.Stack, error)

ListCapabilitiesIAMStacks provides a mock function with given fields: ctx

func (*StackRemover) ListCapabilityStacks

func (_m *StackRemover) ListCapabilityStacks(ctx context.Context) ([]*types.Stack, error)

ListCapabilityStacks provides a mock function with given fields: ctx

type StackRemover_DeleteStackSync_Call

type StackRemover_DeleteStackSync_Call struct {
	*mock.Call
}

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

func (*StackRemover_DeleteStackSync_Call) Return

func (*StackRemover_DeleteStackSync_Call) Run

func (*StackRemover_DeleteStackSync_Call) RunAndReturn

type StackRemover_DescribeStack_Call

type StackRemover_DescribeStack_Call struct {
	*mock.Call
}

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

func (*StackRemover_DescribeStack_Call) Return

func (*StackRemover_DescribeStack_Call) Run

func (*StackRemover_DescribeStack_Call) RunAndReturn

type StackRemover_Expecter

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

func (*StackRemover_Expecter) DeleteStackSync

func (_e *StackRemover_Expecter) DeleteStackSync(ctx interface{}, s interface{}) *StackRemover_DeleteStackSync_Call

DeleteStackSync is a helper method to define mock.On call

  • ctx context.Context
  • s *types.Stack

func (*StackRemover_Expecter) DescribeStack

func (_e *StackRemover_Expecter) DescribeStack(ctx interface{}, s interface{}) *StackRemover_DescribeStack_Call

DescribeStack is a helper method to define mock.On call

  • ctx context.Context
  • s *types.Stack

func (*StackRemover_Expecter) ListCapabilitiesIAMStacks

func (_e *StackRemover_Expecter) ListCapabilitiesIAMStacks(ctx interface{}) *StackRemover_ListCapabilitiesIAMStacks_Call

ListCapabilitiesIAMStacks is a helper method to define mock.On call

  • ctx context.Context

func (*StackRemover_Expecter) ListCapabilityStacks

func (_e *StackRemover_Expecter) ListCapabilityStacks(ctx interface{}) *StackRemover_ListCapabilityStacks_Call

ListCapabilityStacks is a helper method to define mock.On call

  • ctx context.Context

type StackRemover_ListCapabilitiesIAMStacks_Call

type StackRemover_ListCapabilitiesIAMStacks_Call struct {
	*mock.Call
}

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

func (*StackRemover_ListCapabilitiesIAMStacks_Call) Return

func (*StackRemover_ListCapabilitiesIAMStacks_Call) Run

func (*StackRemover_ListCapabilitiesIAMStacks_Call) RunAndReturn

type StackRemover_ListCapabilityStacks_Call

type StackRemover_ListCapabilityStacks_Call struct {
	*mock.Call
}

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

func (*StackRemover_ListCapabilityStacks_Call) Return

func (*StackRemover_ListCapabilityStacks_Call) Run

func (*StackRemover_ListCapabilityStacks_Call) RunAndReturn

Jump to

Keyboard shortcuts

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