ecsclient

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewECSClient

func NewECSClient(
	credentialProvider *credentials.Credentials,
	config *config.Config,
	ec2MetadataClient ec2.EC2MetadataClient) api.ECSClient

NewECSClient creates a new ECSClient interface object

Types

type APIECSClient

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

APIECSClient implements ECSClient

func (*APIECSClient) CreateCluster

func (client *APIECSClient) CreateCluster(clusterName string) (string, error)

CreateCluster creates a cluster from a given name and returns its arn

func (*APIECSClient) DiscoverPollEndpoint

func (client *APIECSClient) DiscoverPollEndpoint(containerInstanceArn string) (string, error)

func (*APIECSClient) DiscoverTelemetryEndpoint

func (client *APIECSClient) DiscoverTelemetryEndpoint(containerInstanceArn string) (string, error)

func (*APIECSClient) RegisterContainerInstance

func (client *APIECSClient) RegisterContainerInstance(containerInstanceArn string, attributes []*ecs.Attribute) (string, error)

RegisterContainerInstance calculates the appropriate resources, creates the default cluster if necessary, and returns the registered ContainerInstanceARN if successful. Supplying a non-empty container instance ARN allows a container instance to update its registered resources.

func (*APIECSClient) SetSDK

func (client *APIECSClient) SetSDK(sdk api.ECSSDK)

SetSDK overrides the SDK to the given one. This is useful for injecting a test implementation

func (*APIECSClient) SetSubmitStateChangeSDK

func (client *APIECSClient) SetSubmitStateChangeSDK(sdk api.ECSSubmitStateSDK)

SetSubmitStateChangeSDK overrides the SDK to the given one. This is useful for injecting a test implementation

func (*APIECSClient) SubmitContainerStateChange

func (client *APIECSClient) SubmitContainerStateChange(change api.ContainerStateChange) error

func (*APIECSClient) SubmitTaskStateChange

func (client *APIECSClient) SubmitTaskStateChange(change api.TaskStateChange) error

Jump to

Keyboard shortcuts

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