mocks

package
v1.7.14 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocks Code generated by mockery v1.0.0. DO NOT EDIT. mockery -recursive -dir=vendor/github.com/gambol99/ -name=Marathon -output=provider/marathon/mocks

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 an autogenerated mock type for the Marathon type

func (*Marathon) AbdicateLeader

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

AbdicateLeader provides a mock function with given fields:

func (*Marathon) AddEventsListener

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

AddEventsListener provides a mock function with given fields: 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) ApplicationBy

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

ApplicationBy provides a mock function with given fields: name, opts

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

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) CreatePod added in v1.7.0

func (_m *Marathon) CreatePod(pod *marathon.Pod) (*marathon.Pod, error)

CreatePod provides a mock function with given fields: pod

func (*Marathon) DeleteApplication

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

DeleteApplication provides a mock function with given fields: name, force

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, force bool) (*marathon.DeploymentID, error)

DeleteGroup provides a mock function with given fields: name, force

func (*Marathon) DeletePod added in v1.7.0

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

DeletePod provides a mock function with given fields: name, force

func (*Marathon) DeletePodInstance added in v1.7.0

func (_m *Marathon) DeletePodInstance(name string, instance string) (*marathon.PodInstance, error)

DeletePodInstance provides a mock function with given fields: name, instance

func (*Marathon) DeletePodInstances added in v1.7.0

func (_m *Marathon) DeletePodInstances(name string, instances []string) ([]*marathon.PodInstance, error)

DeletePodInstances provides a mock function with given fields: name, instances

func (*Marathon) DeleteQueueDelay

func (_m *Marathon) DeleteQueueDelay(appID string) error

DeleteQueueDelay provides a mock function with given fields: appID

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

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

GroupBy provides a mock function with given fields: name, opts

func (*Marathon) Groups

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

Groups provides a mock function with given fields:

func (*Marathon) GroupsBy

func (_m *Marathon) GroupsBy(opts *marathon.GetGroupOpts) (*marathon.Groups, error)

GroupsBy provides a mock function with given fields: opts

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) Pod added in v1.7.0

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

Pod provides a mock function with given fields: name

func (*Marathon) PodByVersion added in v1.7.0

func (_m *Marathon) PodByVersion(name string, version string) (*marathon.Pod, error)

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

func (*Marathon) PodIsRunning added in v1.7.0

func (_m *Marathon) PodIsRunning(name string) bool

PodIsRunning provides a mock function with given fields: name

func (*Marathon) PodStatus added in v1.7.0

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

PodStatus provides a mock function with given fields: name

func (*Marathon) PodStatuses added in v1.7.0

func (_m *Marathon) PodStatuses() ([]*marathon.PodStatus, error)

PodStatuses provides a mock function with given fields:

func (*Marathon) PodVersions added in v1.7.0

func (_m *Marathon) PodVersions(name string) ([]string, error)

PodVersions provides a mock function with given fields: name

func (*Marathon) Pods added in v1.7.0

func (_m *Marathon) Pods() ([]marathon.Pod, error)

Pods provides a mock function with given fields:

func (*Marathon) Queue

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

Queue 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) Subscribe

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

Subscribe provides a mock function with given fields: _a0

func (*Marathon) Subscriptions

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

Subscriptions provides a mock function with given fields:

func (*Marathon) SupportsPods added in v1.7.0

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

SupportsPods 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, force bool) (*marathon.DeploymentID, error)

UpdateApplication provides a mock function with given fields: application, force

func (*Marathon) UpdateGroup

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

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

func (*Marathon) UpdatePod added in v1.7.0

func (_m *Marathon) UpdatePod(pod *marathon.Pod, force bool) (*marathon.Pod, error)

UpdatePod provides a mock function with given fields: pod, force

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

func (*Marathon) WaitOnPod added in v1.7.0

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

WaitOnPod 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