ecsutil

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2016 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package ecsutil is a layer on top of Amazon ECS to provide an app aware ECS client.

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultDelimiter is the default delimiter used to separate the app name from
	// the service type.
	DefaultDelimiter = "--"
)

Functions

func NewLogConfiguration added in v0.10.1

func NewLogConfiguration(logDriver string, logOpts []string) *ecs.LogConfiguration

Types

type Client

type Client struct {
	// client used to interact with the ecs API.
	ECS

	// The delimiter to use to separate app name from service type. Zero
	// value is the DefaultDelimiter.
	Delimiter string
}

Client is an app aware ECS client.

func NewClient

func NewClient(p client.ConfigProvider) *Client

NewClient returns a new Client instance using the provided aws.Config.

func (*Client) CreateAppService

func (c *Client) CreateAppService(ctx context.Context, app string, input *ecs.CreateServiceInput) (*ecs.CreateServiceOutput, error)

CreateAppService creates a new ecs service for the app.

func (*Client) DeleteAppService

func (c *Client) DeleteAppService(ctx context.Context, app string, input *ecs.DeleteServiceInput) (*ecs.DeleteServiceOutput, error)

DeleteAppService deletes the service for the app.

func (*Client) ListAppServices

func (c *Client) ListAppServices(ctx context.Context, appID string, input *ecs.ListServicesInput) (*ecs.ListServicesOutput, error)

ListAppServices lists all services for the app.

func (*Client) ListAppTasks

func (c *Client) ListAppTasks(ctx context.Context, appID string, input *ecs.ListTasksInput) (*ecs.ListTasksOutput, error)

ListAppTasks lists all the tasks for the app.

func (*Client) RegisterAppTaskDefinition

func (c *Client) RegisterAppTaskDefinition(ctx context.Context, app string, input *ecs.RegisterTaskDefinitionInput) (*ecs.RegisterTaskDefinitionOutput, error)

RegisterAppTaskDefinition register a task definition for the app.

func (*Client) UpdateAppService

func (c *Client) UpdateAppService(ctx context.Context, app string, input *ecs.UpdateServiceInput) (*ecs.UpdateServiceOutput, error)

UpdateAppService updates the service for the app.

Jump to

Keyboard shortcuts

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