infra

package
v0.0.0-...-f9b3b8e Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsEcsSdk

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

AwsEcsSdk implements the AwsEcsAPI.

func NewAwsEcsSdk

func NewAwsEcsSdk(ecsSvc *ecs.ECS, clusterName string) (*AwsEcsSdk, error)

NewAwsEcsSdk creates a new AwsEcsSdk using the provided ECS service and cluster name. It returns an error if the cluster cannot be described.

func NewAwsEcsSdkFromConfig

func NewAwsEcsSdkFromConfig() (*AwsEcsSdk, error)

NewAwsEcsSdkFromConfig creates a new AwsEcsSdk using the configuration exposed via viper. The AWS ID, secret, region and cluster name are retrieved from the configuration.

func (*AwsEcsSdk) DescribeService

func (s *AwsEcsSdk) DescribeService(serviceArn string) (*ecs.Service, error)

DescribeService returns the service description for a single service.

func (*AwsEcsSdk) DescribeTaskDefinition

func (s *AwsEcsSdk) DescribeTaskDefinition(taskDefArn string) (*ecs.TaskDefinition, error)

DescribeTaskDefinition returns the task definition for the provided arn.

func (*AwsEcsSdk) ListServices

func (s *AwsEcsSdk) ListServices() ([]string, error)

ListServices returns the service arns of the current cluster.

Jump to

Keyboard shortcuts

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