Documentation ¶
Index ¶
- func DecodeRecoveryToken(recoverytoken string) []string
- func EncodeRecoveryToken(data ...string) string
- func Exists(path string) bool
- func ExtractOCIImage(targetImage, targetDestination, targetPlatform string, isLocal bool) error
- func FindCommand(def string, options []string) string
- func Flavor() string
- func GetCurrentPlatform() string
- func GetInterfaceIP(in string) string
- func IsOpenRCBased() bool
- func K3sBin() string
- func ListOutput(rels []string, output string) []string
- func ListToOutput(rels []string, output string) []string
- func Name() string
- func OSRelease(key string) (string, error)
- func OnSignal(fn func(), sig ...os.Signal)
- func PowerOFF()
- func PrintBanner(d []byte)
- func Prompt(t string) (string, error)
- func RandStringRunes(n int) string
- func Reboot()
- func SH(c string) (string, error)
- func SHInDir(c, dir string, envs ...string) (string, error)
- func SetEnv(env []string)
- func Shell() *exec.Cmd
- func ShellSTDIN(s, c string) (string, error)
- func UUID() string
- func Version() string
- func WriteEnv(envFile string, config map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeRecoveryToken ¶ added in v0.0.2
func EncodeRecoveryToken ¶ added in v0.0.2
func ExtractOCIImage ¶ added in v0.0.3
ExtractOCIImage will extract a given targetImage into a given targetDestination and pull from the local repo if set.
func FindCommand ¶
func GetCurrentPlatform ¶ added in v0.0.3
func GetCurrentPlatform() string
GetCurrentPlatform returns the current platform in docker style `linux/amd64` for use with image utils
func GetInterfaceIP ¶ added in v0.0.2
func IsOpenRCBased ¶ added in v0.0.2
func IsOpenRCBased() bool
func ListOutput ¶ added in v0.0.2
func ListToOutput ¶ added in v0.0.2
func PrintBanner ¶ added in v0.0.2
func PrintBanner(d []byte)
func RandStringRunes ¶ added in v0.0.2
func ShellSTDIN ¶ added in v0.0.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.