jobs

package
v2.0.0-snapshot...-58e3a78 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IJobs

type IJobs interface {
	Delete(jobID, svcID string) error
	Deploy(redeploy bool, releaseName, target, svcID string) error
	DeployRelease(releaseName, svcID string) error
	DeployTarget(target, svcID string) error
	Redeploy(svcID string) error
	Retrieve(jobID, svcID string, includeSpec bool) (*models.Job, error)
	RetrieveByStatus(svcID, status string) (*[]models.Job, error)
	RetrieveByType(svcID, jobType string, page, pageSize int) (*[]models.Job, error)
	RetrieveByTarget(svcID, target string, page, pageSize int) (*[]models.Job, error)
	PollForStatus(statuses []string, jobID, svcID string) (string, error)
	PollTillFinished(jobID, svcID string) (string, error)
	List(svcID string, page, pageSize int) (*[]models.Job, error)
	WaitToAppear(jobID, svcID string) error
}

IJobs

func New

func New(settings *models.Settings) IJobs

New returns an instance of IJobs

type SJobs

type SJobs struct {
	Settings *models.Settings
}

SJobs is a concrete implementation of IJobs

func (*SJobs) Delete

func (j *SJobs) Delete(jobID, svcID string) error

func (*SJobs) Deploy

func (j *SJobs) Deploy(redeploy bool, releaseName, target, svcID string) error

func (*SJobs) DeployRelease

func (j *SJobs) DeployRelease(releaseName, svcID string) error

func (*SJobs) DeployTarget

func (j *SJobs) DeployTarget(target, svcID string) error

func (*SJobs) List

func (j *SJobs) List(svcID string, page, pageSize int) (*[]models.Job, error)

func (*SJobs) PollForStatus

func (j *SJobs) PollForStatus(statuses []string, jobID, svcID string) (string, error)

func (*SJobs) PollTillFinished

func (j *SJobs) PollTillFinished(jobID, svcID string) (string, error)

func (*SJobs) Redeploy

func (j *SJobs) Redeploy(svcID string) error

func (*SJobs) Retrieve

func (j *SJobs) Retrieve(jobID, svcID string, includeSpec bool) (*models.Job, error)

func (*SJobs) RetrieveByStatus

func (j *SJobs) RetrieveByStatus(svcID, status string) (*[]models.Job, error)

func (*SJobs) RetrieveByTarget

func (j *SJobs) RetrieveByTarget(svcID, target string, page, pageSize int) (*[]models.Job, error)

func (*SJobs) RetrieveByType

func (j *SJobs) RetrieveByType(svcID, jobType string, page, pageSize int) (*[]models.Job, error)

func (*SJobs) WaitToAppear

func (j *SJobs) WaitToAppear(jobID, svcID string) error

Jump to

Keyboard shortcuts

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