provisiond

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: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module cli.Command = cli.Command{
	Name:  "provisiond",
	Usage: "handles reservations streams and use other daemon to deploy them",
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:  "root",
			Usage: "`ROOT` working directory of the module",
			Value: "/var/cache/modules/provisiond",
		},
		&cli.StringFlag{
			Name:  "broker",
			Usage: "connection string to the message `BROKER`",
			Value: "unix:///var/run/redis.sock",
		},
		&cli.StringFlag{
			Name:  "http",
			Usage: "http listen address",
			Value: ":2021",
		},
	},
	Action: action,
}

Module entry point

Functions

This section is empty.

Types

type Consumption added in v0.5.5

type Consumption struct {
	substrate.Consumption
	TwinID uint32
}

type Report added in v0.5.5

type Report struct {
	Consumption []Consumption
}

type Reporter added in v0.5.5

type Reporter struct {
	// contains filtered or unexported fields
}

Reporter structure

func NewReporter added in v0.5.5

func NewReporter(engine provision.Engine, nodeID uint32, cl zbus.Client, root string) (*Reporter, error)

NewReporter creates a new capacity reporter

func (*Reporter) Run added in v0.5.5

func (r *Reporter) Run(ctx context.Context) error

Run runs the reporter

Jump to

Keyboard shortcuts

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