Versions in this module Expand all Collapse all v1 v1.4.8 Mar 7, 2021 v1.4.7 Feb 24, 2021 Changes in this version type Application + func (ma *Application) Config(version string) *Application + func (ma *Application) LastVersion() string + func (ma *Application) Versions() []string v1.4.6 Jan 12, 2021 Changes in this version + type App struct + App AppDefinition + type AppDefinition struct + AcceptedResourceRoles []string + BackoffFactor float64 + BackoffSeconds int + Constraints []TaskConstraints + Container marathon.Container + Cpus float64 + Disk float64 + Env map[string]string + Executor string + Fetch []Fetch + Gpus int + HealthChecks []marathon.Healthcheck + ID string + Instances int + KillSelection string + Labels map[string]string + MaxLaunchDelaySeconds int + Mem float64 + Networks []Network + RequirePorts bool + Role string + UnreachableStrategy UnreachableStrategy + UpgradeStrategy UpgradeStrategy + type AppVersions struct + Versions []time.Time + type Application struct + func New(client *marathon.Client) *Application + func (ma *Application) AddParameter(key, value string, force bool) error + func (ma *Application) Apply(force bool) error + func (ma *Application) AsRaw() AppDefinition + func (ma *Application) Container() *marathon.Container + func (ma *Application) Cpus() float64 + func (ma *Application) Create(app AppDefinition) *Application + func (ma *Application) DelEnv(name string, force bool) error + func (ma *Application) DelParameter(key string, force bool) error + func (ma *Application) Destroy() error + func (ma *Application) Dump(fileName string) (err error) + func (ma *Application) Env() map[string]string + func (ma *Application) Get(id string) *Application + func (ma *Application) GetTag() (string, error) + func (ma *Application) Instances() int + func (ma *Application) Load(fileName string) *Application + func (ma *Application) Memory() float64 + func (ma *Application) Parameters() (map[string]string, error) + func (ma *Application) Restart(force bool) error + func (ma *Application) Role() string + func (ma *Application) Scale(instances int, force bool) error + func (ma *Application) Set(app AppDefinition) *Application + func (ma *Application) SetContainer(to *marathon.Container, force bool) error + func (ma *Application) SetCpus(to float64, force bool) error + func (ma *Application) SetEnv(name, value string, force bool) error + func (ma *Application) SetMemory(to float64, force bool) error + func (ma *Application) SetRole(to string, force bool) error + func (ma *Application) SetTag(tag string, force bool) error + func (ma *Application) Start(instances int, force bool) error + func (ma *Application) Stop(force bool) error + func (ma *Application) Suspend(force bool) error + func (ma *Application) Update(app AppDefinition) error + type Fetch struct + Cache bool + Executable bool + Extract bool + URI string + type Network struct + Mode string + type TaskConstraints []string + type UnreachableStrategy struct + ExpungeAfterSeconds int + InactiveAfterSeconds int + type UpgradeStrategy struct + MaximumOverCapacity float64 + MinimumHealthCapacity float64 + type VersionInfo struct + LastConfigChangeAt time.Time + LastScalingAt time.Time