schedule

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 13 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScheduleAPI

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

func New

func New(ctx context.Context, logger *zap.Logger, storage storageTY.Plugin, bus busTY.Plugin) *ScheduleAPI

func (*ScheduleAPI) Add

func (sh *ScheduleAPI) Add(cfg *schedulerTY.Config) error

Add scheduler

func (*ScheduleAPI) Delete

func (sh *ScheduleAPI) Delete(IDs []string) (int64, error)

Delete schedulers

func (*ScheduleAPI) Disable

func (sh *ScheduleAPI) Disable(ids []string) error

Disable scheduler

func (*ScheduleAPI) Enable

func (sh *ScheduleAPI) Enable(ids []string) error

Enable scheduler

func (*ScheduleAPI) Get

func (sh *ScheduleAPI) Get(filters []storageTY.Filter) (*schedulerTY.Config, error)

Get returns a scheduler

func (*ScheduleAPI) GetByID

func (sh *ScheduleAPI) GetByID(id string) (*schedulerTY.Config, error)

GetByID returns a scheduler by id

func (*ScheduleAPI) GetEntityInterface

func (sh *ScheduleAPI) GetEntityInterface() interface{}

func (*ScheduleAPI) Import

func (sh *ScheduleAPI) Import(data interface{}) error

func (*ScheduleAPI) List

func (sh *ScheduleAPI) List(filters []storageTY.Filter, pagination *storageTY.Pagination) (*storageTY.Result, error)

List by filter and pagination

func (*ScheduleAPI) LoadAll

func (sh *ScheduleAPI) LoadAll()

LoadAll makes schedulers alive

func (*ScheduleAPI) Reload

func (sh *ScheduleAPI) Reload(ids []string) error

Reload scheduler

func (*ScheduleAPI) Remove

func (sh *ScheduleAPI) Remove(cfg *schedulerTY.Config) error

Remove scheduler

func (*ScheduleAPI) Save

func (sh *ScheduleAPI) Save(schedule *schedulerTY.Config) error

Save a scheduler details

func (*ScheduleAPI) SaveAndReload

func (sh *ScheduleAPI) SaveAndReload(cfg *schedulerTY.Config) error

SaveAndReload scheduler

func (*ScheduleAPI) SetState

func (sh *ScheduleAPI) SetState(id string, state *schedulerTY.State) error

SetState Updates state data

func (*ScheduleAPI) UnloadAll

func (sh *ScheduleAPI) UnloadAll()

UnloadAll makes stop all schedulers

Jump to

Keyboard shortcuts

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