task

package
Version: v0.0.0-...-506b656 Latest Latest
Warning

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

Go to latest
Published: May 16, 2017 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	ID       string     `json:"id"`
	Created  time.Time  `json:"created"`
	Status   TaskStatus `json:"status"`
	Type     string     `json:"type"`
	Target   string     `json:"target"`
	Scanners []string   `json:"scanners"`
}

func (*Task) ReadFrom

func (t *Task) ReadFrom(fd io.Reader) error

func (*Task) ReadFromFile

func (t *Task) ReadFromFile(filename string) error

func (Task) WriteTo

func (t Task) WriteTo(fd io.Writer) error

func (Task) WriteToFile

func (t Task) WriteToFile(filename string) error

type TaskStatus

type TaskStatus string
var (
	StatusInQueue    TaskStatus = "queue"
	StatusProcessing TaskStatus = "processing"
	StatusDone       TaskStatus = "done"
	StatusFailed     TaskStatus = "failed"
)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL