mocks

package
v1.0.0-beta.784 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marathon

type Marathon struct {
	mock.Mock
}

Marathon is a mock of marathon.Marathon

func (*Marathon) AbdicateLeader

func (_m *Marathon) AbdicateLeader() (string, error)

AbdicateLeader provides a mock function with given fields:

func (*Marathon) AddEventsListener

func (_m *Marathon) AddEventsListener(channel marathon.EventsChannel, filter int) error

AddEventsListener provides a mock function with given fields: channel, filter

func (*Marathon) AllTasks

func (_m *Marathon) AllTasks(opts *marathon.AllTasksOpts) (*marathon.Tasks, error)

AllTasks provides a mock function with given fields: opts

func (*Marathon) Application

func (_m *Marathon) Application(name string) (*marathon.Application, error)

Application provides a mock function with given fields: name

func (*Marathon) ApplicationDeployments

func (_m *Marathon) ApplicationDeployments(name string) ([]*marathon.DeploymentID, error)

ApplicationDeployments provides a mock function with given fields: name

func (*Marathon) ApplicationOK

func (_m *Marathon) ApplicationOK(name string) (bool, error)

ApplicationOK provides a mock function with given fields: name

func (*Marathon) ApplicationVersions

func (_m *Marathon) ApplicationVersions(name string) (*marathon.ApplicationVersions, error)

ApplicationVersions provides a mock function with given fields: name

func (*Marathon) Applications

func (_m *Marathon) Applications(_a0 url.Values) (*marathon.Applications, error)

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

func (_m *Marathon) CreateGroup(group *marathon.Group) error

CreateGroup provides a mock function with given fields: group

func (*Marathon) DeleteApplication

func (_m *Marathon) DeleteApplication(name string) (*marathon.DeploymentID, error)

DeleteApplication provides a mock function with given fields: name

func (*Marathon) DeleteDeployment

func (_m *Marathon) DeleteDeployment(id string, force bool) (*marathon.DeploymentID, error)

DeleteDeployment provides a mock function with given fields: id, force

func (*Marathon) DeleteGroup

func (_m *Marathon) DeleteGroup(name string) (*marathon.DeploymentID, error)

DeleteGroup provides a mock function with given fields: name

func (*Marathon) Deployments

func (_m *Marathon) Deployments() ([]*marathon.Deployment, error)

Deployments provides a mock function with given fields:

func (*Marathon) GetMarathonURL

func (_m *Marathon) GetMarathonURL() string

GetMarathonURL provides a mock function with given fields:

func (*Marathon) Group

func (_m *Marathon) Group(name string) (*marathon.Group, error)

Group provides a mock function with given fields: name

func (*Marathon) Groups

func (_m *Marathon) Groups() (*marathon.Groups, error)

Groups provides a mock function with given fields:

func (*Marathon) HasApplicationVersion

func (_m *Marathon) HasApplicationVersion(name string, version string) (bool, error)

HasApplicationVersion provides a mock function with given fields: name, version

func (*Marathon) HasDeployment

func (_m *Marathon) HasDeployment(id string) (bool, error)

HasDeployment provides a mock function with given fields: id

func (*Marathon) HasGroup

func (_m *Marathon) HasGroup(name string) (bool, error)

HasGroup provides a mock function with given fields: name

func (*Marathon) Info

func (_m *Marathon) Info() (*marathon.Info, error)

Info provides a mock function with given fields:

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) KillTask

func (_m *Marathon) KillTask(taskID string, opts *marathon.KillTaskOpts) (*marathon.Task, error)

KillTask provides a mock function with given fields: taskID, opts

func (*Marathon) KillTasks

func (_m *Marathon) KillTasks(taskIDs []string, opts *marathon.KillTaskOpts) error

KillTasks provides a mock function with given fields: taskIDs, opts

func (*Marathon) Leader

func (_m *Marathon) Leader() (string, error)

Leader provides a mock function with given fields:

func (*Marathon) ListApplications

func (_m *Marathon) ListApplications(_a0 url.Values) ([]string, error)

ListApplications provides a mock function with given fields: _a0

func (*Marathon) Ping

func (_m *Marathon) Ping() (bool, error)

Ping provides a mock function with given fields:

func (*Marathon) RemoveEventsListener

func (_m *Marathon) RemoveEventsListener(channel marathon.EventsChannel)

RemoveEventsListener provides a mock function with given fields: channel

func (*Marathon) RestartApplication

func (_m *Marathon) RestartApplication(name string, force bool) (*marathon.DeploymentID, error)

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

func (_m *Marathon) Subscriptions() (*marathon.Subscriptions, error)

Subscriptions provides a mock function with given fields:

func (*Marathon) TaskEndpoints

func (_m *Marathon) TaskEndpoints(name string, port int, healthCheck bool) ([]string, error)

TaskEndpoints provides a mock function with given fields: name, port, healthCheck

func (*Marathon) Tasks

func (_m *Marathon) Tasks(application string) (*marathon.Tasks, error)

Tasks provides a mock function with given fields: application

func (*Marathon) Unsubscribe

func (_m *Marathon) Unsubscribe(_a0 string) error

Unsubscribe provides a mock function with given fields: _a0

func (*Marathon) UpdateApplication

func (_m *Marathon) UpdateApplication(application *marathon.Application) (*marathon.DeploymentID, error)

UpdateApplication provides a mock function with given fields: application

func (*Marathon) UpdateGroup

func (_m *Marathon) UpdateGroup(id string, group *marathon.Group) (*marathon.DeploymentID, error)

UpdateGroup provides a mock function with given fields: id, group

func (*Marathon) WaitOnApplication

func (_m *Marathon) WaitOnApplication(name string, timeout time.Duration) error

WaitOnApplication provides a mock function with given fields: name, timeout

func (*Marathon) WaitOnDeployment

func (_m *Marathon) WaitOnDeployment(id string, timeout time.Duration) error

WaitOnDeployment provides a mock function with given fields: id, timeout

func (*Marathon) WaitOnGroup

func (_m *Marathon) WaitOnGroup(name string, timeout time.Duration) error

WaitOnGroup provides a mock function with given fields: name, timeout

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL