util

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile added in v0.0.9

func DownloadFile(ctx context.Context, url, outputPath string) error

func ExtractTarGz added in v0.0.9

func ExtractTarGz(tempPath string, destPath string) error

func GetPublicIP

func GetPublicIP(ctx context.Context) (string, error)

func IsAnsibleInstalled added in v0.0.9

func IsAnsibleInstalled() bool

func IsBrewInstalled added in v0.0.9

func IsBrewInstalled() bool

func IsHCloudInstalled added in v0.0.9

func IsHCloudInstalled() bool

func IsPipInstalled added in v0.0.9

func IsPipInstalled() bool

func RandString

func RandString(n int) string

func RunCmd added in v0.0.9

func RunCmd(cmd string, args ...string) error

Types

type IP

type IP struct {
	Query string `json:"query"`
}

Jump to

Keyboard shortcuts

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