cmd

package
v0.0.0-...-e6e1b3f Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately.

func IPsFromSubnet

func IPsFromSubnet(arg string) (res []string)

IPsFromSubnet creates a list of ip addresses for given subnet

func ParseHostIPNet

func ParseHostIPNet(arg string) (res []string)

ParseHostIPNet converts host or cidr into a host list

Types

type ConfigProvider

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

ConfigProvider provides configuration items

func (*ConfigProvider) Charger

func (cp *ConfigProvider) Charger(name string) api.Charger

Charger provides chargers by name

func (*ConfigProvider) Meter

func (cp *ConfigProvider) Meter(name string) api.Meter

Meter provides meters by name

func (*ConfigProvider) Vehicle

func (cp *ConfigProvider) Vehicle(name string) api.Vehicle

Vehicle provides vehicles by name

type Tee

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

Tee distributed parameters to subscribers

func (*Tee) Add

func (t *Tee) Add(out chan<- util.Param)

Add attaches a receiver channel to the tee

func (*Tee) Attach

func (t *Tee) Attach() <-chan util.Param

Attach creates a new receiver channel and attaches it to the tee

func (*Tee) Run

func (t *Tee) Run(in <-chan util.Param)

Run starts parameter distribution

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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