scheduler

package
v3.0.0-rc4+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: AGPL-3.0 Imports: 18 Imported by: 9

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

func (f *FakeAction) GetDescription(lang ...string) actions.ActionDescription

func (*FakeAction) GetName

func (f *FakeAction) GetName() string

GetName returns this action unique identifier

func (*FakeAction) GetParametersForm

func (f *FakeAction) GetParametersForm() *forms.Form

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 performs 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) GetDescription

func (f *FakeUsersAction) GetDescription(lang ...string) actions.ActionDescription

func (*FakeUsersAction) GetName

func (f *FakeUsersAction) GetName() string

GetName returns this action unique identifier

func (*FakeUsersAction) GetParametersForm

func (f *FakeUsersAction) GetParametersForm() *forms.Form

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 {
	// contains filtered or unexported fields
}

func (*PruneJobsAction) GetDescription

func (c *PruneJobsAction) GetDescription(lang ...string) actions.ActionDescription

func (*PruneJobsAction) GetName

func (c *PruneJobsAction) GetName() string

GetName returns this action unique identifier

func (*PruneJobsAction) GetParametersForm

func (c *PruneJobsAction) GetParametersForm() *forms.Form

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