orchestration

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package orchestration brings together the other components of the API into a single orchestration interface for creating and deleting ecs services

Package orchestration brings together the other components of the API into a single orchestration interface for creating and deleting ecs services

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultCompatabilities sets the default task definition compatabilities to
	// Fargate.  By default, we won't support standard ECS.
	// https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TaskDefinition.html
	DefaultCompatabilities = []*string{
		aws.String("FARGATE"),
	}
	// DefaultNetworkMode sets the default networking more for task definitions created
	// by the api.  Currently, Fargate only supports vpc networking.
	// https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html
	DefaultNetworkMode = aws.String("awsvpc")
	// DefaultLaunchType sets the default launch type to Fargate
	DefaultLaunchType = aws.String("FARGATE")
	// DefaultPublic disables the setting of public IPs on ENIs by default
	DefaultPublic = aws.String("DISABLED")
	// DefaultSubnets sets a list of default subnets to attach ENIs
	DefaultSubnets = []*string{}
	// DefaultSecurityGroups sets a list of default sgs to attach to ENIs
	DefaultSecurityGroups = []*string{}
)

Functions

This section is empty.

Types

type Orchestrator

Orchestrator holds the service discovery client, iam client, ecs client, secretsmanager client, input, and output

func (*Orchestrator) CreateService

CreateService takes service orchestration input, builds up a service and returns the service orchestration output

func (*Orchestrator) DeleteService

DeleteService takes a service orchestrator, service name and a cluster to delete and removes the service and the service registry

func (*Orchestrator) UpdateService added in v1.2.0

func (o *Orchestrator) UpdateService(ctx context.Context, cluster, service string, input *ServiceOrchestrationUpdateInput) (*ServiceOrchestrationUpdateOutput, error)

UpdateService updates a service and related services

type ServiceDeleteInput

type ServiceDeleteInput struct {
	Cluster   *string
	Service   *string
	Recursive bool
}

ServiceDeleteInput encapsulates a request to delete a service with optional recursion

type ServiceOrchestrationUpdateInput added in v1.2.0

type ServiceOrchestrationUpdateInput struct {
	// https://docs.aws.amazon.com/sdk-for-go/api/service/ecs/#UpdateServiceInput
	// Service *ecs.UpdateServiceInput
	Tags               []*ecs.Tag
	ForceNewDeployment bool
}

ServiceOrchestrationUpdateInput is in the input for service orchestration updates. The following are supported:

  service: desired count, deployment configuration, network configuration and task definition can be updated
	 tags: will be applied to all resources

type ServiceOrchestrationUpdateOutput added in v1.2.0

type ServiceOrchestrationUpdateOutput struct {
	Service *ecs.Service
}

ServiceOrchestrationUpdateOutput is the output for service orchestration updates

Jump to

Keyboard shortcuts

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