device

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctx

type Ctx struct {
	// contains filtered or unexported fields
}

Ctx is base struct for EdgeNode

func CreateEdgeNode

func CreateEdgeNode() *Ctx

CreateEdgeNode generates EdgeNode

func (*Ctx) CheckHash

func (cfg *Ctx) CheckHash(newHash [32]byte) bool

CheckHash check hash and update returns true if hash is new

func (*Ctx) GetAdaptersForSwitch

func (cfg *Ctx) GetAdaptersForSwitch() []string

GetAdaptersForSwitch return adaptersForSwitch of device

func (*Ctx) GetApplicationInstances

func (cfg *Ctx) GetApplicationInstances() []string

GetApplicationInstances return applicationInstanceConfigs of device

func (*Ctx) GetBaseOSConfigs

func (cfg *Ctx) GetBaseOSConfigs() []string

GetBaseOSConfigs return baseOSConfigs of device

func (*Ctx) GetCipherContexts

func (cfg *Ctx) GetCipherContexts() []*config.CipherContext

GetCipherContexts get CipherContexts of device

func (*Ctx) GetConfigItems

func (cfg *Ctx) GetConfigItems() map[string]string

GetConfigItems return GetConfigItems of device

func (*Ctx) GetConfigVersion

func (cfg *Ctx) GetConfigVersion() int

GetConfigVersion return configVersion of device

func (*Ctx) GetContentTrees

func (cfg *Ctx) GetContentTrees() []string

GetContentTrees return ContentTrees of device

func (*Ctx) GetDevModel

func (cfg *Ctx) GetDevModel() string

GetDevModel return devModel of device

func (*Ctx) GetEpoch

func (cfg *Ctx) GetEpoch() int64

GetEpoch return remote address to access EVE

func (*Ctx) GetGlobalProfile

func (cfg *Ctx) GetGlobalProfile() string

GetGlobalProfile get globalProfile

func (*Ctx) GetID

func (cfg *Ctx) GetID() uuid.UUID

GetID return id of device

func (*Ctx) GetLocalProfileServer

func (cfg *Ctx) GetLocalProfileServer() string

GetLocalProfileServer get localProfileServer

func (*Ctx) GetNetworkInstances

func (cfg *Ctx) GetNetworkInstances() []string

GetNetworkInstances return networkInstances of device

func (*Ctx) GetNetworks

func (cfg *Ctx) GetNetworks() []string

GetNetworks return networks of device

func (*Ctx) GetOnboardKey

func (cfg *Ctx) GetOnboardKey() string

GetOnboardKey getter

func (*Ctx) GetPhysicalIOs

func (cfg *Ctx) GetPhysicalIOs() []string

GetPhysicalIOs return physicalIO of device

func (*Ctx) GetProfileServerToken

func (cfg *Ctx) GetProfileServerToken() string

GetProfileServerToken get profileServerToken

func (*Ctx) GetRebootCounter

func (cfg *Ctx) GetRebootCounter() (counter uint32, state bool)

GetRebootCounter getter

func (*Ctx) GetRemote

func (cfg *Ctx) GetRemote() bool

GetRemote return true if EVE is remote

func (*Ctx) GetRemoteAddr

func (cfg *Ctx) GetRemoteAddr() string

GetRemoteAddr return remote address to access EVE

func (*Ctx) GetSerial

func (cfg *Ctx) GetSerial() string

GetSerial getter

func (*Ctx) GetState

func (cfg *Ctx) GetState() EdgeNodeState

GetState setter

func (*Ctx) GetSystemAdapters

func (cfg *Ctx) GetSystemAdapters() []string

GetSystemAdapters return systemAdapters of device

func (*Ctx) GetVolumes

func (cfg *Ctx) GetVolumes() []string

GetVolumes return volumes of device

func (*Ctx) Reboot

func (cfg *Ctx) Reboot()

Reboot node by incrementing RebootCounter

func (*Ctx) SetAdaptersForSwitch

func (cfg *Ctx) SetAdaptersForSwitch(adaptersForSwitch []string)

SetAdaptersForSwitch set adaptersForSwitch of device

func (*Ctx) SetApplicationInstanceConfig

func (cfg *Ctx) SetApplicationInstanceConfig(configIDs []string) *Ctx

SetApplicationInstanceConfig set applicationInstanceConfigs by configIDs from cloud

func (*Ctx) SetBaseOSConfig

func (cfg *Ctx) SetBaseOSConfig(configIDs []string) *Ctx

SetBaseOSConfig set BaseOSConfig by configIDs from cloud

func (*Ctx) SetCipherContexts

func (cfg *Ctx) SetCipherContexts(contexts []*config.CipherContext) *Ctx

SetCipherContexts set CipherContexts for device

func (*Ctx) SetConfigItem

func (cfg *Ctx) SetConfigItem(key, val string)

SetConfigItem set ConfigItem of device

func (*Ctx) SetConfigVersion

func (cfg *Ctx) SetConfigVersion(version int)

SetConfigVersion set configVersion of device

func (*Ctx) SetContentTreeConfig

func (cfg *Ctx) SetContentTreeConfig(configIDs []string) *Ctx

SetContentTreeConfig set contentTrees configs by configIDs from cloud

func (*Ctx) SetDevModel

func (cfg *Ctx) SetDevModel(devModel string)

SetDevModel set devModel

func (*Ctx) SetDeviceItem

func (cfg *Ctx) SetDeviceItem(key string, val string) error

SetDeviceItem for setting devConfig fields

func (*Ctx) SetEpoch

func (cfg *Ctx) SetEpoch(epoch int64)

SetEpoch set remote address to access EVE

func (*Ctx) SetGlobalProfile

func (cfg *Ctx) SetGlobalProfile(globalProfile string)

SetGlobalProfile set globalProfile

func (*Ctx) SetID

func (cfg *Ctx) SetID(id uuid.UUID)

SetID setter

func (*Ctx) SetLocalProfileServer

func (cfg *Ctx) SetLocalProfileServer(localProfileServer string)

SetLocalProfileServer set localProfileServer

func (*Ctx) SetNetworkConfig

func (cfg *Ctx) SetNetworkConfig(configIDs []string) *Ctx

SetNetworkConfig set networks by configIDs from cloud

func (*Ctx) SetNetworkInstanceConfig

func (cfg *Ctx) SetNetworkInstanceConfig(configIDs []string) *Ctx

SetNetworkInstanceConfig set NetworkInstanceConfig by configIDs from cloud

func (*Ctx) SetOnboardKey

func (cfg *Ctx) SetOnboardKey(key string)

SetOnboardKey setter

func (*Ctx) SetPhysicalIOConfig

func (cfg *Ctx) SetPhysicalIOConfig(configIDs []string) *Ctx

SetPhysicalIOConfig set physicalIO by configIDs from cloud

func (*Ctx) SetProfileServerToken

func (cfg *Ctx) SetProfileServerToken(profileServerToken string)

SetProfileServerToken set profileServerToken

func (*Ctx) SetProject

func (cfg *Ctx) SetProject(name string)

SetProject setter

func (*Ctx) SetRebootCounter

func (cfg *Ctx) SetRebootCounter(counter uint32, state bool)

SetRebootCounter setter

func (*Ctx) SetRemote

func (cfg *Ctx) SetRemote(remote bool)

SetRemote set remote status of EVE

func (*Ctx) SetRemoteAddr

func (cfg *Ctx) SetRemoteAddr(remoteAddr string)

SetRemoteAddr set remote address to access EVE

func (*Ctx) SetSerial

func (cfg *Ctx) SetSerial(serial string)

SetSerial setter

func (*Ctx) SetState

func (cfg *Ctx) SetState(state EdgeNodeState)

SetState setter

func (*Ctx) SetSystemAdaptersConfig

func (cfg *Ctx) SetSystemAdaptersConfig(configIDs []string) *Ctx

SetSystemAdaptersConfig set systemAdapters by configIDs from cloud

func (*Ctx) SetVolumeConfigs

func (cfg *Ctx) SetVolumeConfigs(configIDs []string) *Ctx

SetVolumeConfigs set volumes configs by configIDs from cloud

type EdgeNodeState

type EdgeNodeState int

EdgeNodeState determinate state of EdgeNode

var (
	//NotOnboarded EdgeNode
	NotOnboarded EdgeNodeState
	//Onboarded EdgeNode
	Onboarded EdgeNodeState = 1
)

Jump to

Keyboard shortcuts

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