task

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const StatusCompleted = "COMPLETED"
View Source
const StatusFailed = "FAILED"
View Source
const StatusProcessing = "PROCESSING"

Variables

View Source
var Manager *manager

Functions

This section is empty.

Types

type Task

type Task struct {
	ID         string    `json:"id"`
	Created    time.Time `json:"created"`
	Finished   time.Time `json:"finished"`
	Source     string    `json:"source"`
	SourceSize uint      `json:"source_size"`
	TargetSize uint      `json:"target_size"`
	Status     string    `json:"status"`
	Reason     string    `json:"reason"`
}

func (*Task) IsExpired

func (t *Task) IsExpired() bool

Jump to

Keyboard shortcuts

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