aws

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECSService

type ECSService struct {
	// contains filtered or unexported fields
}

ECSService implements cli.ecsProvider.

func NewECSClient

func NewECSClient(verbose bool) *ECSService

NewECSClient returns an implementation of cmd.ecsService.

func (*ECSService) ClusterRestore

func (es *ECSService) ClusterRestore(serviceSnapshots []ServiceInfo, clusterName string) error

ClusterRestore restores all services to specific versions.

func (*ECSService) ClusterRollback

func (es *ECSService) ClusterRollback(clusterName string) error

ClusterRollback updates all services in an ECS cluster to their own previous task definition.

func (*ECSService) ClusterSnapshot

func (es *ECSService) ClusterSnapshot(clusterName string) ([]ServiceInfo, error)

ClusterSnapshot returns current task versions for all services.

func (*ECSService) ServicePreviousVersion

func (es *ECSService) ServicePreviousVersion(serviceName, clusterName string) (string, error)

ServicePreviousVersion returns previous task version as ARN string.

func (*ECSService) ServiceRollback

func (es *ECSService) ServiceRollback(serviceName, clusterName, taskARN string) error

ServiceRollback updates a service to use a specific task version. If task is INACTIVE a new one is created with the old configuration.

type ServiceInfo

type ServiceInfo struct {
	ARN     string
	TaskARN string
}

ServiceInfo stores state for a service.

Jump to

Keyboard shortcuts

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