stdmagesvc

package
v0.0.183 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build added in v0.0.160

func Build() error

Build will build the service container(s).

func Deploy

func Deploy(deploymentIdent string) error

Deploy build and pushes a new docker image, then updates the service.

func DeployAll added in v0.0.160

func DeployAll() error

DeployAll build, pushes and deploys new docker containers for all deployments.

func DockerLogin

func DockerLogin() error

DockerLogin logs docker into ther registry.

func Init

func Init(
	awsProfile string,
	awsRegion string,
	registry string,
	stackName string,
	exportPrefix string,
	serviceIdent 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 Push added in v0.0.160

func Push(deploymentIdent string) error

Push push the last build container to the registry.

func UpdateLambdas added in v0.0.167

func UpdateLambdas(deploymentIdent string) error

UpdateLambdas will update any lambdas associated with the service.

func UpdateService added in v0.0.158

func UpdateService(deploymentIdent string) error

UpdateService the service by forcing a new deployment and waiting for it to be stable.

Types

type Deployment

type Deployment struct {
	Services map[string]*Service
}

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.

type Lambda added in v0.0.167

type Lambda struct {
	FunctionName string
}

type Service

type Service struct {
	RepositoryName string
	MainImageTag   string
	ServiceName    string
	Lambdas        []*Lambda
}

Service describes service information.

Jump to

Keyboard shortcuts

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