Documentation
¶
Index ¶
- func CreateServiceMap(data string) (map[string]Service, error)
- type Cluster
- type LoadBalancer
- type Service
- type ServiceController
- func (self *ServiceController) ApplyServicePlan(plan *ServiceUpdatePlan) error
- func (self *ServiceController) ApplyServicePlans(plans []*ServiceUpdatePlan)
- func (self *ServiceController) CreateServiceUpdatePlan(cluster Cluster) (*ServiceUpdatePlan, error)
- func (self *ServiceController) CreateServiceUpdatePlans() ([]*ServiceUpdatePlan, error)
- func (self *ServiceController) GetClusters() []Cluster
- func (self *ServiceController) RoundColorStatus(status string) *color.Escape
- func (self *ServiceController) WaitActiveService(cluster string, service string) error
- type ServiceUpdatePlan
- type TaskWatchStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LoadBalancer ¶
type Service ¶
type Service struct { Name string TaskDefinition string `yaml:"task_definition"` DesiredCount int64 `yaml:"desired_count"` KeepDesiredCount bool `yaml:"keep_desired_count"` LoadBalancers []LoadBalancer `yaml:"load_balancers"` Role string `yaml:"role"` }
func (*Service) FindLoadBalancerByContainer ¶
func (self *Service) FindLoadBalancerByContainer(conname string, port int64) *LoadBalancer
func (*Service) FindLoadBalancerByName ¶
func (self *Service) FindLoadBalancerByName(name string) *LoadBalancer
type ServiceController ¶
type ServiceController struct {
// contains filtered or unexported fields
}
func NewServiceController ¶
func NewServiceController(manager *aws.AwsManager, projectDir string, targetResources []string, params map[string]string) (*ServiceController, error)
func (*ServiceController) ApplyServicePlan ¶
func (self *ServiceController) ApplyServicePlan(plan *ServiceUpdatePlan) error
func (*ServiceController) ApplyServicePlans ¶
func (self *ServiceController) ApplyServicePlans(plans []*ServiceUpdatePlan)
func (*ServiceController) CreateServiceUpdatePlan ¶
func (self *ServiceController) CreateServiceUpdatePlan(cluster Cluster) (*ServiceUpdatePlan, error)
func (*ServiceController) CreateServiceUpdatePlans ¶
func (self *ServiceController) CreateServiceUpdatePlans() ([]*ServiceUpdatePlan, error)
func (*ServiceController) GetClusters ¶
func (self *ServiceController) GetClusters() []Cluster
func (*ServiceController) RoundColorStatus ¶
func (self *ServiceController) RoundColorStatus(status string) *color.Escape
func (*ServiceController) WaitActiveService ¶
func (self *ServiceController) WaitActiveService(cluster string, service string) error
type ServiceUpdatePlan ¶
type TaskWatchStatus ¶
type TaskWatchStatus int
const ( WatchContinue TaskWatchStatus = iota WatchFinish WatchTerminate )
Click to show internal directories.
Click to hide internal directories.