node

package
v3.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Architecture

func Architecture()

func List

func List()

func Version

func Version()

Types

type Configstate

type Configstate struct {
	State          *string `json:"state"`
	LastUpdateTime string  `json:"last_update_time"` // removed omitempty
}

type NodeAndStatus

type NodeAndStatus struct {
	// from api.HorizonDevice
	Id      *string `json:"id"`
	Org     *string `json:"organization"`
	Pattern *string `json:"pattern"` // a simple name, not prefixed with the org
	Name    *string `json:"name"`    // removed omitempty
	//Token              *string     `json:"token"`                 // removed omitempty
	TokenLastValidTime string      `json:"token_last_valid_time"` // removed omitempty
	TokenValid         *bool       `json:"token_valid"`           // removed omitempty
	HA                 *bool       `json:"ha"`                    // removed omitempty
	Config             Configstate `json:"configstate"`           // removed omitempty
	// from apicommon.Info
	Configuration *apicommon.Configuration `json:"configuration"`
	Connectivity  map[string]bool          `json:"connectivity"`
}

This is a combo of anax's HorizonDevice and Info (status) structs

func (*NodeAndStatus) CopyNodeInto

func (n *NodeAndStatus) CopyNodeInto(horDevice *api.HorizonDevice)

CopyNodeInto copies the node info into our output struct and converts times in the process

func (*NodeAndStatus) CopyStatusInto

func (n *NodeAndStatus) CopyStatusInto(status *apicommon.Info)

CopyStatusInto copies the status info into our output struct

Jump to

Keyboard shortcuts

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