Documentation ¶
Index ¶
- Constants
- Variables
- func NormalizeAppID(appID string) string
- type Client
- func (c *Client) AddApp(ctx api.Context, appLocation string) (*goMarathon.Application, error)
- func (c *Client) ApplicationByVersion(appID string, version string) (*goMarathon.Application, error)
- func (c *Client) ApplicationVersions(appID string) (goMarathon.ApplicationVersions, error)
- func (c *Client) Applications() ([]goMarathon.Application, error)
- func (c *Client) Deployments() ([]goMarathon.Deployment, error)
- func (c *Client) GroupsWithoutRootSlash() (map[string]bool, error)
- func (c *Client) Info() (map[string]interface{}, error)
- func (c *Client) KillTasks(appID string, host string) (map[string]interface{}, error)
- func (c *Client) Queue() (goMarathon.Queue, error)
- func (c *Client) QueueWithLastUnusedOffers() (goMarathon.Queue, error)
- func (c *Client) RawQueue() (*RawQueue, error)
- type ErrAppAlreadyExists
- type Groups
- type RawQueue
Constants ¶
View Source
const DeclinedScarceResources = "DeclinedScarceResources"
View Source
const InsufficientCpus = "InsufficientCpus"
View Source
const InsufficientDisk = "InsufficientDisk"
View Source
const InsufficientMemory = "InsufficientMemory"
View Source
const InsufficientPorts = "InsufficientPorts"
View Source
const UnfulfilledConstraint = "UnfulfilledConstraint"
View Source
const UnfulfilledRole = "UnfulfilledRole"
Variables ¶
View Source
var ErrCannotReadAppDefinition = errors.New("cannot read app definition")
Functions ¶
func NormalizeAppID ¶
NormalizeAppID will return a string with the correct Application ID form based on the given string
Types ¶
type Client ¶
type Client struct { API goMarathon.Marathon // contains filtered or unexported fields }
Client to interact with the Marathon API.
func (*Client) AddApp ¶
func (c *Client) AddApp(ctx api.Context, appLocation string) (*goMarathon.Application, error)
AddApp creates a deployment from the app definition referenced in appFile which can be a local file name or an HTTP URL. If appFile is empty, the definition is read from ctx.Input().
func (*Client) ApplicationByVersion ¶
func (c *Client) ApplicationByVersion(appID string, version string) (*goMarathon.Application, error)
func (*Client) ApplicationVersions ¶
func (c *Client) ApplicationVersions(appID string) (goMarathon.ApplicationVersions, error)
func (*Client) Applications ¶
func (c *Client) Applications() ([]goMarathon.Application, error)
func (*Client) Deployments ¶
func (c *Client) Deployments() ([]goMarathon.Deployment, error)
func (*Client) GroupsWithoutRootSlash ¶
GroupsWithoutRootSlash returns the Marathon groups' names as a map without the first "/". This makes it easy to match Marathon groups with Mesos roles that cannot start with "/".
func (*Client) QueueWithLastUnusedOffers ¶
func (c *Client) QueueWithLastUnusedOffers() (goMarathon.Queue, error)
type ErrAppAlreadyExists ¶
type ErrAppAlreadyExists struct {
// contains filtered or unexported fields
}
func (ErrAppAlreadyExists) Error ¶
func (e ErrAppAlreadyExists) Error() string
Click to show internal directories.
Click to hide internal directories.