mocks

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 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 BatchServiceClient

type BatchServiceClient struct {
	mock.Mock
}

BatchServiceClient is an autogenerated mock type for the BatchServiceClient type

func (*BatchServiceClient) DescribeJobsWithContext

func (_m *BatchServiceClient) DescribeJobsWithContext(ctx context.Context, input *batch.DescribeJobsInput, opts ...request.Option) (*batch.DescribeJobsOutput, error)

DescribeJobsWithContext provides a mock function with given fields: ctx, input, opts

func (*BatchServiceClient) OnDescribeJobsWithContext

func (*BatchServiceClient) OnDescribeJobsWithContextMatch

func (_m *BatchServiceClient) OnDescribeJobsWithContextMatch(matchers ...interface{}) *BatchServiceClient_DescribeJobsWithContext

func (*BatchServiceClient) OnRegisterJobDefinitionWithContextMatch

func (_m *BatchServiceClient) OnRegisterJobDefinitionWithContextMatch(matchers ...interface{}) *BatchServiceClient_RegisterJobDefinitionWithContext

func (*BatchServiceClient) OnSubmitJobWithContext

func (*BatchServiceClient) OnSubmitJobWithContextMatch

func (_m *BatchServiceClient) OnSubmitJobWithContextMatch(matchers ...interface{}) *BatchServiceClient_SubmitJobWithContext

func (*BatchServiceClient) OnTerminateJobWithContext

func (*BatchServiceClient) OnTerminateJobWithContextMatch

func (_m *BatchServiceClient) OnTerminateJobWithContextMatch(matchers ...interface{}) *BatchServiceClient_TerminateJobWithContext

func (*BatchServiceClient) RegisterJobDefinitionWithContext

func (_m *BatchServiceClient) RegisterJobDefinitionWithContext(ctx context.Context, input *batch.RegisterJobDefinitionInput, opts ...request.Option) (*batch.RegisterJobDefinitionOutput, error)

RegisterJobDefinitionWithContext provides a mock function with given fields: ctx, input, opts

func (*BatchServiceClient) SubmitJobWithContext

func (_m *BatchServiceClient) SubmitJobWithContext(ctx context.Context, input *batch.SubmitJobInput, opts ...request.Option) (*batch.SubmitJobOutput, error)

SubmitJobWithContext provides a mock function with given fields: ctx, input, opts

func (*BatchServiceClient) TerminateJobWithContext

func (_m *BatchServiceClient) TerminateJobWithContext(ctx context.Context, input *batch.TerminateJobInput, opts ...request.Option) (*batch.TerminateJobOutput, error)

TerminateJobWithContext provides a mock function with given fields: ctx, input, opts

type BatchServiceClient_DescribeJobsWithContext

type BatchServiceClient_DescribeJobsWithContext struct {
	*mock.Call
}

func (BatchServiceClient_DescribeJobsWithContext) Return

type BatchServiceClient_RegisterJobDefinitionWithContext

type BatchServiceClient_RegisterJobDefinitionWithContext struct {
	*mock.Call
}

type BatchServiceClient_SubmitJobWithContext

type BatchServiceClient_SubmitJobWithContext struct {
	*mock.Call
}

func (BatchServiceClient_SubmitJobWithContext) Return

type BatchServiceClient_TerminateJobWithContext

type BatchServiceClient_TerminateJobWithContext struct {
	*mock.Call
}

func (BatchServiceClient_TerminateJobWithContext) Return

type Cache

type Cache struct {
	mock.Mock
}

Cache is an autogenerated mock type for the Cache type

func (*Cache) Get

func (_m *Cache) Get(key definition.CacheKey) (string, bool)

Get provides a mock function with given fields: key

func (*Cache) OnGet

func (_m *Cache) OnGet(key definition.CacheKey) *Cache_Get

func (*Cache) OnGetMatch

func (_m *Cache) OnGetMatch(matchers ...interface{}) *Cache_Get

func (*Cache) OnPut

func (_m *Cache) OnPut(key definition.CacheKey, _a1 string) *Cache_Put

func (*Cache) OnPutMatch

func (_m *Cache) OnPutMatch(matchers ...interface{}) *Cache_Put

func (*Cache) Put

func (_m *Cache) Put(key definition.CacheKey, _a1 string) error

Put provides a mock function with given fields: key, _a1

type CacheKey

type CacheKey struct {
	mock.Mock
}

CacheKey is an autogenerated mock type for the CacheKey type

func (*CacheKey) OnString

func (_m *CacheKey) OnString() *CacheKey_String

func (*CacheKey) OnStringMatch

func (_m *CacheKey) OnStringMatch(matchers ...interface{}) *CacheKey_String

func (*CacheKey) String

func (_m *CacheKey) String() string

String provides a mock function with given fields:

type CacheKey_String

type CacheKey_String struct {
	*mock.Call
}

func (CacheKey_String) Return

func (_m CacheKey_String) Return(_a0 string) *CacheKey_String

type Cache_Get

type Cache_Get struct {
	*mock.Call
}

func (Cache_Get) Return

func (_m Cache_Get) Return(jobDefinition string, found bool) *Cache_Get

type Cache_Put

type Cache_Put struct {
	*mock.Call
}

func (Cache_Put) Return

func (_m Cache_Put) Return(_a0 error) *Cache_Put

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) GetAccountID

func (_m *Client) GetAccountID() string

GetAccountID provides a mock function with given fields:

func (*Client) GetJobDetailsBatch

func (_m *Client) GetJobDetailsBatch(ctx context.Context, ids []string) ([]*batch.JobDetail, error)

GetJobDetailsBatch provides a mock function with given fields: ctx, ids

func (*Client) GetRegion

func (_m *Client) GetRegion() string

GetRegion provides a mock function with given fields:

func (*Client) OnGetAccountID

func (_m *Client) OnGetAccountID() *Client_GetAccountID

func (*Client) OnGetAccountIDMatch

func (_m *Client) OnGetAccountIDMatch(matchers ...interface{}) *Client_GetAccountID

func (*Client) OnGetJobDetailsBatch

func (_m *Client) OnGetJobDetailsBatch(ctx context.Context, ids []string) *Client_GetJobDetailsBatch

func (*Client) OnGetJobDetailsBatchMatch

func (_m *Client) OnGetJobDetailsBatchMatch(matchers ...interface{}) *Client_GetJobDetailsBatch

func (*Client) OnGetRegion

func (_m *Client) OnGetRegion() *Client_GetRegion

func (*Client) OnGetRegionMatch

func (_m *Client) OnGetRegionMatch(matchers ...interface{}) *Client_GetRegion

func (*Client) OnRegisterJobDefinition

func (_m *Client) OnRegisterJobDefinition(ctx context.Context, name string, image string, role string) *Client_RegisterJobDefinition

func (*Client) OnRegisterJobDefinitionMatch

func (_m *Client) OnRegisterJobDefinitionMatch(matchers ...interface{}) *Client_RegisterJobDefinition

func (*Client) OnSubmitJob

func (_m *Client) OnSubmitJob(ctx context.Context, input *batch.SubmitJobInput) *Client_SubmitJob

func (*Client) OnSubmitJobMatch

func (_m *Client) OnSubmitJobMatch(matchers ...interface{}) *Client_SubmitJob

func (*Client) OnTerminateJob

func (_m *Client) OnTerminateJob(ctx context.Context, jobID string, reason string) *Client_TerminateJob

func (*Client) OnTerminateJobMatch

func (_m *Client) OnTerminateJobMatch(matchers ...interface{}) *Client_TerminateJob

func (*Client) RegisterJobDefinition

func (_m *Client) RegisterJobDefinition(ctx context.Context, name string, image string, role string) (string, error)

RegisterJobDefinition provides a mock function with given fields: ctx, name, image, role

func (*Client) SubmitJob

func (_m *Client) SubmitJob(ctx context.Context, input *batch.SubmitJobInput) (string, error)

SubmitJob provides a mock function with given fields: ctx, input

func (*Client) TerminateJob

func (_m *Client) TerminateJob(ctx context.Context, jobID string, reason string) error

TerminateJob provides a mock function with given fields: ctx, jobID, reason

type Client_GetAccountID

type Client_GetAccountID struct {
	*mock.Call
}

func (Client_GetAccountID) Return

type Client_GetJobDetailsBatch

type Client_GetJobDetailsBatch struct {
	*mock.Call
}

func (Client_GetJobDetailsBatch) Return

type Client_GetRegion

type Client_GetRegion struct {
	*mock.Call
}

func (Client_GetRegion) Return

func (_m Client_GetRegion) Return(_a0 string) *Client_GetRegion

type Client_RegisterJobDefinition

type Client_RegisterJobDefinition struct {
	*mock.Call
}

func (Client_RegisterJobDefinition) Return

type Client_SubmitJob

type Client_SubmitJob struct {
	*mock.Call
}

func (Client_SubmitJob) Return

func (_m Client_SubmitJob) Return(jobID string, err error) *Client_SubmitJob

type Client_TerminateJob

type Client_TerminateJob struct {
	*mock.Call
}

func (Client_TerminateJob) Return

type MockAwsBatchClient

type MockAwsBatchClient struct {
	SubmitJobWithContextCb             func(ctx context.Context, input *batch.SubmitJobInput, opts ...request.Option) (*batch.SubmitJobOutput, error)
	TerminateJobWithContextCb          func(ctx context.Context, input *batch.TerminateJobInput, opts ...request.Option) (*batch.TerminateJobOutput, error)
	DescribeJobsWithContextCb          func(ctx context.Context, input *batch.DescribeJobsInput, opts ...request.Option) (*batch.DescribeJobsOutput, error)
	RegisterJobDefinitionWithContextCb func(ctx context.Context, input *batch.RegisterJobDefinitionInput, opts ...request.Option) (*batch.RegisterJobDefinitionOutput, error)
	// contains filtered or unexported fields
}

func NewMockAwsBatchClient

func NewMockAwsBatchClient() *MockAwsBatchClient

Creates a new client with overridable behavior for certain APIs. The default implementation will progress submitted jobs until completion every time GetJobDetails is called.

func (*MockAwsBatchClient) DescribeJobsWithContext

func (m *MockAwsBatchClient) DescribeJobsWithContext(ctx aws.Context, input *batch.DescribeJobsInput,
	opts ...request.Option) (*batch.DescribeJobsOutput, error)

func (*MockAwsBatchClient) RegisterJobDefinitionWithContext

func (m *MockAwsBatchClient) RegisterJobDefinitionWithContext(ctx aws.Context, input *batch.RegisterJobDefinitionInput,
	opts ...request.Option) (*batch.RegisterJobDefinitionOutput, error)

func (*MockAwsBatchClient) SubmitJobWithContext

func (m *MockAwsBatchClient) SubmitJobWithContext(ctx aws.Context, input *batch.SubmitJobInput, opts ...request.Option) (
	*batch.SubmitJobOutput, error)

func (*MockAwsBatchClient) TerminateJobWithContext

func (m *MockAwsBatchClient) TerminateJobWithContext(ctx aws.Context, input *batch.TerminateJobInput,
	opts ...request.Option) (*batch.TerminateJobOutput, error)

Jump to

Keyboard shortcuts

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