Documentation
¶
Index ¶
- Variables
- type Application
- func (a *Application) GetDevices() error
- func (a *Application) GetOnlineDevices() error
- func (a *Application) ProvisionDevices() []error
- func (a *Application) PutDevices() error
- func (a *Application) RestartOnlineDevices() error
- func (a *Application) SetOfflineDeviceStatus() []error
- func (a Application) String() string
- func (a *Application) UpdateOnlineDevices() []error
- func (a Application) Validate() bool
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 ¶
This section is empty.
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 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
}
func (*Application) GetDevices ¶
func (a *Application) GetDevices() error
func (*Application) GetOnlineDevices ¶
func (a *Application) GetOnlineDevices() error
func (*Application) ProvisionDevices ¶
func (a *Application) ProvisionDevices() []error
func (*Application) PutDevices ¶
func (a *Application) PutDevices() error
func (*Application) RestartOnlineDevices ¶
func (a *Application) RestartOnlineDevices() 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
func (Application) Validate ¶
func (a Application) Validate() bool
Click to show internal directories.
Click to hide internal directories.