backend

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	CreateEnvironment(environmentName, instanceSize, operatingSystem, amiID string, minClusterCount int, userData []byte) (*models.Environment, error)
	UpdateEnvironment(environmentID string, minClusterCount int) (*models.Environment, error)
	DeleteEnvironment(environmentID string) error
	GetEnvironment(environmentID string) (*models.Environment, error)
	ListEnvironments() ([]*models.Environment, error)
	CreateEnvironmentLink(sourceEnvironmentID, destEnvironmentID string) error
	DeleteEnvironmentLink(sourceEnvironmentID, destEnvironmentID string) error

	ListDeploys() ([]*models.Deploy, error)
	GetDeploy(deployID string) (*models.Deploy, error)
	CreateDeploy(name string, body []byte) (*models.Deploy, error)
	DeleteDeploy(deployID string) error

	ListServices() ([]*models.Service, error)
	GetService(envID, serviceID string) (*models.Service, error)
	CreateService(serviceName, environmentID, deployID, loadBalancerID string) (*models.Service, error)
	DeleteService(environmentID, serviceID string) error
	ScaleService(environmentID, serviceID string, count int) (*models.Service, error)
	UpdateService(environmentID, serviceID, deployID string) (*models.Service, error)
	GetServiceLogs(environmentID, serviceID string, tail int) ([]*models.LogFile, error)

	CreateTask(envID, taskName, deployVersion string, overrides []models.ContainerOverride) (*models.Task, error)
	ListTasks() ([]*models.Task, error)
	GetTask(envID, taskID string) (*models.Task, error)
	DeleteTask(envID, taskID string) error
	GetTaskLogs(environmentID, taskID string, tail int) ([]*models.LogFile, error)

	ListLoadBalancers() ([]*models.LoadBalancer, error)
	GetLoadBalancer(id string) (*models.LoadBalancer, error)
	DeleteLoadBalancer(id string) error
	CreateLoadBalancer(loadBalancerName, environmentID string, isPublic bool, ports []models.Port, healthCheck models.HealthCheck) (*models.LoadBalancer, error)
	UpdateLoadBalancerPorts(loadBalancerID string, ports []models.Port) (*models.LoadBalancer, error)
	UpdateLoadBalancerHealthCheck(loadBalancerID string, healthCheck models.HealthCheck) (*models.LoadBalancer, error)
}

Directories

Path Synopsis
ecs
id

Jump to

Keyboard shortcuts

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