context

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	ctx.Context
	Config      config.Config
	Env         Env
	Artifacts   artifact.Artifacts
	Date        time.Time
	Timeout     time.Duration
	Parallelism int
	RmDist      bool
}

Context carriers all data through the pipes

func New

func New(config config.Config) *Context

New context.

func NewWithTimeout

func NewWithTimeout(config config.Config, timeout time.Duration) (*Context, ctx.CancelFunc)

NewWithTimeout new context with the given timeout.

func Wrap

func Wrap(ctx ctx.Context, config config.Config) *Context

Wrap wraps an existing context.

type Env

type Env map[string]string

Env is the environment variables.

func (Env) Strings

func (e Env) Strings() []string

Strings returns the current environment as a list of strings

Jump to

Keyboard shortcuts

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