Documentation ¶
Index ¶
- type Marathon
- func (_m *Marathon) AbdicateLeader() (string, error)
- func (_m *Marathon) AddEventsListener(channel marathon.EventsChannel, filter int) error
- func (_m *Marathon) AllTasks(opts *marathon.AllTasksOpts) (*marathon.Tasks, error)
- func (_m *Marathon) Application(name string) (*marathon.Application, error)
- func (_m *Marathon) ApplicationByVersion(name string, version string) (*marathon.Application, error)
- func (_m *Marathon) ApplicationDeployments(name string) ([]*marathon.DeploymentID, error)
- func (_m *Marathon) ApplicationOK(name string) (bool, error)
- func (_m *Marathon) ApplicationVersions(name string) (*marathon.ApplicationVersions, error)
- func (_m *Marathon) Applications(_a0 url.Values) (*marathon.Applications, error)
- func (_m *Marathon) CreateApplication(application *marathon.Application) (*marathon.Application, error)
- func (_m *Marathon) CreateGroup(group *marathon.Group) error
- func (_m *Marathon) DeleteApplication(name string) (*marathon.DeploymentID, error)
- func (_m *Marathon) DeleteDeployment(id string, force bool) (*marathon.DeploymentID, error)
- func (_m *Marathon) DeleteGroup(name string) (*marathon.DeploymentID, error)
- func (_m *Marathon) Deployments() ([]*marathon.Deployment, error)
- func (_m *Marathon) GetMarathonURL() string
- func (_m *Marathon) Group(name string) (*marathon.Group, error)
- func (_m *Marathon) Groups() (*marathon.Groups, error)
- func (_m *Marathon) HasApplicationVersion(name string, version string) (bool, error)
- func (_m *Marathon) HasDeployment(id string) (bool, error)
- func (_m *Marathon) HasGroup(name string) (bool, error)
- func (_m *Marathon) Info() (*marathon.Info, error)
- func (_m *Marathon) KillApplicationTasks(applicationID string, opts *marathon.KillApplicationTasksOpts) (*marathon.Tasks, error)
- func (_m *Marathon) KillTask(taskID string, opts *marathon.KillTaskOpts) (*marathon.Task, error)
- func (_m *Marathon) KillTasks(taskIDs []string, opts *marathon.KillTaskOpts) error
- func (_m *Marathon) Leader() (string, error)
- func (_m *Marathon) ListApplications(_a0 url.Values) ([]string, error)
- func (_m *Marathon) Ping() (bool, error)
- func (_m *Marathon) RemoveEventsListener(channel marathon.EventsChannel)
- func (_m *Marathon) RestartApplication(name string, force bool) (*marathon.DeploymentID, error)
- func (_m *Marathon) ScaleApplicationInstances(name string, instances int, force bool) (*marathon.DeploymentID, error)
- func (_m *Marathon) SetApplicationVersion(name string, version *marathon.ApplicationVersion) (*marathon.DeploymentID, error)
- func (_m *Marathon) Subscriptions() (*marathon.Subscriptions, error)
- func (_m *Marathon) TaskEndpoints(name string, port int, healthCheck bool) ([]string, error)
- func (_m *Marathon) Tasks(application string) (*marathon.Tasks, error)
- func (_m *Marathon) Unsubscribe(_a0 string) error
- func (_m *Marathon) UpdateApplication(application *marathon.Application, force bool) (*marathon.DeploymentID, error)
- func (_m *Marathon) UpdateGroup(id string, group *marathon.Group) (*marathon.DeploymentID, error)
- func (_m *Marathon) WaitOnApplication(name string, timeout time.Duration) error
- func (_m *Marathon) WaitOnDeployment(id string, timeout time.Duration) error
- func (_m *Marathon) WaitOnGroup(name string, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Marathon ¶
Marathon is a mock of marathon.Marathon
func (*Marathon) AbdicateLeader ¶
AbdicateLeader provides a mock function with given fields:
func (*Marathon) AddEventsListener ¶
AddEventsListener provides a mock function with given fields: channel, filter
func (*Marathon) Application ¶
Application provides a mock function with given fields: name
func (*Marathon) ApplicationByVersion ¶
func (_m *Marathon) ApplicationByVersion(name string, version string) (*marathon.Application, error)
ApplicationByVersion provides a mock function with given fields: name, version
func (*Marathon) ApplicationDeployments ¶
ApplicationDeployments provides a mock function with given fields: name
func (*Marathon) ApplicationOK ¶
ApplicationOK provides a mock function with given fields: name
func (*Marathon) ApplicationVersions ¶
ApplicationVersions provides a mock function with given fields: name
func (*Marathon) Applications ¶
Applications provides a mock function with given fields: _a0
func (*Marathon) CreateApplication ¶
func (_m *Marathon) CreateApplication(application *marathon.Application) (*marathon.Application, error)
CreateApplication provides a mock function with given fields: application
func (*Marathon) CreateGroup ¶
CreateGroup provides a mock function with given fields: group
func (*Marathon) DeleteApplication ¶
DeleteApplication provides a mock function with given fields: name
func (*Marathon) DeleteDeployment ¶
DeleteDeployment provides a mock function with given fields: id, force
func (*Marathon) DeleteGroup ¶
DeleteGroup provides a mock function with given fields: name
func (*Marathon) Deployments ¶
Deployments provides a mock function with given fields:
func (*Marathon) GetMarathonURL ¶
GetMarathonURL provides a mock function with given fields:
func (*Marathon) HasApplicationVersion ¶
HasApplicationVersion provides a mock function with given fields: name, version
func (*Marathon) HasDeployment ¶
HasDeployment provides a mock function with given fields: id
func (*Marathon) KillApplicationTasks ¶
func (_m *Marathon) KillApplicationTasks(applicationID string, opts *marathon.KillApplicationTasksOpts) (*marathon.Tasks, error)
KillApplicationTasks provides a mock function with given fields: applicationID, opts
func (*Marathon) ListApplications ¶
ListApplications provides a mock function with given fields: _a0
func (*Marathon) RemoveEventsListener ¶
func (_m *Marathon) RemoveEventsListener(channel marathon.EventsChannel)
RemoveEventsListener provides a mock function with given fields: channel
func (*Marathon) RestartApplication ¶
RestartApplication provides a mock function with given fields: name, force
func (*Marathon) ScaleApplicationInstances ¶
func (_m *Marathon) ScaleApplicationInstances(name string, instances int, force bool) (*marathon.DeploymentID, error)
ScaleApplicationInstances provides a mock function with given fields: name, instances, force
func (*Marathon) SetApplicationVersion ¶
func (_m *Marathon) SetApplicationVersion(name string, version *marathon.ApplicationVersion) (*marathon.DeploymentID, error)
SetApplicationVersion provides a mock function with given fields: name, version
func (*Marathon) Subscriptions ¶
Subscriptions provides a mock function with given fields:
func (*Marathon) TaskEndpoints ¶
TaskEndpoints provides a mock function with given fields: name, port, healthCheck
func (*Marathon) Unsubscribe ¶
Unsubscribe provides a mock function with given fields: _a0
func (*Marathon) UpdateApplication ¶
func (_m *Marathon) UpdateApplication(application *marathon.Application, force bool) (*marathon.DeploymentID, error)
UpdateApplication provides a mock function with given fields: application, force
func (*Marathon) UpdateGroup ¶
UpdateGroup provides a mock function with given fields: id, group
func (*Marathon) WaitOnApplication ¶
WaitOnApplication provides a mock function with given fields: name, timeout
func (*Marathon) WaitOnDeployment ¶
WaitOnDeployment provides a mock function with given fields: id, timeout