system

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCPUKey   = "default_cpu"
	DefaultMemKey   = "default_mem"
	DefaultDISKKey  = "default_disk"
	DefaultImageKey = "default_image"
)

Variables

This section is empty.

Functions

func Get

func Get(key string) (string, error)

func List

func List()

func NewConfigCmd

func NewConfigCmd() *cobra.Command

func NewExampleConfig

func NewExampleConfig() (string, error)

func Set

func Set(key, value string) error

Types

type ConfigOption

type ConfigOption struct {
	Key          string
	Description  string
	DefaultValue string
}

func ConfigOptions

func ConfigOptions() []ConfigOption

Jump to

Keyboard shortcuts

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