ecs

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2017 License: MIT Imports: 6 Imported by: 2

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 New

func New(session *session.Session, config *_aws.Config) *Client

func (*Client) CreateCluster

func (c *Client) CreateCluster(clusterName string) (*_ecs.Cluster, error)

func (*Client) CreateService

func (c *Client) CreateService(clusterName, serviceName, taskDefARN string, desiredCount uint16, loadBalancers []*LoadBalancer, serviceRole string) (*_ecs.Service, error)

func (*Client) DeleteCluster

func (c *Client) DeleteCluster(clusterName string) error

func (*Client) DeleteService

func (c *Client) DeleteService(clusterName, serviceName string) error

func (*Client) ListContainerInstanceARNs

func (c *Client) ListContainerInstanceARNs(clusterName string) ([]string, error)

func (*Client) ListServiceTaskARNs

func (c *Client) ListServiceTaskARNs(clusterName, serviceName string) ([]string, error)

func (*Client) RetrieveCluster

func (c *Client) RetrieveCluster(clusterName string) (*_ecs.Cluster, error)

func (*Client) RetrieveContainerInstances

func (c *Client) RetrieveContainerInstances(clusterName string, containerInstanceARNs []string) ([]*_ecs.ContainerInstance, error)

func (*Client) RetrieveService

func (c *Client) RetrieveService(clusterName, serviceName string) (*_ecs.Service, error)

func (*Client) RetrieveTaskDefinition

func (c *Client) RetrieveTaskDefinition(taskDefinitionNameOrARN string) (*_ecs.TaskDefinition, error)

func (*Client) RetrieveTasks

func (c *Client) RetrieveTasks(clusterName string, taskARNs []string) ([]*_ecs.Task, error)

func (*Client) UpdateService

func (c *Client) UpdateService(clusterName, serviceName, taskDefARN string, desiredCount uint16) (*_ecs.Service, error)

func (*Client) UpdateTaskDefinition

func (c *Client) UpdateTaskDefinition(taskDefinitionName, image, taskContainerName string, cpu, memory uint64, envs map[string]string, portMappings []PortMapping, logDriver string, logDriverOptions map[string]string) (*_ecs.TaskDefinition, error)

type LoadBalancer

type LoadBalancer struct {
	ELBTargetGroupARN string `json:"elb_target_group_arn"`
	TaskContainerName string `json:"task_container_name"`
	TaskContainerPort uint16 `json:"task_container_port"`
}

type PortMapping

type PortMapping struct {
	ContainerPort uint16 `json:"container_port"`
	Protocol      string `json:"protocol"`
}

Jump to

Keyboard shortcuts

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