osutils

package
v0.21.10 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 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

Jump to

Keyboard shortcuts

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