action

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ECSDeploy

func ECSDeploy(clusterName string, serviceName string, client ECSDeployClient, timeout time.Duration, config ECSDeployTaskConfig, dryRun bool, noWait bool) error

ECSDeploy deploy an ecs service

Types

type ECSDeployClient

type ECSDeployClient interface {
	GetService(clusterName string, serviceName string) (*ecssdk.Service, error)
	LooksGood(service *ecssdk.Service) (bool, error)
	CopyTaskDefinition(service *ecssdk.Service) (*ecssdk.RegisterTaskDefinitionInput, *ecssdk.TaskDefinition, error)
	WaitUntilGood(service *ecssdk.Service, timeout *time.Duration) error
	RegisterTaskDefinition(input *ecssdk.RegisterTaskDefinitionInput) (*ecssdk.TaskDefinition, error)
	UpdateTaskDefinition(service *ecssdk.Service, task *ecssdk.TaskDefinition) (*ecssdk.Service, error)
}

ECSDeployClient defines a simple interface for our required ecs stuffs

type ECSDeployTaskConfig

type ECSDeployTaskConfig interface {
	ApplyTo(input *ecssdk.RegisterTaskDefinitionInput) (*ecssdk.RegisterTaskDefinitionInput, *ecs.TaskConfigDiff)
}

ECSDeployTaskConfig defines a simple interface of how we want a config thing to do

Directories

Path Synopsis
Package mock_action is a generated GoMock package.
Package mock_action is a generated GoMock package.

Jump to

Keyboard shortcuts

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