Documentation
¶
Index ¶
- func Build() error
- func Deploy(deploymentIdent, serviceIdent string) error
- func DeployAll(serviceIdent string) error
- func DeployAllLambdas(deploymentIdent, serviceIdent string) error
- func DeployService(deploymentIdent, serviceIdent string) error
- func DockerLogin() error
- func Exec(deploymentIdent, serviceIdent string) error
- func ExecCommand(deploymentIdent, serviceIdent, command string) error
- func ExecCommandIn(deploymentIdent, serviceIdent, command, containerName string) error
- func ExecCommandInTask(deploymentIdent, serviceIdent, command, containerName string, taskIdx int) error
- func Init(awsProfile string, awsRegion string, registry string, stackName string, ...)
- func Push(deploymentIdent, serviceIdent string) error
- func UpdateLambdas(deploymentIdent, serviceIdent string) error
- func UpdateService(deploymentIdent, serviceIdent string) error
- type Deployment
- type Deployments
- type Lambda
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeployAll ¶ added in v0.0.160
DeployAll build, pushes and deploys new docker containers for all deployments.
func DeployAllLambdas ¶ added in v0.0.194
DeployAllLambdas build and pushes a new docker image, then updates all the lambdas.
func DeployService ¶ added in v0.0.194
DeployService build and pushes a new docker image, then updates just the lambdas.
func Exec ¶ added in v0.0.202
Exec executes 'sh' in the first task of a given deployment's service's toolbox container.
func ExecCommand ¶ added in v0.0.204
ExecCommand executes a command in the first task of a given deployment's service's toolbox container.
func ExecCommandIn ¶ added in v0.0.204
ExecCommandIn executes a command in the first task of a given deployment's service.
func ExecCommandInTask ¶ added in v0.0.204
func ExecCommandInTask(deploymentIdent, serviceIdent, command, containerName string, taskIdx int) error
ExecCommandInTask executes a command in the task of a given deployment.
func Init ¶
func Init( awsProfile string, awsRegion string, registry string, stackName string, exportPrefix string, composeProbjectName string, dockerImagePrefix string, ecsClusterName string, deploymentIdents []string, _ ...[]string, )
Init inits the mage targets. The weird signature is to make Mage ignore this when importing.
func UpdateLambdas ¶ added in v0.0.167
UpdateLambdas will update any lambdas associated with the service.
func UpdateService ¶ added in v0.0.158
UpdateService the service by forcing a new deployment and waiting for it to be stable.
Types ¶
type Deployment ¶
Deployment describes deployment information.
type Deployments ¶
type Deployments map[string]*Deployment
Deployments hold the deployments we found.
func ReadDeploymentInfo ¶
func ReadDeploymentInfo() (Deployments, error)
ReadDeploymentInfo will read the exports of the stack and structure it in service information.