application

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var List map[int]*Application

List holds all the applications assigned to the edge-node-manager Key is the applicationUUID

Functions

func Load added in v0.1.4

func Load() []error

Types

type Application

type Application struct {
	ResinUUID     int                       `json:"id"`
	Name          string                    `json:"name"`
	BoardType     board.Type                `json:"-"`
	Commit        string                    `json:"-"`      // Ignore this when unmarshalling from the supervisor as we want to set the target commit
	TargetCommit  string                    `json:"commit"` // Set json tag to commit as the supervisor has no concept of target commit
	Config        map[string]interface{}    `json:"config"`
	FilePath      string                    `json:"-"`
	Devices       map[string]*device.Device `json:"-"` // Key is the device's localUUID
	OnlineDevices map[string]bool           `json:"-"` // Key is the device's localUUID
	// contains filtered or unexported fields
}

func (*Application) GetDevices

func (a *Application) GetDevices() error

func (*Application) GetOnlineDevices

func (a *Application) GetOnlineDevices() error

func (*Application) HandleFlags added in v0.1.4

func (a *Application) HandleFlags() error

func (*Application) ProvisionDevices

func (a *Application) ProvisionDevices() []error

func (*Application) PutDevices

func (a *Application) PutDevices() error

func (*Application) SetOfflineDeviceStatus

func (a *Application) SetOfflineDeviceStatus() []error

func (Application) String

func (a Application) String() string

func (*Application) UpdateOnlineDevices

func (a *Application) UpdateOnlineDevices() []error

Jump to

Keyboard shortcuts

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