commands

package
v0.0.0-...-70b7694 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeforeMiddleware

func BeforeMiddleware(c *cli.Context) error

This handles any setup that needs to happen before every subcommand is called.

func BytesToHumanSize

func BytesToHumanSize(size float64) string

BytesToHumanSize takes an int and treats it as if it was bytes converting it to the largest human readable size.

func DatacenterSubcommand

func DatacenterSubcommand() cli.Command

func IpamSubcommand

func IpamSubcommand() cli.Command

func LogSubcommand

func LogSubcommand() cli.Command

func ModifySubcommand

func ModifySubcommand() cli.Command

func PowerSubcommand

func PowerSubcommand() cli.Command

func ProfilesSubcommand

func ProfilesSubcommand() cli.Command

func ProvisionSubcommand

func ProvisionSubcommand() cli.Command

func QuerySubcommand

func QuerySubcommand() cli.Command

func Round

func Round(val float64, roundOn float64, places int) (newVal float64)

func StateSubcommand

func StateSubcommand() cli.Command

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 (UniqueOrderedSet) Contains

func (u UniqueOrderedSet) Contains(s string) bool

Jump to

Keyboard shortcuts

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