env

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package env provides the environment variables access and command execution.

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Env

type Env struct{}

func (*Env) Exec

func (*Env) Exec(e Exec) error

Exec runs and waits for a process. It inherits env vars of the current process. It sets Stdout and Stderr to the os defaults.

func (*Env) Getwd

func (*Env) Getwd() (string, error)

func (*Env) LookupEnv

func (*Env) LookupEnv(key string) (string, bool)

type Exec

type Exec struct {
	Name     string
	Args     []string
	ExtraEnv []string
}

type Interface

type Interface interface {
	LookupEnv(key string) (string, bool)
	Exec(in Exec) error
}

Directories

Path Synopsis
Package mock_env is a generated GoMock package.
Package mock_env is a generated GoMock package.

Jump to

Keyboard shortcuts

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