node

package
v0.0.0-...-e955a5d Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

package node contains generic node types and functions

Index

Constants

View Source
const (
	StatusUnitialised Status = iota
	StatusPending
	StatusReady
	StatusUnknown

	NodeIEC    NodeType = "IEC"
	NodeClient NodeType = "client"
	NodeDevice NodeType = "device"
)

Variables

This section is empty.

Functions

func GatherEnvironmentData

func GatherEnvironmentData() ([]byte, logging.Result)

GatherEnvironmentData gathers data about the local environment and returns it as a base 64 encoded byte array

Types

type Build

type Build struct {
	Version      string `json:"version"`
	Date         string `json:"date"`
	UTCTime      string `json:"utc_time"`
	Platform     string `json:"platform"`
	Number       string `json:"number"`
	TrustedAgent *struct {
		Version  string `json:"version"`
		Date     string `json:"date"`
		UTCTime  string `json:"utc_time"`
		Platform string `json:"platform"`
		Number   string `json:"number"`
	} `json:"trusted_agent,omitempty"`
}

Build holds build information about the node

func (Build) String

func (b Build) String() string

String defines a print formatter for the Build information

type NodeType

type NodeType string

NodeType is an enum to identify the type of node in question

type Status

type Status int

Status is an enum returned by a Status request

func (Status) String

func (s Status) String() string

String converts a Status into a string

Jump to

Keyboard shortcuts

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