utils

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckBytesRandomness added in v1.8.0

func CheckBytesRandomness(t *testing.T, data []byte)

func ExpandPath added in v0.9.23

func ExpandPath(path string) string

Expands tilde and all environment variables from the given path.

func FileChecksum added in v1.3.2

func FileChecksum(path string) (string, error)

func HomeDir added in v0.9.23

func HomeDir() string

func IsRunningInContainer

func IsRunningInContainer() bool

func IsRunningInDocker

func IsRunningInDocker() bool

func IsRunningInK8s

func IsRunningInK8s() bool

func IsRunningInPodman added in v1.9.1

func IsRunningInPodman() bool

func IsStringInFile

func IsStringInFile(s, path string) bool

func NewReadCloser

func NewReadCloser(r io.Reader, closure func() error) io.ReadCloser

func PathExists added in v1.11.0

func PathExists(path string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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