aws

package
v0.0.0-...-0488966 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentServiceTaskDefinition

func GetCurrentServiceTaskDefinition(svc *ecs.ECS, taskARN string) (*ecs.DescribeTaskDefinitionOutput, error)

func GetServiceTask

func GetServiceTask(s Services, svc *ecs.ECS, serviceName ...string) error

func LoadService

func LoadService(s *Services, e *string) error

func NewAWSSession

func NewAWSSession(region *string, profile *string) (*session.Session, error)

func UpdateAWSService

func UpdateAWSService(svc *ecs.ECS, serviceName, serviceCluster, taskDefinition *string) (*ecs.UpdateServiceOutput, error)

Types

type Service

type Service struct {
	Name           string `yaml:"name"`
	Registry       string `yaml:"registry"`
	Provider       string `yaml:"provider,omitempty"`
	TaskOnly       bool   `yaml:"taskonly,omitempty"`
	TaskARN        string
	Status         string
	RunningCount   int64
	TaskDefinition *ecs.TaskDefinition
}

type Services

type Services struct {
	Github     string `yaml:"github,omitempty"`
	ECSCluster string `yaml:"ecs_cluster"`
	ECSRegion  string `yaml:"ecs_region"`
	Services   []Service
}

Jump to

Keyboard shortcuts

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