noded

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReportInterval       = 5 * time.Minute
	ReportMaxElapsedTime = 3 * time.Minute // must be less than report interval
	CyclesToUpdate       = 3
)

Variables

View Source
var Module cli.Command = cli.Command{
	Name:  "noded",
	Usage: "reports the node total resources",
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:  "broker",
			Usage: "connection string to the message `BROKER`",
			Value: "unix:///var/run/redis.sock",
		},
		&cli.BoolFlag{
			Name:  "id",
			Usage: "print node id and exit",
		},
		&cli.BoolFlag{
			Name:  "net",
			Usage: "print node network and exit",
		},
	},
	Action: action,
}

Module is entry point for module

Functions

This section is empty.

Types

type RegistrationInfo

type RegistrationInfo struct {
	Capacity     gridtypes.Capacity
	Location     geoip.Location
	Ygg          net.IP
	SecureBoot   bool
	Virtualized  bool
	SerialNumber string
}

func (RegistrationInfo) WithCapacity

func (RegistrationInfo) WithLocation

func (r RegistrationInfo) WithLocation(v geoip.Location) RegistrationInfo

func (RegistrationInfo) WithSecureBoot

func (r RegistrationInfo) WithSecureBoot(v bool) RegistrationInfo

func (RegistrationInfo) WithSerialNumber

func (r RegistrationInfo) WithSerialNumber(v string) RegistrationInfo

func (RegistrationInfo) WithVirtualized

func (r RegistrationInfo) WithVirtualized(v bool) RegistrationInfo

func (RegistrationInfo) WithYggdrail

func (r RegistrationInfo) WithYggdrail(v net.IP) RegistrationInfo

Jump to

Keyboard shortcuts

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