Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultTaskPollingInterval = 5 * time.Second
DefaultTaskPollingInterval is the default interval for polling task.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GC ¶ added in v2.1.57
type GC interface { // Serve started gc server. Serve() // Stop gc server. Stop() }
GC is an interface for gc.
type Preheat ¶
type Preheat interface { // CreatePreheat creates a preheat job. CreatePreheat(context.Context, []models.Scheduler, types.PreheatArgs) (*internaljob.GroupJobState, error) }
Preheat is an interface for preheat job.
type PreheatType ¶
type PreheatType string
preheatImage is an image for preheat.
const ( // PreheatImageType is image type of preheat job. PreheatImageType PreheatType = "image" // PreheatFileType is file type of preheat job. PreheatFileType PreheatType = "file" )
type SyncPeers ¶ added in v2.0.30
type SyncPeers interface { // Run sync peers. Run(context.Context) error // Serve started sync peers server. Serve() // Stop sync peers server. Stop() }
SyncPeers is an interface for sync peers.
type Task ¶ added in v2.1.55
type Task interface { // CreateGetTask create a get task job. CreateGetTask(context.Context, []models.Scheduler, types.GetTaskArgs) (*internaljob.GroupJobState, error) // CreateDeleteTask create a delete task job. CreateDeleteTask(context.Context, []models.Scheduler, types.DeleteTaskArgs) (*internaljob.GroupJobState, error) }
Task is an interface for manager tasks.
Click to show internal directories.
Click to hide internal directories.