origin

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IDLengthMaximum      = 100
	NameLengthMaximum    = 100
	TimeFormat           = time.RFC3339Nano
	TypeDevice           = "device"
	TypeManual           = "manual"
	TypeService          = "service"
	VersionLengthMaximum = 100
)

Variables

This section is empty.

Functions

func Types

func Types() []string

Types

type Origin

type Origin struct {
	ID      *string            `json:"id,omitempty" bson:"id,omitempty"`
	Name    *string            `json:"name,omitempty" bson:"name,omitempty"`
	Payload *metadata.Metadata `json:"payload,omitempty" bson:"payload,omitempty"`
	Time    *string            `json:"time,omitempty" bson:"time,omitempty"`
	Type    *string            `json:"type,omitempty" bson:"type,omitempty"`
	Version *string            `json:"version,omitempty" bson:"version,omitempty"`
}

func NewOrigin

func NewOrigin() *Origin

func ParseOrigin

func ParseOrigin(parser structure.ObjectParser) *Origin

func (*Origin) Parse

func (o *Origin) Parse(parser structure.ObjectParser)

func (*Origin) Validate

func (o *Origin) 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