osutils

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MissingEnvVarError = func(envVar string) error {
		return fmt.Errorf("Missing %s environment variable", envVar)
	}
)

Functions

func GetEnvE added in v0.21.10

func GetEnvE(envVar string) (string, error)

*

Returns error if the environment variable is empty

Types

type OsClient

type OsClient interface {
	Getenv(key string) string
	ReadFile(path string) ([]byte, error)
}

func NewOsClient

func NewOsClient() OsClient

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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