utils

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 IsStringInFile

func IsStringInFile(s, path string) bool

func NewReadCloser

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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