Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComposeCmdScaler ¶
type ComposeCmdScaler struct { ServiceName string `json:"service"` ConfigFile string `json:"config"` ProjectName string `json:"project"` RunningContainers uint64 `json:"running"` UpperCountLimit uint64 `json:"upperCountLimit"` LowerCountLimit uint64 `json:"lowerCountLimit"` // contains filtered or unexported fields }
ComposeCmdScaler executer docker-compose CLI
func NewComposeCmdScaler ¶
func NewComposeCmdScaler(name, project, configFilePath string) (*ComposeCmdScaler, error)
NewComposeCmdScaler build a scaler
func (*ComposeCmdScaler) Down ¶
func (s *ComposeCmdScaler) Down() (err error)
Down using doker compose scale
type ServiceScaler ¶
type ServiceScaler struct { ServiceID string `json:"service"` EngineSocket string `json:"socket"` UpperCountLimit uint64 `json:"upperCountLimit"` LowerCountLimit uint64 `json:"lowerCountLimit"` // contains filtered or unexported fields }
ServiceScaler work with docker 1.12 swarm services (API 1.24)
Click to show internal directories.
Click to hide internal directories.