Documentation
¶
Index ¶
- func Register(name string, action Action)
- func Run(manifestData []byte, ch chan<- *StepInfo, cfg Config, only []string) error
- type Action
- type AddAppAction
- type AddProviderAction
- type AddRouteAction
- type AddRouteState
- type AppState
- type ClusterMonitorAction
- type Config
- type DeployAppAction
- type GenRandomAction
- type GenTLSCertAction
- type LogAction
- type LogMessage
- type Manifest
- type MonitorMetadata
- type Provider
- type RandomData
- type RequireEnv
- type ResourceCheckAction
- type RunAppAction
- type RunAppState
- type ScaleAppAction
- type State
- type StatusCheckAction
- type StatusData
- type StatusDetail
- type StatusResponse
- type Step
- type StepInfo
- type StepMeta
- type WaitAction
- type WaitHostsAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddAppAction ¶
type AddAppAction struct {
ID string `json:"id"`
FromStep string `json:"from_step"`
App *ct.App `json:"app"`
}
func (*AddAppAction) Run ¶
func (a *AddAppAction) Run(s *State) error
type AddProviderAction ¶
type AddProviderAction struct {
ID string `json:"id"`
Name string `json:"name"`
URL string `json:"url"`
}
AddProvider registers a provider on the controller.
func (*AddProviderAction) Run ¶
func (a *AddProviderAction) Run(s *State) error
type AddRouteAction ¶
type AddRouteAction struct {
ID string `json:"id"`
AppStep string `json:"app_step"`
CertStep string `json:"cert_step"`
*router.Route
}
func (*AddRouteAction) Run ¶
func (a *AddRouteAction) Run(s *State) error
type AddRouteState ¶
type ClusterMonitorAction ¶
type ClusterMonitorAction struct {
Enabled bool `json:"enabled"`
}
func (*ClusterMonitorAction) Run ¶
func (c *ClusterMonitorAction) Run(s *State) error
type DeployAppAction ¶
type DeployAppAction struct {
ID string `json:"id"`
*ct.ExpandedFormation
App *ct.App `json:"app"`
Resources []*ct.Provider `json:"resources"`
}
func (*DeployAppAction) Run ¶
func (a *DeployAppAction) Run(s *State) error
type GenRandomAction ¶
type GenRandomAction struct {
ID string `json:"id"`
Length int `json:"length"`
Data string `json:"data"`
Encoding string `json:"encoding"`
ControllerKey bool `json:"controller_key"`
}
func (*GenRandomAction) Run ¶
func (a *GenRandomAction) Run(s *State) error
type GenTLSCertAction ¶
type GenTLSCertAction struct {
ID string `json:"id"`
Hosts []string `json:"hosts"`
CACert string `json:"ca_cert"`
Cert string `json:"cert"`
PrivateKey string `json:"key"`
}
func (*GenTLSCertAction) Run ¶
func (a *GenTLSCertAction) Run(s *State) (err error)
type LogMessage ¶
type LogMessage struct {
Msg string `json:"message"`
}
func (*LogMessage) String ¶
func (l *LogMessage) String() string
type MonitorMetadata ¶
type RandomData ¶
type RandomData struct {
Data string `json:"data"`
}
func (*RandomData) String ¶
func (d *RandomData) String() string
type RequireEnv ¶
type RequireEnv struct {
Vars []string `json:"vars"`
}
func (*RequireEnv) Run ¶
func (a *RequireEnv) Run(s *State) error
type ResourceCheckAction ¶
type ResourceCheckAction struct {
Ports []host.Port
}
func (*ResourceCheckAction) Run ¶
func (a *ResourceCheckAction) Run(s *State) error
type RunAppAction ¶
type RunAppAction struct {
*ct.ExpandedFormation
ID string `json:"id"`
AppStep string `json:"app_step"`
Resources []*ct.Provider `json:"resources,omitempty"`
}
func (*RunAppAction) Run ¶
func (a *RunAppAction) Run(s *State) error
type RunAppState ¶
type ScaleAppAction ¶
func (*ScaleAppAction) Run ¶
func (a *ScaleAppAction) Run(s *State) error
type State ¶
type State struct {
StepData map[string]interface{}
Providers map[string]*ct.Provider
Singleton bool
ClusterURL string
MinHosts int
Hosts []*cluster.Host
HostTimeout time.Duration
// contains filtered or unexported fields
}
func (*State) ControllerClient ¶
func (*State) DiscoverdClient ¶
func (*State) SetControllerKey ¶
func (*State) ShuffledHosts ¶
func (*State) SortedHostIPs ¶
type StatusCheckAction ¶
type StatusCheckAction struct {
ID string `json:"id"`
URL string `json:"url"`
Output string `json:"output"`
Timeout int `json:"timeout"` // in seconds
}
func (*StatusCheckAction) Run ¶
func (a *StatusCheckAction) Run(s *State) error
type StatusData ¶
type StatusData struct {
Status string `json:"status"`
Detail map[string]StatusDetail `json:"detail"`
}
type StatusDetail ¶
type StatusDetail struct {
Status string `json:"status"`
}
type StatusResponse ¶
type StatusResponse struct {
Data StatusData `json:"data"`
}
type WaitAction ¶
type WaitAction struct {
URL string `json:"url"`
Host string `json:"host"`
Status int `json:"status"`
}
func (*WaitAction) Run ¶
func (a *WaitAction) Run(s *State) error
type WaitHostsAction ¶
type WaitHostsAction struct{}
func (*WaitHostsAction) Run ¶
func (a *WaitHostsAction) Run(s *State) error
Source Files
¶
- add_app_action.go
- add_provider_action.go
- add_route_action.go
- bootstrap.go
- cluster_monitor_action.go
- deploy_app_action.go
- gen_random_action.go
- gen_tls_cert_action.go
- log_action.go
- require_env_action.go
- resource_check_action.go
- run_app_action.go
- scale_app_action.go
- status_check_action.go
- wait_action.go
- wait_hosts_action.go
Click to show internal directories.
Click to hide internal directories.