ecs

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: BSD-2-Clause Imports: 8 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, logger *slog.Logger, region string) (*Client, error)

NewClient creates a new ECS client.

func (*Client) DeployTaskARN

func (c *Client) DeployTaskARN(ctx context.Context, cluster, service, taskARN string) error

DeployTaskARN updates the service with the new task definition ARN.

func (*Client) GetTask

func (c *Client) GetTask(ctx context.Context, cluster, service string) (*ecs.DescribeTaskDefinitionOutput, error)

GetTask return task definition for given service in ECS cluster.

func (*Client) NewTaskRevision

func (c *Client) NewTaskRevision(
	ctx context.Context,
	input *ecs.DescribeTaskDefinitionOutput,
	images map[string]string,
	secrets map[string]string,
) (*string, error)

NewTaskRevision creates a new task definition revision with updated container(s) image(s).

type ServiceNotFoundError

type ServiceNotFoundError struct {
	Service string
	Cluster string
}

func (*ServiceNotFoundError) Error

func (e *ServiceNotFoundError) Error() string

Jump to

Keyboard shortcuts

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