cmd

package
v0.0.0-...-0c7050d Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 87 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, error)

Charger provides chargers by name

func (*ConfigProvider) Meter

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

Meter provides meters by name

func (*ConfigProvider) TrackVisitors

func (cp *ConfigProvider) TrackVisitors()

func (*ConfigProvider) Vehicle

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

Vehicle provides vehicles by name

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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