mocks

package
v0.195.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 4 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 RawClient

type RawClient struct {
	mock.Mock
}

RawClient is an autogenerated mock type for the RawClient type

func NewRawClient

func NewRawClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *RawClient

NewRawClient creates a new instance of RawClient. 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 (*RawClient) CreateOrReplace

func (_m *RawClient) CreateOrReplace(manifest []byte, plan bool) error

CreateOrReplace provides a mock function with given fields: manifest, plan

func (*RawClient) Delete

func (_m *RawClient) Delete(manifest []byte) error

Delete provides a mock function with given fields: manifest

func (*RawClient) EXPECT

func (_m *RawClient) EXPECT() *RawClient_Expecter

type RawClient_CreateOrReplace_Call

type RawClient_CreateOrReplace_Call struct {
	*mock.Call
}

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

func (*RawClient_CreateOrReplace_Call) Return

func (*RawClient_CreateOrReplace_Call) Run

func (_c *RawClient_CreateOrReplace_Call) Run(run func(manifest []byte, plan bool)) *RawClient_CreateOrReplace_Call

func (*RawClient_CreateOrReplace_Call) RunAndReturn

type RawClient_Delete_Call

type RawClient_Delete_Call struct {
	*mock.Call
}

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

func (*RawClient_Delete_Call) Return

func (*RawClient_Delete_Call) Run

func (_c *RawClient_Delete_Call) Run(run func(manifest []byte)) *RawClient_Delete_Call

func (*RawClient_Delete_Call) RunAndReturn

func (_c *RawClient_Delete_Call) RunAndReturn(run func([]byte) error) *RawClient_Delete_Call

type RawClient_Expecter

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

func (*RawClient_Expecter) CreateOrReplace

func (_e *RawClient_Expecter) CreateOrReplace(manifest interface{}, plan interface{}) *RawClient_CreateOrReplace_Call

CreateOrReplace is a helper method to define mock.On call

  • manifest []byte
  • plan bool

func (*RawClient_Expecter) Delete

func (_e *RawClient_Expecter) Delete(manifest interface{}) *RawClient_Delete_Call

Delete is a helper method to define mock.On call

  • manifest []byte

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

func (*StackCreator) GetClusterStackIfExists

func (_m *StackCreator) GetClusterStackIfExists(ctx context.Context) (*types.Stack, error)

GetClusterStackIfExists provides a mock function with given fields: ctx

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

func (*StackCreator_Expecter) GetClusterStackIfExists

func (_e *StackCreator_Expecter) GetClusterStackIfExists(ctx interface{}) *StackCreator_GetClusterStackIfExists_Call

GetClusterStackIfExists is a helper method to define mock.On call

  • ctx context.Context

type StackCreator_GetClusterStackIfExists_Call

type StackCreator_GetClusterStackIfExists_Call struct {
	*mock.Call
}

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

func (*StackCreator_GetClusterStackIfExists_Call) Return

func (*StackCreator_GetClusterStackIfExists_Call) Run

func (*StackCreator_GetClusterStackIfExists_Call) RunAndReturn

type StackDeleter

type StackDeleter struct {
	mock.Mock
}

StackDeleter is an autogenerated mock type for the StackDeleter type

func NewStackDeleter

func NewStackDeleter(t interface {
	mock.TestingT
	Cleanup(func())
}) *StackDeleter

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

func (_m *StackDeleter) DeleteStackSync(_a0 context.Context, _a1 *types.Stack) error

DeleteStackSync provides a mock function with given fields: _a0, _a1

func (*StackDeleter) DescribeStack

func (_m *StackDeleter) DescribeStack(ctx context.Context, stack *types.Stack) (*types.Stack, error)

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

func (*StackDeleter) EXPECT

func (_m *StackDeleter) EXPECT() *StackDeleter_Expecter

type StackDeleter_DeleteStackSync_Call

type StackDeleter_DeleteStackSync_Call struct {
	*mock.Call
}

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

func (*StackDeleter_DeleteStackSync_Call) Return

func (*StackDeleter_DeleteStackSync_Call) Run

func (*StackDeleter_DeleteStackSync_Call) RunAndReturn

type StackDeleter_DescribeStack_Call

type StackDeleter_DescribeStack_Call struct {
	*mock.Call
}

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

func (*StackDeleter_DescribeStack_Call) Return

func (*StackDeleter_DescribeStack_Call) Run

func (*StackDeleter_DescribeStack_Call) RunAndReturn

type StackDeleter_Expecter

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

func (*StackDeleter_Expecter) DeleteStackSync

func (_e *StackDeleter_Expecter) DeleteStackSync(_a0 interface{}, _a1 interface{}) *StackDeleter_DeleteStackSync_Call

DeleteStackSync is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *types.Stack

func (*StackDeleter_Expecter) DescribeStack

func (_e *StackDeleter_Expecter) DescribeStack(ctx interface{}, stack interface{}) *StackDeleter_DescribeStack_Call

DescribeStack is a helper method to define mock.On call

  • ctx context.Context
  • stack *types.Stack

Jump to

Keyboard shortcuts

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