Documentation ¶
Overview ¶
Container dedicated implementation for the API service Node of Perinets unified API. It provides node specific meta information, general funding configuration values like application_name and element_name as well as production information
Index ¶
- Constants
- func ErrorStatusReset(p periHttp.PeriHttp)
- func ErrorStatusSet(p periHttp.PeriHttp)
- func LifeStateSet(p periHttp.PeriHttp)
- func NodeConfigGet(p periHttp.PeriHttp)
- func NodeConfigReset(p periHttp.PeriHttp)
- func NodeConfigSet(p periHttp.PeriHttp)
- func NodeInfoGet(p periHttp.PeriHttp)
- func ProductionInfoGet(p periHttp.PeriHttp)
- func ProductionInfoSet(p periHttp.PeriHttp)
- func RegisterNodeEventCallback(cb NodeEventCallback)
- func ServicesGet(p periHttp.PeriHttp)
- func ServicesSet(p periHttp.PeriHttp)
- func SetServiceConfig(serviceConfig ServiceConfig)
- func UnegisterNodeEventCallback(cb NodeEventCallback)
- func UnmarshalWithAdditionalProperties(data []byte, target interface{}) error
- type ContainerMetaInfo
- type FirmwareInfo
- type NodeConfig
- type NodeErrorStatus
- type NodeEventCallback
- type NodeInfo
- type NodeLifeState
- type PathInfo
- type ProductionInfo
- type ServiceConfig
- type WithAdditionalProperties
Constants ¶
View Source
const (
API_VERSION = "23"
)
Variables ¶
This section is empty.
Functions ¶
func ErrorStatusReset ¶ added in v1.0.3
func ErrorStatusSet ¶ added in v1.0.3
func LifeStateSet ¶
func NodeConfigGet ¶
func NodeConfigReset ¶ added in v1.0.3
func NodeConfigSet ¶
func NodeInfoGet ¶
func ProductionInfoGet ¶
func ProductionInfoSet ¶
func RegisterNodeEventCallback ¶ added in v1.0.3
func RegisterNodeEventCallback(cb NodeEventCallback)
func ServicesGet ¶
func ServicesSet ¶
func SetServiceConfig ¶
func SetServiceConfig(serviceConfig ServiceConfig)
func UnegisterNodeEventCallback ¶ added in v1.0.3
func UnegisterNodeEventCallback(cb NodeEventCallback)
func UnmarshalWithAdditionalProperties ¶ added in v1.0.3
Types ¶
type ContainerMetaInfo ¶
type FirmwareInfo ¶
type NodeConfig ¶
type NodeErrorStatus ¶ added in v1.0.3
type NodeErrorStatus = nodeErrorStatus.Enum
type NodeEventCallback ¶ added in v1.0.3
type NodeEventCallback func()
type NodeInfo ¶
type NodeInfo struct { ApiVersion json.Number `json:"api_version"` Config *NodeConfig `json:"config"` LifeState NodeLifeState `json:"life_state"` Services []string `json:"services"` ErrorStatus NodeErrorStatus `json:"error_status"` Firmware FirmwareInfo `json:"firmware"` }
NodeInfo - Basic Node information
type NodeLifeState ¶
type NodeLifeState = nodeLifeState.Enum
type PathInfo ¶
type PathInfo = httpserver.PathInfo
type ProductionInfo ¶
type ProductionInfo struct { WithAdditionalProperties // accept additional properties added during production Manufacturer string `json:"manufacturer"` // Manufacturer Part Number Mpn string `json:"mpn"` SerialNumber string `json:"serial_number"` ProductVersion string `json:"product_version"` ProductVariant string `json:"product_variant"` // Manufacturer production batch identification BatchNumber string `json:"batch_number"` ProductName string `json:"product_name"` Hostname string `json:"hostname"` IsFused bool `json:"is_fused"` }
func (ProductionInfo) MarshalJSON ¶ added in v1.0.3
func (p ProductionInfo) MarshalJSON() ([]byte, error)
type ServiceConfig ¶
type ServiceConfig struct { FirmwareInfo FirmwareInfo StorageBasePath string }
type WithAdditionalProperties ¶ added in v1.0.3
type WithAdditionalProperties struct {
AdditionalProperties map[string]interface{} `json:"-"`
}
Click to show internal directories.
Click to hide internal directories.