Documentation
¶
Index ¶
- Variables
- func AbsolutePath(path string) (string, error)
- func DownloadFile(ctx context.Context, timeout time.Duration, u, destFile string) error
- func ExpandPath(path string) (string, error)
- func GetFileName(u string) string
- func HTTPClient(t time.Duration) http.Client
- func Must[T any](obj T, err error) T
- func PackFiles(ctx context.Context, src, dest string) error
- func PasswordPrompt() (string, error)
- func ShaHash(r io.Reader) (string, error)
- func Unpack(_ context.Context, instancePath, backupFile string) error
- func UnpackTarGZ(ctx context.Context, file, destDir string) error
- func ValidateFileIntegrity(ctx context.Context, file, signature string) error
- func WarnOnError[T any](obj T, err error) T
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AbsolutePath ¶
AbsolutePath returns the absolute path
func DownloadFile ¶
DownloadFile downloads a file
func ExpandPath ¶
ExpandPath expands tilde '~' character for home
func PasswordPrompt ¶
PasswordPrompt prompts user for a password (hiding it's value from console)
func UnpackTarGZ ¶
UnpackTarGZ unpacks .tar.gz file to destDir
func ValidateFileIntegrity ¶
ValidateFileIntegrity validates down
func WarnOnError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.