models

package
v0.0.0-...-3934c66 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeTask

func DecodeTask(bucketTask []byte, task *Task) error

func EncodeTask

func EncodeTask(task *Task) ([]byte, error)

Types

type Task

type Task struct {
	App    string     `json:"app"`
	Name   string     `json:"name"`
	Target string     `json:"target"`
	Ctf    string     `json:"ctf"`
	Status TaskStatus `json:"status"`
	Next   time.Time  `json:"next"`
	// contains filtered or unexported fields
}

func (*Task) GetCtx

func (t *Task) GetCtx() context.Context

func (*Task) GetParser

func (t *Task) GetParser() *parser.Parser

func (*Task) SetCtx

func (t *Task) SetCtx(c context.Context)

func (*Task) SetParser

func (t *Task) SetParser(p *parser.Parser)

type TaskStatus

type TaskStatus int
const (
	Completed TaskStatus = iota
	Stopped
	Running
	Scheduled
	Errored
)

Jump to

Keyboard shortcuts

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