proc

package
Version: v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Envs

type Envs map[string]string

func Merge

func Merge(e, f Envs) Envs

func (Envs) AddIfMissing

func (e Envs) AddIfMissing(k, v string)

type Proc

type Proc struct {
	Name     string
	Prog     string
	Args     []string
	Envs     Envs
	Hostname string
	LogDir   string
	Dir      string
}

Proc represents a general purpose process

func (Proc) CmdCtx

func (p Proc) CmdCtx(ctx context.Context) *exec.Cmd

func (Proc) Script

func (p Proc) Script() string

Source Files

Jump to

Keyboard shortcuts

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