status

package
v0.0.0-...-c77f481 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status struct {
	Type     StatusType `json:"type"`
	Value    string     `json:"value"`
	Checksum string     `json:"checksum"`
}

type StatusType

type StatusType uint8
const (
	PREPARED StatusType = iota
	ALLOCATED
	DOWNLOAD
	FETCHED
	STARTED
	RESUMING
	RUNNING
	COMPLETED
	SUSPENDED
	ERROR
	TIMEDOUT
	MISMATCH
	VALIDATED
	TERMINATED
)

Status Enum !!ORDER IS IMPORTANT!! most common check on app is: if status < status.COMPLETED => no process running

func (StatusType) Name

func (s StatusType) Name() string

return name of status

func (StatusType) Ordinal

func (s StatusType) Ordinal() uint8

return index of status

Jump to

Keyboard shortcuts

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