marshal

package
v0.0.0-...-fca1c31 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: GPL-3.0, GPL-3.0-or-later Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterMembershipStatus

func ClusterMembershipStatus(cmdOutput []byte) model.ClusterMembershipStatus

ClusterMembershipStatus returns this struct filled from the output of the script

func Clusters

func Clusters(cmdOutput []byte) []model.ClusterInfo

Clusters returns a list of Clusters entries extracted from the clusters fetcher command output.

func Filesystems

func Filesystems(cmdOutput []byte) []model.Filesystem

Filesystems returns a list of Filesystem entries extracted from the filesystem fetcher command output. Filesystem output is a list of filesystem entries with positional attribute columns separated by one or more spaces

func Host

func Host(cmdOutput []byte) model.Host

Host returns a Host struct from the output of the host fetcher command. Host fields output is in key: value format separated by a newline

func NewIter

func NewIter(splitted []string) func() string

NewIter return a an iterator on each string of a slice

func OvmVMs

func OvmVMs(cmdOutput []byte) map[string][]model.VMInfo

OvmVMs returns a list of VMs entries extracted from the vms fetcher command output.

func TrimParseBool

func TrimParseBool(s string) bool

func TrimParseFloat64

func TrimParseFloat64(s string) float64

func TrimParseFloat64Pointer

func TrimParseFloat64Pointer(s string, nils ...string) *float64

func TrimParseInt

func TrimParseInt(s string) int

func TrimParseInt64

func TrimParseInt64(s string) int64

func TrimParseIntPointer

func TrimParseIntPointer(s string, nils ...string) *int

func TrimParseStringPointer

func TrimParseStringPointer(s string, nils ...string) *string

func TrimParseUint

func TrimParseUint(s string) uint

func VmwareVMs

func VmwareVMs(cmdOutput []byte) map[string][]model.VMInfo

VmwareVMs returns a list of VMs entries extracted from the vms fetcher command output.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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