status

package
v1.24.0-basal-automated.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DurationMinimum = 0
	NameResumed     = "resumed"
	NameSuspended   = "suspended"
)

Variables

This section is empty.

Functions

func Names

func Names() []string

func NewDatum

func NewDatum() data.Datum

func SubType

func SubType() string

Types

type Status

type Status struct {
	device.Device `bson:",inline"`

	Duration *int       `json:"duration,omitempty" bson:"duration,omitempty"`
	Name     *string    `json:"status,omitempty" bson:"status,omitempty"`
	Reason   *data.Blob `json:"reason,omitempty" bson:"reason,omitempty"`
}

func Init

func Init() *Status

func New

func New() *Status

func (*Status) Init

func (s *Status) Init()

func (*Status) Normalize

func (s *Status) Normalize(normalizer data.Normalizer)

func (*Status) Parse

func (s *Status) Parse(parser data.ObjectParser) error

func (*Status) Validate

func (s *Status) Validate(validator structure.Validator)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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