Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerDefinition

type ContainerDefinition struct {
	Overwrite bool

	Name       string
	Image      *string
	EntryPoint []*string
	Command    []*string

	DependsOn             []*ecs.ContainerDependency
	RepositoryCredentials *ecs.RepositoryCredentials
	DockerSecurityOptions []*string
	DockerLabels          map[string]*string

	Essential            *bool
	Cpu                  *int64
	Memory               *int64
	MemoryReservation    *int64
	ResourceRequirements []*ecs.ResourceRequirement
	Ulimits              []*ecs.Ulimit

	User                   *string
	WorkingDirectory       *string
	Interactive            *bool
	PseudoTerminal         *bool
	ReadonlyRootFilesystem *bool
	Privileged             *bool
	LinuxParameters        *ecs.LinuxParameters
	SystemControls         []*ecs.SystemControl

	Hostname    *string
	ExtraHosts  []*ecs.HostEntry
	MountPoints []*ecs.MountPoint
	VolumesFrom []*ecs.VolumeFrom

	Environment []*ecs.KeyValuePair
	Secrets     []*ecs.Secret

	Links        []*string
	PortMappings []*ecs.PortMapping

	DisableNetworking *bool
	DnsSearchDomains  []*string
	DnsServers        []*string

	HealthCheck  *ecs.HealthCheck
	StartTimeout *int64
	StopTimeout  *int64

	FirelensConfiguration *ecs.FirelensConfiguration
	LogConfiguration      *ecs.LogConfiguration
}

type Service

type Service struct {
	Cluster *string
	Service string

	PlatformVersion      *string
	NetworkConfiguration *ecs.NetworkConfiguration
	TaskDefinition       *TaskDefinition

	ForceNewDeployment            *bool
	DeploymentConfiguration       *ecs.DeploymentConfiguration
	DesiredCount                  *int64
	HealthCheckGracePeriodSeconds *int64
	// contains filtered or unexported fields
}

func (*Service) Deploy

func (s *Service) Deploy(svc *ecs.ECS) (*ecs.Service, error)

func (*Service) Update

func (s *Service) Update(svc *ecs.ECS) (*ecs.Service, error)

type ServicePlugin

type ServicePlugin struct {
	AWSCredential cred.Credential
	Service       Service
}

func (*ServicePlugin) DeployService

func (p *ServicePlugin) DeployService() error

func (*ServicePlugin) UpdateService

func (p *ServicePlugin) UpdateService(timeout int64) error

type TaskDefinition

type TaskDefinition struct {
	Overwrite       bool
	DeleteContainer bool

	Family string

	TaskRoleArn      *string
	ExecutionRoleArn *string

	NetworkMode             *string
	ContainerDefinitions    []*ContainerDefinition
	Volumes                 []*ecs.Volume
	RequiresCompatibilities []*string

	Cpu    *string
	Memory *string

	IpcMode *string
	PidMode *string

	PlacementConstraints []*ecs.TaskDefinitionPlacementConstraint
	ProxyConfiguration   *ecs.ProxyConfiguration

	Tags []*ecs.Tag
}

func (*TaskDefinition) Register

func (td *TaskDefinition) Register(svc *ecs.ECS) (*ecs.TaskDefinition, error)

func (*TaskDefinition) Update

func (td *TaskDefinition) Update(svc *ecs.ECS) (*ecs.TaskDefinition, error)

type TaskPlugin

type TaskPlugin struct {
	AWSCredential  cred.Credential
	TaskDefinition TaskDefinition
}

func (*TaskPlugin) RegisterTask

func (p *TaskPlugin) RegisterTask() error

func (*TaskPlugin) UpdateTask

func (p *TaskPlugin) UpdateTask() error