mocks

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EC2Client

type EC2Client struct {
	mock.Mock
}

EC2Client is an autogenerated mock type for the EC2Client type

func NewEC2Client

func NewEC2Client(t interface {
	mock.TestingT
	Cleanup(func())
}) *EC2Client

NewEC2Client creates a new instance of EC2Client. 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 (*EC2Client) DescribeRouteTables

func (_m *EC2Client) DescribeRouteTables(ctx context.Context, params *ec2.DescribeRouteTablesInput, opts ...func(*ec2.Options)) (*ec2.DescribeRouteTablesOutput, error)

DescribeRouteTables provides a mock function with given fields: ctx, params, opts

func (*EC2Client) DescribeSubnets

func (_m *EC2Client) DescribeSubnets(ctx context.Context, params *ec2.DescribeSubnetsInput, opts ...func(*ec2.Options)) (*ec2.DescribeSubnetsOutput, error)

DescribeSubnets provides a mock function with given fields: ctx, params, opts

func (*EC2Client) DescribeVpcs

func (_m *EC2Client) DescribeVpcs(ctx context.Context, params *ec2.DescribeVpcsInput, opts ...func(*ec2.Options)) (*ec2.DescribeVpcsOutput, error)

DescribeVpcs provides a mock function with given fields: ctx, params, opts

func (*EC2Client) EXPECT

func (_m *EC2Client) EXPECT() *EC2Client_Expecter

type EC2Client_DescribeRouteTables_Call

type EC2Client_DescribeRouteTables_Call struct {
	*mock.Call
}

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

func (*EC2Client_DescribeRouteTables_Call) Return

func (*EC2Client_DescribeRouteTables_Call) Run

type EC2Client_DescribeSubnets_Call

type EC2Client_DescribeSubnets_Call struct {
	*mock.Call
}

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

func (*EC2Client_DescribeSubnets_Call) Return

func (*EC2Client_DescribeSubnets_Call) Run

func (*EC2Client_DescribeSubnets_Call) RunAndReturn

type EC2Client_DescribeVpcs_Call

type EC2Client_DescribeVpcs_Call struct {
	*mock.Call
}

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

func (*EC2Client_DescribeVpcs_Call) Return

func (*EC2Client_DescribeVpcs_Call) Run

func (*EC2Client_DescribeVpcs_Call) RunAndReturn

type EC2Client_Expecter

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

func (*EC2Client_Expecter) DescribeRouteTables

func (_e *EC2Client_Expecter) DescribeRouteTables(ctx interface{}, params interface{}, opts ...interface{}) *EC2Client_DescribeRouteTables_Call

DescribeRouteTables is a helper method to define mock.On call

  • ctx context.Context
  • params *ec2.DescribeRouteTablesInput
  • opts ...func(*ec2.Options)

func (*EC2Client_Expecter) DescribeSubnets

func (_e *EC2Client_Expecter) DescribeSubnets(ctx interface{}, params interface{}, opts ...interface{}) *EC2Client_DescribeSubnets_Call

DescribeSubnets is a helper method to define mock.On call

  • ctx context.Context
  • params *ec2.DescribeSubnetsInput
  • opts ...func(*ec2.Options)

func (*EC2Client_Expecter) DescribeVpcs

func (_e *EC2Client_Expecter) DescribeVpcs(ctx interface{}, params interface{}, opts ...interface{}) *EC2Client_DescribeVpcs_Call

DescribeVpcs is a helper method to define mock.On call

  • ctx context.Context
  • params *ec2.DescribeVpcsInput
  • opts ...func(*ec2.Options)

type ElastiCacheClient

type ElastiCacheClient struct {
	mock.Mock
}

ElastiCacheClient is an autogenerated mock type for the ElastiCacheClient type

func NewElastiCacheClient

func NewElastiCacheClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *ElastiCacheClient

NewElastiCacheClient creates a new instance of ElastiCacheClient. 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 (*ElastiCacheClient) DescribeCacheClusters

DescribeCacheClusters provides a mock function with given fields: ctx, params, optFns

func (*ElastiCacheClient) EXPECT

type ElastiCacheClient_DescribeCacheClusters_Call

type ElastiCacheClient_DescribeCacheClusters_Call struct {
	*mock.Call
}

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

func (*ElastiCacheClient_DescribeCacheClusters_Call) Run

type ElastiCacheClient_Expecter

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

func (*ElastiCacheClient_Expecter) DescribeCacheClusters

func (_e *ElastiCacheClient_Expecter) DescribeCacheClusters(ctx interface{}, params interface{}, optFns ...interface{}) *ElastiCacheClient_DescribeCacheClusters_Call

DescribeCacheClusters is a helper method to define mock.On call

  • ctx context.Context
  • params *elasticache.DescribeCacheClustersInput
  • optFns ...func(*elasticache.Options)

type ResourceLister

type ResourceLister struct {
	mock.Mock
}

ResourceLister is an autogenerated mock type for the ResourceLister type

func NewResourceLister

func NewResourceLister(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResourceLister

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

func (*ResourceLister) ListElastiCacheClusters

func (_m *ResourceLister) ListElastiCacheClusters(ctx context.Context) ([]aws.ElastiCacheCluster, error)

ListElastiCacheClusters provides a mock function with given fields: ctx

func (*ResourceLister) ListSubnets

func (_m *ResourceLister) ListSubnets(ctx context.Context) ([]aws.Subnet, error)

ListSubnets provides a mock function with given fields: ctx

func (*ResourceLister) ListVpcs

func (_m *ResourceLister) ListVpcs(ctx context.Context) ([]aws.Vpc, error)

ListVpcs provides a mock function with given fields: ctx

type ResourceLister_Expecter

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

func (*ResourceLister_Expecter) ListElastiCacheClusters

func (_e *ResourceLister_Expecter) ListElastiCacheClusters(ctx interface{}) *ResourceLister_ListElastiCacheClusters_Call

ListElastiCacheClusters is a helper method to define mock.On call

  • ctx context.Context

func (*ResourceLister_Expecter) ListSubnets

func (_e *ResourceLister_Expecter) ListSubnets(ctx interface{}) *ResourceLister_ListSubnets_Call

ListSubnets is a helper method to define mock.On call

  • ctx context.Context

func (*ResourceLister_Expecter) ListVpcs

func (_e *ResourceLister_Expecter) ListVpcs(ctx interface{}) *ResourceLister_ListVpcs_Call

ListVpcs is a helper method to define mock.On call

  • ctx context.Context

type ResourceLister_ListElastiCacheClusters_Call

type ResourceLister_ListElastiCacheClusters_Call struct {
	*mock.Call
}

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

func (*ResourceLister_ListElastiCacheClusters_Call) Return

func (*ResourceLister_ListElastiCacheClusters_Call) Run

func (*ResourceLister_ListElastiCacheClusters_Call) RunAndReturn

type ResourceLister_ListSubnets_Call

type ResourceLister_ListSubnets_Call struct {
	*mock.Call
}

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

func (*ResourceLister_ListSubnets_Call) Return

func (*ResourceLister_ListSubnets_Call) Run

func (*ResourceLister_ListSubnets_Call) RunAndReturn

type ResourceLister_ListVpcs_Call

type ResourceLister_ListVpcs_Call struct {
	*mock.Call
}

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

func (*ResourceLister_ListVpcs_Call) Return

func (*ResourceLister_ListVpcs_Call) Run

func (*ResourceLister_ListVpcs_Call) RunAndReturn

type SsmClient

type SsmClient struct {
	mock.Mock
}

SsmClient is an autogenerated mock type for the SsmClient type

func NewSsmClient

func NewSsmClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *SsmClient

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

func (_m *SsmClient) EXPECT() *SsmClient_Expecter

func (*SsmClient) GetParameter

func (_m *SsmClient) GetParameter(ctx context.Context, params *ssm.GetParameterInput, optFns ...func(*ssm.Options)) (*ssm.GetParameterOutput, error)

GetParameter provides a mock function with given fields: ctx, params, optFns

func (*SsmClient) StartSession

func (_m *SsmClient) StartSession(ctx context.Context, params *ssm.StartSessionInput, optFns ...func(*ssm.Options)) (*ssm.StartSessionOutput, error)

StartSession provides a mock function with given fields: ctx, params, optFns

func (*SsmClient) TerminateSession

func (_m *SsmClient) TerminateSession(ctx context.Context, params *ssm.TerminateSessionInput, optFns ...func(*ssm.Options)) (*ssm.TerminateSessionOutput, error)

TerminateSession provides a mock function with given fields: ctx, params, optFns

type SsmClient_Expecter

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

func (*SsmClient_Expecter) GetParameter

func (_e *SsmClient_Expecter) GetParameter(ctx interface{}, params interface{}, optFns ...interface{}) *SsmClient_GetParameter_Call

GetParameter is a helper method to define mock.On call

  • ctx context.Context
  • params *ssm.GetParameterInput
  • optFns ...func(*ssm.Options)

func (*SsmClient_Expecter) StartSession

func (_e *SsmClient_Expecter) StartSession(ctx interface{}, params interface{}, optFns ...interface{}) *SsmClient_StartSession_Call

StartSession is a helper method to define mock.On call

  • ctx context.Context
  • params *ssm.StartSessionInput
  • optFns ...func(*ssm.Options)

func (*SsmClient_Expecter) TerminateSession

func (_e *SsmClient_Expecter) TerminateSession(ctx interface{}, params interface{}, optFns ...interface{}) *SsmClient_TerminateSession_Call

TerminateSession is a helper method to define mock.On call

  • ctx context.Context
  • params *ssm.TerminateSessionInput
  • optFns ...func(*ssm.Options)

type SsmClient_GetParameter_Call

type SsmClient_GetParameter_Call struct {
	*mock.Call
}

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

func (*SsmClient_GetParameter_Call) Return

func (*SsmClient_GetParameter_Call) Run

func (_c *SsmClient_GetParameter_Call) Run(run func(ctx context.Context, params *ssm.GetParameterInput, optFns ...func(*ssm.Options))) *SsmClient_GetParameter_Call

func (*SsmClient_GetParameter_Call) RunAndReturn

type SsmClient_StartSession_Call

type SsmClient_StartSession_Call struct {
	*mock.Call
}

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

func (*SsmClient_StartSession_Call) Return

func (*SsmClient_StartSession_Call) Run

func (_c *SsmClient_StartSession_Call) Run(run func(ctx context.Context, params *ssm.StartSessionInput, optFns ...func(*ssm.Options))) *SsmClient_StartSession_Call

func (*SsmClient_StartSession_Call) RunAndReturn

type SsmClient_TerminateSession_Call

type SsmClient_TerminateSession_Call struct {
	*mock.Call
}

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

func (*SsmClient_TerminateSession_Call) Return

func (*SsmClient_TerminateSession_Call) Run

func (*SsmClient_TerminateSession_Call) RunAndReturn

Jump to

Keyboard shortcuts

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