deployer

package
v0.0.0-...-d614328 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package deployer implements various deployment mechanisms of services

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSECS

type AWSECS struct {
	// contains filtered or unexported fields
}

AWSECS implements a deployment mechanism using AWS Elastic container service as the orchestrator If uses Fargate as the launcher with Linux as the operating system

func NewAWSECS

func NewAWSECS(
	service string,
	taskDefinition string,
	container string,
	containerEnv map[string]string,
	logger *logrus.Entry,
) (*AWSECS, error)

NewAWSECS creates a new instance of the AWS ECS deployer that will deploy the given container in the specified cluster

func (*AWSECS) Count

func (dep *AWSECS) Count() (int, error)

Count returns the amount of services deployed

func (*AWSECS) Decrease

func (dep *AWSECS) Decrease() error

Decrease the number of services deployed

func (*AWSECS) Increase

func (dep *AWSECS) Increase() error

Increase the number of services deployed

func (*AWSECS) IsDeploying

func (dep *AWSECS) IsDeploying() bool

IsDeploying returns true while an increase or decrease of services have been requested but not completed yet

func (*AWSECS) RemoveAll

func (dep *AWSECS) RemoveAll() error

RemoveAll removes all the services from deployment

type Docker

type Docker struct {
	// contains filtered or unexported fields
}

Docker implements a deployment mechanism using Docker as the orchestrator

func NewDocker

func NewDocker(
	service string,
	container string,
	containerEnv map[string]string,
	logger *logrus.Entry,
) (*Docker, error)

NewDocker creates a new instance of the Docker deployer that will deploy the given container

func (*Docker) Count

func (dep *Docker) Count() (int, error)

Count returns the amount of services deployed

func (*Docker) Decrease

func (dep *Docker) Decrease() error

Decrease the number of services deployed

func (*Docker) Increase

func (dep *Docker) Increase() error

Increase the number of services deployed

func (*Docker) IsDeploying

func (dep *Docker) IsDeploying() bool

IsDeploying returns true while an increase or decrease of services have been requested but not completed yet

func (*Docker) RemoveAll

func (dep *Docker) RemoveAll() error

RemoveAll removes all the services from deployment

type Mock

type Mock struct {
	// contains filtered or unexported fields
}

Mock implements a mock deployment mechanism

func NewMock

func NewMock() *Mock

NewMock creates a new instance of the Mock deployer that will deploy the given container

func (*Mock) Count

func (dep *Mock) Count() (int, error)

Count returns the amount of services deployed

func (*Mock) Decrease

func (dep *Mock) Decrease() error

Decrease the number of services deployed

func (*Mock) Increase

func (dep *Mock) Increase() error

Increase the number of services deployed

func (*Mock) IsDeploying

func (dep *Mock) IsDeploying() bool

IsDeploying returns true while an increase or decrease of services have been requested but not completed yet

func (*Mock) RemoveAll

func (dep *Mock) RemoveAll() error

RemoveAll removes all the services from deployment

Jump to

Keyboard shortcuts

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