ecs

package
v0.61.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ecs.Client
	// contains filtered or unexported fields
}

Client is a client for ECS

func NewClient

func NewClient(clusterName string) (*Client, error)

NewClient creates a new ECS client

func (*Client) ExecCommand

func (c *Client) ExecCommand(task, containerName string, cmd string) (string, error)

ExecCommand executes a command in a container in a task in an ECS cluster. It accepts either the task ARN or the task ID. WARNING: This function will return a nil error as soon as it succeed to execute the command and retrieve the output, even if the command executed failed WARNING: This function will not work on Fargate tasks with pidMode=task per https://github.com/aws/containers-roadmap/issues/2268

Jump to

Keyboard shortcuts

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