lifecycle

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

README

API Sercice LifeCycle

The apiservice LifeCycle is the implementation of the lifeCycle part from the unified api. The api service lifeCycle is available in all Perinets Products.

This implementation does store its resources, e.g. NodeInfo object or the ProductionInfo object persistently in the file system /var/lib/apiservice-lifeCycle/ as json files.

References

Dual License

This software is by default licensed via the GNU Affero General Public License version 3. However it is also available with a commercial license on request (https://perinet.io/contact).

Documentation

Index

Constants

View Source
const (
	API_VERSION = "23"
)

Variables

This section is empty.

Functions

func LifeCycle_Config_Get

func LifeCycle_Config_Get(p periHttp.PeriHttp)

func LifeCycle_Config_Set

func LifeCycle_Config_Set(p periHttp.PeriHttp)

func LifeCycle_FactoryReset_Set

func LifeCycle_FactoryReset_Set(p periHttp.PeriHttp)

func LifeCycle_FirmwareProductionImage_Get

func LifeCycle_FirmwareProductionImage_Get(p periHttp.PeriHttp)

func LifeCycle_FirmwareProductionImage_Set

func LifeCycle_FirmwareProductionImage_Set(p periHttp.PeriHttp)

func LifeCycle_FirmwareUpdateImage_Get

func LifeCycle_FirmwareUpdateImage_Get(p periHttp.PeriHttp)

func LifeCycle_FirmwareUpdateImage_Set

func LifeCycle_FirmwareUpdateImage_Set(p periHttp.PeriHttp)

func LifeCycle_Info_Get

func LifeCycle_Info_Get(p periHttp.PeriHttp)

func LifeCycle_Reboot_Set

func LifeCycle_Reboot_Set(p periHttp.PeriHttp)

func PathsGet

func PathsGet() []httpserver.PathInfo

func SetServiceLifeCycle

func SetServiceLifeCycle(serviceLifeCycle ServiceLifeCycle)

Types

type LifeCycleConfig

type LifeCycleConfig struct {
	State node.NodeLifeState `json:"state"`
}

type LifeCycleInfo

type LifeCycleInfo struct {
	ApiVersion    json.Number          `json:"api_version"`
	State         node.NodeLifeState   `json:"state"`
	ErrorStatus   node.NodeErrorStatus `json:"error_status"`
	RebootCounter int                  `json:"reboot_counter"`
}

type LifeCycleOEMProductionFirmwareImageStatus

type LifeCycleOEMProductionFirmwareImageStatus struct {
	State LifeCycleStatus `json:"state"`
}

type LifeCycleStatus

type LifeCycleStatus = lifecycleStatus.Enum

type LifeCycleUpdateFirmwareImageStatus

type LifeCycleUpdateFirmwareImageStatus struct {
	State LifeCycleStatus `json:"state"`
}

type ServiceLifeCycle

type ServiceLifeCycle struct {
	StoragePath string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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