model

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeConnected    = "Connected"
	NodeDisconnected = "Disconnected"
	NodeDeleted      = "Deleted"
)
View Source
const (
	EdgeAppRunning    = "Running"
	EdgeAppStopped    = "Stopped"
	EdgeAppError      = "Error"
	EdgeAppInitiated  = "Initiated"
	EdgeAppExecuting  = "Executing"
	EdgeAppUndeployed = "Undeployed"
)
View Source
const (
	ModuleRunning    = "Running"
	ModuleRestarting = "Restarting"
	ModuleCreated    = "Created"
	ModuleExited     = "Exited"
)

Variables

View Source
var Version string = "X.Y.Z"

Functions

This section is empty.

Types

type ManifestUniqueID added in v1.1.0

type ManifestUniqueID struct {
	ID string
}

func (ManifestUniqueID) MarshalText added in v1.1.0

func (uniqueID ManifestUniqueID) MarshalText() (text []byte, err error)

func (ManifestUniqueID) String added in v1.3.0

func (uniqueID ManifestUniqueID) String() string

func (*ManifestUniqueID) UnmarshalText added in v1.1.0

func (uniqueID *ManifestUniqueID) UnmarshalText(text []byte) error

type Params

type Params struct {
	Version      bool   `long:"version" short:"v" description:"Print version information and exit"`
	Broker       string `long:"broker" short:"b" description:"Broker to connect"`
	NodeId       string `long:"id" short:"i" description:"ID of this node"`
	NodeName     string `long:"name" short:"n" description:"Name of this node to be registered"`
	NoTLS        bool   `long:"notls" description:"For developer - disable TLS for MQTT"`
	Password     string `long:"password" description:"Password for TLS"`
	RootCertPath string `long:"rootcert" description:"Path to MQTT broker (server) certificate"`
	LogLevel     string `long:"loglevel" short:"l" description:"Set the logging level"`
	LogFileName  string `long:"logfilename" description:"Set the name of the log file"`
	LogSize      int    `long:"logsize" description:"Set the size of each log files (MB)"`
	LogAge       int    `long:"logage" description:"Set the time period to retain the log files (days)"`
	LogBackup    int    `long:"logbackup" description:"Set the max number of log files to retain"`
	LogCompress  bool   `long:"logcompress" description:"To compress the log files"`
	MqttLogs     bool   `long:"mqttlogs" description:"For developer - Display detailed MQTT logging messages"`
	Heartbeat    int    `long:"heartbeat" short:"t" description:"Heartbeat time in seconds" `
	LogSendInvl  int    `long:"logsendinvl" description:"Time interval in sec to send edge app logs" `
	Stdout       bool   `long:"out" description:"Print logs to stdout"`
	ConfigPath   string `long:"config" description:"Path to the .json config file"`
	ManifestPath string `long:"manifest" description:"Path to the .json manifest file"`
	Delete       bool   `long:"delete" short:"d" description:"Remove node from weeve manager (when uninstalling the agent)"`
}

Jump to

Keyboard shortcuts

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