scheduler

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package scheduler provides default implementation for basic scheduler tasks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeAction

type FakeAction struct {
	// contains filtered or unexported fields
}

func (*FakeAction) CanPause

func (f *FakeAction) CanPause() bool

Implement ControllableAction

func (*FakeAction) CanStop

func (f *FakeAction) CanStop() bool

Implement ControllableAction

func (*FakeAction) GetName

func (f *FakeAction) GetName() string

GetName returns this action unique identifier

func (*FakeAction) Init

func (f *FakeAction) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error

Init passes parameters to the action

func (*FakeAction) ProvidesProgress

func (f *FakeAction) ProvidesProgress() bool

ProvidesProgress mocks ProgressProviderAction interface method

func (*FakeAction) Run

Run the actual action code

type FakeUsersAction

type FakeUsersAction struct {
	// contains filtered or unexported fields
}

func (*FakeUsersAction) CanPause

func (f *FakeUsersAction) CanPause() bool

Implement ControllableAction

func (*FakeUsersAction) CanStop

func (f *FakeUsersAction) CanStop() bool

Implement ControllableAction

func (*FakeUsersAction) GetName

func (f *FakeUsersAction) GetName() string

GetName returns this action unique identifier

func (*FakeUsersAction) Init

func (f *FakeUsersAction) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error

Init passes parameters to the action

func (*FakeUsersAction) ProvidesProgress

func (f *FakeUsersAction) ProvidesProgress() bool

ProvidesProgress mocks ProgressProviderAction interface method

func (*FakeUsersAction) Run

Run the actual action code

type PruneJobsAction

type PruneJobsAction struct{}

func (*PruneJobsAction) GetName

func (c *PruneJobsAction) GetName() string

GetName returns this action unique identifier

func (*PruneJobsAction) Init

func (c *PruneJobsAction) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error

Init passes parameters to the action

func (*PruneJobsAction) Run

Run the actual action code

Jump to

Keyboard shortcuts

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