service

package
v0.0.0-...-c83230f Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: MIT Imports: 19 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlueGreenService

type BlueGreenService interface {
	GetBlueGreenMap() map[string]*types.BlueGreen
	CreateBlueGreenPlans(bgmap map[string]*types.BlueGreen, cplans []*types.ServiceUpdatePlan) ([]*types.BlueGreenPlan, error)
	CreateClusterService() (ClusterService, error)
	ApplyBlueGreenDeploys(clusterService ClusterService, plans []*types.BlueGreenPlan, nodeploy bool) error
}

func NewBlueGreenService

func NewBlueGreenService(projectDir string, blueGreenName string, params map[string]string) (BlueGreenService, error)

type ClusterService

type ClusterService interface {
	SearchClusters() ([]types.Cluster, error)
	CreateServiceUpdatePlans() ([]*types.ServiceUpdatePlan, error)
	ApplyServicePlans(plans []*types.ServiceUpdatePlan) error
	ApplyServicePlan(plan *types.ServiceUpdatePlan) error
}

func NewClusterService

func NewClusterService(projectDir string, clusters []string, targetService string, params map[string]string) (ClusterService, error)

type ConcreteBlueGreenService

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

func (ConcreteBlueGreenService) ApplyBlueGreenDeploys

func (s ConcreteBlueGreenService) ApplyBlueGreenDeploys(clusterService ClusterService, plans []*types.BlueGreenPlan, nodeploy bool) error

func (ConcreteBlueGreenService) CreateBlueGreenPlans

func (s ConcreteBlueGreenService) CreateBlueGreenPlans(bgmap map[string]*types.BlueGreen, cplans []*types.ServiceUpdatePlan) ([]*types.BlueGreenPlan, error)

func (ConcreteBlueGreenService) CreateClusterService

func (s ConcreteBlueGreenService) CreateClusterService() (ClusterService, error)

func (ConcreteBlueGreenService) GetBlueGreenMap

func (s ConcreteBlueGreenService) GetBlueGreenMap() map[string]*types.BlueGreen

type ConcreteClusterService

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

func (ConcreteClusterService) ApplyServicePlan

func (s ConcreteClusterService) ApplyServicePlan(plan *types.ServiceUpdatePlan) error

func (ConcreteClusterService) ApplyServicePlans

func (s ConcreteClusterService) ApplyServicePlans(plans []*types.ServiceUpdatePlan) error

func (ConcreteClusterService) CreateServiceUpdatePlans

func (s ConcreteClusterService) CreateServiceUpdatePlans() ([]*types.ServiceUpdatePlan, error)

func (ConcreteClusterService) SearchClusters

func (s ConcreteClusterService) SearchClusters() ([]types.Cluster, error)

type ConcreteTaskService

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

func (ConcreteTaskService) ApplyTaskDefinitionPlan

func (s ConcreteTaskService) ApplyTaskDefinitionPlan(task *types.TaskUpdatePlan) (*awsecs.TaskDefinition, error)

func (ConcreteTaskService) ApplyTaskDefinitionPlans

func (s ConcreteTaskService) ApplyTaskDefinitionPlans(plans []*types.TaskUpdatePlan) ([]*awsecs.TaskDefinition, error)

func (ConcreteTaskService) CreateTaskPlans

func (s ConcreteTaskService) CreateTaskPlans() []*types.TaskUpdatePlan

func (ConcreteTaskService) CreateTaskUpdatePlan

func (s ConcreteTaskService) CreateTaskUpdatePlan(task *types.TaskDefinition) *types.TaskUpdatePlan

func (ConcreteTaskService) CreateTaskUpdatePlans

func (s ConcreteTaskService) CreateTaskUpdatePlans(tasks map[string]*types.TaskDefinition) []*types.TaskUpdatePlan

func (ConcreteTaskService) GetCurrentRevision

func (s ConcreteTaskService) GetCurrentRevision(td string) (int64, error)

func (ConcreteTaskService) GetTaskDefinitions

func (s ConcreteTaskService) GetTaskDefinitions() map[string]*types.TaskDefinition

func (ConcreteTaskService) SearchTaskDefinitions

func (s ConcreteTaskService) SearchTaskDefinitions() (map[string]*types.TaskDefinition, error)

type ELBSwitcher

type ELBSwitcher interface {
	Apply(clusterService ClusterService, bgplan *types.BlueGreenPlan, nodeploy bool) error
}

func NewELBSwitcher

func NewELBSwitcher(awscli client.AWSClient, bgplan *types.BlueGreenPlan) ELBSwitcher

type ELBV1Switcher

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

func (ELBV1Switcher) Apply

func (s ELBV1Switcher) Apply(clusterService ClusterService, bgplan *types.BlueGreenPlan, nodeploy bool) error

type ELBV2Switcher

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

func (ELBV2Switcher) Apply

func (s ELBV2Switcher) Apply(clusterService ClusterService, bgplan *types.BlueGreenPlan, nodeploy bool) error

type TaskService

type TaskService interface {
	SearchTaskDefinitions() (map[string]*types.TaskDefinition, error)
	CreateTaskPlans() []*types.TaskUpdatePlan
	CreateTaskUpdatePlans(tasks map[string]*types.TaskDefinition) []*types.TaskUpdatePlan
	CreateTaskUpdatePlan(task *types.TaskDefinition) *types.TaskUpdatePlan
	GetTaskDefinitions() map[string]*types.TaskDefinition
	ApplyTaskDefinitionPlans(plans []*types.TaskUpdatePlan) ([]*awsecs.TaskDefinition, error)
	ApplyTaskDefinitionPlan(task *types.TaskUpdatePlan) (*awsecs.TaskDefinition, error)
	GetCurrentRevision(td string) (int64, error)
}

func NewTaskService

func NewTaskService(projectDir string, target string, params map[string]string) (TaskService, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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