ecs

package
v0.85.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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