Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClassStrings ¶
func ClassStrings() []string
ClassStrings returns a slice of all String values of the enum
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately.
func IPsFromSubnet ¶
IPsFromSubnet creates a list of ip addresses for given subnet
func ParseHostIPNet ¶
ParseHostIPNet converts host or cidr into a host list
Types ¶
type Class ¶
type Class int
const ( ClassConfigFile Class ClassMeter ClassCharger ClassVehicle ClassTariff ClassCircuit ClassSite ClassMqtt ClassDatabase ClassModbusProxy ClassEEBus ClassJavascript ClassGo ClassHEMS ClassInflux ClassMessenger ClassSponsorship )
func ClassString ¶
ClassString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (Class) IsAClass ¶
IsAClass returns "true" if the value is listed in the enum definition. "false" otherwise
func (Class) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface for Class
func (*Class) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface for Class
type ClassError ¶
type ClassError struct { Class Class // contains filtered or unexported fields }
ClassError indicates the class of devices that failed
func (*ClassError) Error ¶
func (e *ClassError) Error() string
func (ClassError) MarshalJSON ¶
func (e ClassError) MarshalJSON() ([]byte, error)
type DeviceError ¶
type DeviceError struct { Name string // contains filtered or unexported fields }
DeviceError indicates the specific device that failed
func (*DeviceError) Error ¶
func (e *DeviceError) Error() string
type FatalError ¶
type FatalError struct {
// contains filtered or unexported fields
}
FatalError is an error that can be marshaled
func (*FatalError) Error ¶
func (e *FatalError) Error() string
func (FatalError) MarshalJSON ¶
func (e FatalError) MarshalJSON() ([]byte, error)
Source Files ¶
- charger.go
- charger_ramp.go
- check_config.go
- class_enumer.go
- configure.go
- demo.go
- detect.go
- device.go
- discuss.go
- dump.go
- dumper.go
- eebus.go
- error.go
- flags.go
- gendock.go
- health.go
- helper.go
- meter.go
- migrate.go
- password.go
- password_reset.go
- password_set.go
- root.go
- settings-get.go
- settings-set.go
- settings.go
- setup.go
- sponsor.go
- sunspec.go
- tariff.go
- token.go
- token_ford-connect.go
- token_mercedes.go
- token_psa.go
- token_tronity.go
- vehicle.go