Documentation
¶
Index ¶
- type CreatorInterface
- type CreatorInterface_CreateTasks_Call
- func (_c *CreatorInterface_CreateTasks_Call) Return(_a0 *tasks.TaskTree) *CreatorInterface_CreateTasks_Call
- func (_c *CreatorInterface_CreateTasks_Call) Run(run func(ctx context.Context, capabilities []v1alpha5.Capability)) *CreatorInterface_CreateTasks_Call
- func (_c *CreatorInterface_CreateTasks_Call) RunAndReturn(run func(context.Context, []v1alpha5.Capability) *tasks.TaskTree) *CreatorInterface_CreateTasks_Call
- type CreatorInterface_Create_Call
- func (_c *CreatorInterface_Create_Call) Return(_a0 error) *CreatorInterface_Create_Call
- func (_c *CreatorInterface_Create_Call) Run(run func(ctx context.Context, capabilities []v1alpha5.Capability)) *CreatorInterface_Create_Call
- func (_c *CreatorInterface_Create_Call) RunAndReturn(run func(context.Context, []v1alpha5.Capability) error) *CreatorInterface_Create_Call
- type CreatorInterface_Expecter
- type GetterInterface
- type GetterInterface_Expecter
- type GetterInterface_Get_Call
- func (_c *GetterInterface_Get_Call) Return(_a0 []capability.Summary, _a1 error) *GetterInterface_Get_Call
- func (_c *GetterInterface_Get_Call) Run(run func(ctx context.Context, capabilityName string)) *GetterInterface_Get_Call
- func (_c *GetterInterface_Get_Call) RunAndReturn(run func(context.Context, string) ([]capability.Summary, error)) *GetterInterface_Get_Call
- type RemoverInterface
- type RemoverInterface_DeleteTasks_Call
- func (_c *RemoverInterface_DeleteTasks_Call) Return(_a0 *tasks.TaskTree) *RemoverInterface_DeleteTasks_Call
- func (_c *RemoverInterface_DeleteTasks_Call) Run(run func(ctx context.Context, capabilities []capability.Summary)) *RemoverInterface_DeleteTasks_Call
- func (_c *RemoverInterface_DeleteTasks_Call) RunAndReturn(run func(context.Context, []capability.Summary) *tasks.TaskTree) *RemoverInterface_DeleteTasks_Call
- type RemoverInterface_Delete_Call
- func (_c *RemoverInterface_Delete_Call) Return(_a0 error) *RemoverInterface_Delete_Call
- func (_c *RemoverInterface_Delete_Call) Run(run func(ctx context.Context, capabilities []capability.Summary)) *RemoverInterface_Delete_Call
- func (_c *RemoverInterface_Delete_Call) RunAndReturn(run func(context.Context, []capability.Summary) error) *RemoverInterface_Delete_Call
- type RemoverInterface_Expecter
- type StackCreator
- type StackCreator_CreateStack_Call
- type StackCreator_Expecter
- type StackRemover
- func (_m *StackRemover) DeleteStackSync(ctx context.Context, s *types.Stack) error
- func (_m *StackRemover) DescribeStack(ctx context.Context, s *types.Stack) (*types.Stack, error)
- func (_m *StackRemover) EXPECT() *StackRemover_Expecter
- func (_m *StackRemover) ListCapabilitiesIAMStacks(ctx context.Context) ([]*types.Stack, error)
- func (_m *StackRemover) ListCapabilityStacks(ctx context.Context) ([]*types.Stack, error)
- type StackRemover_DeleteStackSync_Call
- func (_c *StackRemover_DeleteStackSync_Call) Return(_a0 error) *StackRemover_DeleteStackSync_Call
- func (_c *StackRemover_DeleteStackSync_Call) Run(run func(ctx context.Context, s *types.Stack)) *StackRemover_DeleteStackSync_Call
- func (_c *StackRemover_DeleteStackSync_Call) RunAndReturn(run func(context.Context, *types.Stack) error) *StackRemover_DeleteStackSync_Call
- type StackRemover_DescribeStack_Call
- func (_c *StackRemover_DescribeStack_Call) Return(_a0 *types.Stack, _a1 error) *StackRemover_DescribeStack_Call
- func (_c *StackRemover_DescribeStack_Call) Run(run func(ctx context.Context, s *types.Stack)) *StackRemover_DescribeStack_Call
- func (_c *StackRemover_DescribeStack_Call) RunAndReturn(run func(context.Context, *types.Stack) (*types.Stack, error)) *StackRemover_DescribeStack_Call
- type StackRemover_Expecter
- func (_e *StackRemover_Expecter) DeleteStackSync(ctx interface{}, s interface{}) *StackRemover_DeleteStackSync_Call
- func (_e *StackRemover_Expecter) DescribeStack(ctx interface{}, s interface{}) *StackRemover_DescribeStack_Call
- func (_e *StackRemover_Expecter) ListCapabilitiesIAMStacks(ctx interface{}) *StackRemover_ListCapabilitiesIAMStacks_Call
- func (_e *StackRemover_Expecter) ListCapabilityStacks(ctx interface{}) *StackRemover_ListCapabilityStacks_Call
- type StackRemover_ListCapabilitiesIAMStacks_Call
- func (_c *StackRemover_ListCapabilitiesIAMStacks_Call) Return(_a0 []*types.Stack, _a1 error) *StackRemover_ListCapabilitiesIAMStacks_Call
- func (_c *StackRemover_ListCapabilitiesIAMStacks_Call) Run(run func(ctx context.Context)) *StackRemover_ListCapabilitiesIAMStacks_Call
- func (_c *StackRemover_ListCapabilitiesIAMStacks_Call) RunAndReturn(run func(context.Context) ([]*types.Stack, error)) *StackRemover_ListCapabilitiesIAMStacks_Call
- type StackRemover_ListCapabilityStacks_Call
- func (_c *StackRemover_ListCapabilityStacks_Call) Return(_a0 []*types.Stack, _a1 error) *StackRemover_ListCapabilityStacks_Call
- func (_c *StackRemover_ListCapabilityStacks_Call) Run(run func(ctx context.Context)) *StackRemover_ListCapabilityStacks_Call
- func (_c *StackRemover_ListCapabilityStacks_Call) RunAndReturn(run func(context.Context) ([]*types.Stack, error)) *StackRemover_ListCapabilityStacks_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatorInterface ¶
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 ¶
func (_m *CreatorInterface) EXPECT() *CreatorInterface_Expecter
type CreatorInterface_CreateTasks_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 (_c *CreatorInterface_CreateTasks_Call) Return(_a0 *tasks.TaskTree) *CreatorInterface_CreateTasks_Call
func (*CreatorInterface_CreateTasks_Call) Run ¶
func (_c *CreatorInterface_CreateTasks_Call) Run(run func(ctx context.Context, capabilities []v1alpha5.Capability)) *CreatorInterface_CreateTasks_Call
func (*CreatorInterface_CreateTasks_Call) RunAndReturn ¶
func (_c *CreatorInterface_CreateTasks_Call) RunAndReturn(run func(context.Context, []v1alpha5.Capability) *tasks.TaskTree) *CreatorInterface_CreateTasks_Call
type CreatorInterface_Create_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 (_c *CreatorInterface_Create_Call) Return(_a0 error) *CreatorInterface_Create_Call
func (*CreatorInterface_Create_Call) Run ¶
func (_c *CreatorInterface_Create_Call) Run(run func(ctx context.Context, capabilities []v1alpha5.Capability)) *CreatorInterface_Create_Call
func (*CreatorInterface_Create_Call) RunAndReturn ¶
func (_c *CreatorInterface_Create_Call) RunAndReturn(run func(context.Context, []v1alpha5.Capability) error) *CreatorInterface_Create_Call
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 ¶
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 (_m *GetterInterface) EXPECT() *GetterInterface_Expecter
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 ¶
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 (_c *GetterInterface_Get_Call) Return(_a0 []capability.Summary, _a1 error) *GetterInterface_Get_Call
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 ¶
func (_c *GetterInterface_Get_Call) RunAndReturn(run func(context.Context, string) ([]capability.Summary, error)) *GetterInterface_Get_Call
type RemoverInterface ¶
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 ¶
func (_m *RemoverInterface) EXPECT() *RemoverInterface_Expecter
type RemoverInterface_DeleteTasks_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 (_c *RemoverInterface_DeleteTasks_Call) Return(_a0 *tasks.TaskTree) *RemoverInterface_DeleteTasks_Call
func (*RemoverInterface_DeleteTasks_Call) Run ¶
func (_c *RemoverInterface_DeleteTasks_Call) Run(run func(ctx context.Context, capabilities []capability.Summary)) *RemoverInterface_DeleteTasks_Call
func (*RemoverInterface_DeleteTasks_Call) RunAndReturn ¶
func (_c *RemoverInterface_DeleteTasks_Call) RunAndReturn(run func(context.Context, []capability.Summary) *tasks.TaskTree) *RemoverInterface_DeleteTasks_Call
type RemoverInterface_Delete_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 (_c *RemoverInterface_Delete_Call) Return(_a0 error) *RemoverInterface_Delete_Call
func (*RemoverInterface_Delete_Call) Run ¶
func (_c *RemoverInterface_Delete_Call) Run(run func(ctx context.Context, capabilities []capability.Summary)) *RemoverInterface_Delete_Call
func (*RemoverInterface_Delete_Call) RunAndReturn ¶
func (_c *RemoverInterface_Delete_Call) RunAndReturn(run func(context.Context, []capability.Summary) error) *RemoverInterface_Delete_Call
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 ¶
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 ¶
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 (_c *StackCreator_CreateStack_Call) Return(_a0 error) *StackCreator_CreateStack_Call
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 ¶
func (_c *StackCreator_CreateStack_Call) RunAndReturn(run func(context.Context, string, builder.ResourceSetReader, map[string]string, map[string]string, chan error) error) *StackCreator_CreateStack_Call
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 ¶
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 ¶
DeleteStackSync provides a mock function with given fields: ctx, s
func (*StackRemover) DescribeStack ¶
DescribeStack provides a mock function with given fields: ctx, s
func (*StackRemover) EXPECT ¶
func (_m *StackRemover) EXPECT() *StackRemover_Expecter
func (*StackRemover) ListCapabilitiesIAMStacks ¶
ListCapabilitiesIAMStacks provides a mock function with given fields: ctx
func (*StackRemover) ListCapabilityStacks ¶
ListCapabilityStacks provides a mock function with given fields: ctx
type StackRemover_DeleteStackSync_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 (_c *StackRemover_DeleteStackSync_Call) Return(_a0 error) *StackRemover_DeleteStackSync_Call
func (*StackRemover_DeleteStackSync_Call) Run ¶
func (_c *StackRemover_DeleteStackSync_Call) Run(run func(ctx context.Context, s *types.Stack)) *StackRemover_DeleteStackSync_Call
func (*StackRemover_DeleteStackSync_Call) RunAndReturn ¶
func (_c *StackRemover_DeleteStackSync_Call) RunAndReturn(run func(context.Context, *types.Stack) error) *StackRemover_DeleteStackSync_Call
type StackRemover_DescribeStack_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 (_c *StackRemover_DescribeStack_Call) Return(_a0 *types.Stack, _a1 error) *StackRemover_DescribeStack_Call
func (*StackRemover_DescribeStack_Call) Run ¶
func (_c *StackRemover_DescribeStack_Call) Run(run func(ctx context.Context, s *types.Stack)) *StackRemover_DescribeStack_Call
func (*StackRemover_DescribeStack_Call) RunAndReturn ¶
func (_c *StackRemover_DescribeStack_Call) RunAndReturn(run func(context.Context, *types.Stack) (*types.Stack, error)) *StackRemover_DescribeStack_Call
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 ¶
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 (_c *StackRemover_ListCapabilitiesIAMStacks_Call) Return(_a0 []*types.Stack, _a1 error) *StackRemover_ListCapabilitiesIAMStacks_Call
func (*StackRemover_ListCapabilitiesIAMStacks_Call) Run ¶
func (_c *StackRemover_ListCapabilitiesIAMStacks_Call) Run(run func(ctx context.Context)) *StackRemover_ListCapabilitiesIAMStacks_Call
func (*StackRemover_ListCapabilitiesIAMStacks_Call) RunAndReturn ¶
func (_c *StackRemover_ListCapabilitiesIAMStacks_Call) RunAndReturn(run func(context.Context) ([]*types.Stack, error)) *StackRemover_ListCapabilitiesIAMStacks_Call
type StackRemover_ListCapabilityStacks_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 (_c *StackRemover_ListCapabilityStacks_Call) Return(_a0 []*types.Stack, _a1 error) *StackRemover_ListCapabilityStacks_Call
func (*StackRemover_ListCapabilityStacks_Call) Run ¶
func (_c *StackRemover_ListCapabilityStacks_Call) Run(run func(ctx context.Context)) *StackRemover_ListCapabilityStacks_Call
func (*StackRemover_ListCapabilityStacks_Call) RunAndReturn ¶
func (_c *StackRemover_ListCapabilityStacks_Call) RunAndReturn(run func(context.Context) ([]*types.Stack, error)) *StackRemover_ListCapabilityStacks_Call