ecsclient

package
v1.44.4 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: Apache-2.0 Imports: 22 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) GetResourceTags added in v1.24.0

func (client *APIECSClient) GetResourceTags(resourceArn string) ([]*ecs.Tag, error)

func (*APIECSClient) RegisterContainerInstance

func (client *APIECSClient) RegisterContainerInstance(containerInstanceArn string, attributes []*ecs.Attribute,
	tags []*ecs.Tag, registrationToken string, platformDevices []*ecs.PlatformDevice,
	outpostARN string) (string, 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) SubmitAttachmentStateChange added in v1.28.0

func (client *APIECSClient) SubmitAttachmentStateChange(change api.AttachmentStateChange) error

func (*APIECSClient) SubmitContainerStateChange

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

func (*APIECSClient) SubmitTaskStateChange

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

func (*APIECSClient) UpdateContainerInstancesState added in v1.32.0

func (client *APIECSClient) UpdateContainerInstancesState(instanceARN string, status string) error

Jump to

Keyboard shortcuts

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