config

package
v0.0.0-...-cb7d559 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(def bool, path ...string) bool

Bool returns the boolean property at the path, with a default

func Duration

func Duration(def time.Duration, path ...string) time.Duration

Duration returns the string property at the path, as a time.Duration

func Float

func Float(def float64, path ...string) float64

Float returns the float property at the path, with a default

func GetAll

func GetAll(flatten bool) map[string]interface{}

func HasString

func HasString(path ...string) bool

func Int

func Int(def int, path ...string) int

Int returns the integer property at the path, with a default

func IsMaster

func IsMaster() bool

func IsPaired

func IsPaired() bool

func IsSlave

func IsSlave() bool

func MustBool

func MustBool(path ...string) bool

MustBool returns the boolean property at the path

func MustDuration

func MustDuration(path ...string) time.Duration

MustDuration returns the string property at the path, as a time.Duration

func MustFloat

func MustFloat(path ...string) float64

func MustInt

func MustInt(path ...string) int

MustInt returns the string property at the path

func MustRefresh

func MustRefresh()

func MustString

func MustString(path ...string) string

MustString returns the string property at the path

func MustStringArray

func MustStringArray(path ...string) []string

MustStringArray returns the string array property at the path

func NoCloud

func NoCloud() bool

func Serial

func Serial() string

func SphereVersion

func SphereVersion() string

func String

func String(def string, path ...string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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