Documentation ¶
Overview ¶
This package is just here to hold global variables since it really didn't make sense to put them any other place.
Index ¶
- func BeforeMiddleware(c *cli.Context) error
- func BytesToHumanSize(size float64) string
- func DatacenterSubcommand() cli.Command
- func IpamSubcommand() cli.Command
- func LogSubcommand() cli.Command
- func ModifySubcommand() cli.Command
- func PowerSubcommand() cli.Command
- func ProfilesSubcommand() cli.Command
- func ProvisionSubcommand() cli.Command
- func QuerySubcommand() cli.Command
- func Round(val float64, roundOn float64, places int) (newVal float64)
- func StateSubcommand() cli.Command
- type UniqueOrderedSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeforeMiddleware ¶
This handles any setup that needs to happen before every subcommand is called.
func BytesToHumanSize ¶
BytesToHumanSize takes an int and treats it as if it was bytes converting it to the largest human readable size.
Types ¶
type UniqueOrderedSet ¶
type UniqueOrderedSet []string
This is kinda dumb but go has pretty limited data structure types this means no Sets. We only support adding values via the Add method creating a UniqueOrderedSet with duplicate values will not cause it to be filtered. This is not efficient.
func (UniqueOrderedSet) Add ¶
func (u UniqueOrderedSet) Add(s string) UniqueOrderedSet
func (UniqueOrderedSet) Contains ¶
func (u UniqueOrderedSet) Contains(s string) bool
Click to show internal directories.
Click to hide internal directories.