Documentation
¶
Index ¶
- type CallBackFuncsWithAppDef
- type CallBackFuncsWithAppID
- type Group
- type Groups
- func (mg *Groups) Apply(force bool) error
- func (mg *Groups) AsRaw() *Group
- func (mg *Groups) Create(group *Group) error
- func (mg *Groups) Destroy() error
- func (mg *Groups) Dump(fileName string) (err error)
- func (mg *Groups) Get(id string) *Groups
- func (mg *Groups) Load(fileName string) *Groups
- func (mg *Groups) Restart(force bool) error
- func (mg *Groups) Scale(instances int, force bool) error
- func (mg *Groups) Start(instances int, force bool) error
- func (mg *Groups) Stop(force bool) error
- func (mg *Groups) Suspend(force bool) error
- func (mg *Groups) Update(group *Group) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallBackFuncsWithAppDef ¶
type CallBackFuncsWithAppDef func(app application.AppDefinition) error
CallBackFuncsWithAppDef function type
type CallBackFuncsWithAppID ¶
CallBackFuncsWithAppID function type
type Group ¶
type Group struct {
ID string `json:"id"`
Apps []application.AppDefinition `json:"apps"`
Groups []Group `json:"groups"`
Pods []interface{} `json:"pods"`
Dependencies []string `json:"dependencies,omitempty"`
Version time.Time `json:"version,omitempty"`
VersionInfo application.VersionInfo `json:"versionInfo,omitempty"`
Executor string `json:"executor,omitempty"`
EnforceRole bool `json:"enforceRole,omitempty"`
}
Group encapsulates the data definitions of a Marathon Group
type Groups ¶
type Groups struct {
// contains filtered or unexported fields
}
Groups is Marathon Groups implementation
func (*Groups) Restart ¶
Restart use an endpoint to trigger restart for all filteredApps in a Marathon group
Click to show internal directories.
Click to hide internal directories.