Documentation ¶
Overview ¶
Package scheduler provides default implementation for basic scheduler tasks.
Index ¶
- type FakeAction
- func (f *FakeAction) CanPause() bool
- func (f *FakeAction) CanStop() bool
- func (f *FakeAction) GetName() string
- func (f *FakeAction) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error
- func (f *FakeAction) ProvidesProgress() bool
- func (f *FakeAction) Run(ctx context.Context, channels *actions.RunnableChannels, ...) (jobs.ActionMessage, error)
- type FakeUsersAction
- func (f *FakeUsersAction) CanPause() bool
- func (f *FakeUsersAction) CanStop() bool
- func (f *FakeUsersAction) GetName() string
- func (f *FakeUsersAction) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error
- func (f *FakeUsersAction) ProvidesProgress() bool
- func (f *FakeUsersAction) Run(ctx context.Context, channels *actions.RunnableChannels, ...) (jobs.ActionMessage, error)
- type PruneJobsAction
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) GetName ¶
func (f *FakeAction) GetName() string
GetName returns this action unique identifier
func (*FakeAction) ProvidesProgress ¶
func (f *FakeAction) ProvidesProgress() bool
ProvidesProgress mocks ProgressProviderAction interface method
func (*FakeAction) Run ¶
func (f *FakeAction) Run(ctx context.Context, channels *actions.RunnableChannels, input jobs.ActionMessage) (jobs.ActionMessage, error)
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) ProvidesProgress ¶
func (f *FakeUsersAction) ProvidesProgress() bool
ProvidesProgress mocks ProgressProviderAction interface method
func (*FakeUsersAction) Run ¶
func (f *FakeUsersAction) Run(ctx context.Context, channels *actions.RunnableChannels, input jobs.ActionMessage) (jobs.ActionMessage, error)
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) Run ¶
func (c *PruneJobsAction) Run(ctx context.Context, channels *actions.RunnableChannels, input jobs.ActionMessage) (jobs.ActionMessage, error)
Run the actual action code
Click to show internal directories.
Click to hide internal directories.