device

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Board             board.Interface        `json:"-"`
	ApplicationUUID   int                    `storm:"index"`
	BoardType         board.Type             `storm:"index"`
	Name              string                 `storm:"index"`
	LocalUUID         string                 `storm:"index"`
	ResinUUID         string                 `storm:"id,unique,index"`
	Commit            string                 `storm:"index"`
	TargetCommit      string                 `storm:"index"`
	Status            status.Status          `storm:"index"`
	Config            map[string]interface{} `storm:"index"`
	TargetConfig      map[string]interface{} `storm:"index"`
	Environment       map[string]interface{} `storm:"index"`
	TargetEnvironment map[string]interface{} `storm:"index"`
	RestartFlag       bool                   `storm:"index"`
	DeleteFlag        bool                   `storm:"index"`
}

func New

func New(applicationUUID int, boardType board.Type, name, localUUID, resinUUID string) Device

func (*Device) PopulateBoard added in v1.3.0

func (d *Device) PopulateBoard() error

func (Device) String

func (d Device) String() string

func (*Device) Sync added in v0.1.5

func (d *Device) Sync() []error

Sync device with resin to ensure we have the latest values for: - Device name - Device target config - Device target environment

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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