util

package
v1.6.3-v1.27.5-k3s1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeBase64Content

func DecodeBase64Content(content string) ([]byte, error)

func DecodeContent

func DecodeContent(content string, encoding string) ([]byte, error)

func DecodeGzipContent

func DecodeGzipContent(content string) ([]byte, error)

func DecompressGzip

func DecompressGzip(content []byte) ([]byte, error)

func EnsureDirectoryExists

func EnsureDirectoryExists(dir string) error

func ExistsAndExecutable

func ExistsAndExecutable(path string) bool

func HTTPDownloadToFile

func HTTPDownloadToFile(url, dest string) error

func HTTPLoadBytes

func HTTPLoadBytes(url string) ([]byte, error)

func MaskPassword

func MaskPassword(r *os.File, w io.Writer) ([]byte, error)

func PromptPassword

func PromptPassword() (string, bool, error)

func RunScript

func RunScript(path string, arg ...string) error

func WriteFileAtomic

func WriteFileAtomic(filename string, data []byte, perm os.FileMode) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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