internal

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTaskMetadataGetter

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

MockTaskMetadataGetter is a mock of /task API endpoint

func NewMockTaskMetadataGetter

func NewMockTaskMetadataGetter(opts ...MockTaskMetadataGetterOption) *MockTaskMetadataGetter

NewMockTaskMetadataGetter creates a new mock of /task API endpoint

func (*MockTaskMetadataGetter) ApplyOption

ApplyOption applies a mock option

func (*MockTaskMetadataGetter) GetTaskMetadata

func (g *MockTaskMetadataGetter) GetTaskMetadata(ctx context.Context) (*ecsTypes.TaskResponse, error)

GetTaskMetadata returns /task API response

type MockTaskMetadataGetterOption

type MockTaskMetadataGetterOption func(*MockTaskMetadataGetter)

MockTaskMetadataGetterOption represents an option of mock client of /task API endpoint

func MockGetTaskMetadata

func MockGetTaskMetadata(callback func(context.Context) (*ecsTypes.TaskResponse, error)) MockTaskMetadataGetterOption

MockGetTaskMetadata returns an option to set the callback of GetTaskMetadata

Jump to

Keyboard shortcuts

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