context

package
v0.37.7 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package context provides gorelease context which is passed through the pipeline.

The context extends the standard library context and add a few more fields and other things, so pipes can gather data provided by previous pipes without really knowing each other.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binary added in v0.27.0

type Binary struct {
	Name, Path string
}

Binary with pretty name and path

type Context

type Context struct {
	ctx.Context
	Config       config.Project
	Env          map[string]string
	Token        string
	Git          GitInfo
	Binaries     map[string]map[string][]Binary
	Artifacts    []string
	Dockers      []string
	Brews        []string
	ReleaseNotes string
	Version      string
	Validate     bool
	Publish      bool
	Snapshot     bool
	RmDist       bool
	Debug        bool
	Parallelism  int
}

Context carries along some data through the pipes

func New

func New(config config.Project) *Context

New context

func (*Context) AddArtifact added in v0.9.1

func (ctx *Context) AddArtifact(file string)

AddArtifact adds a file to upload list

func (*Context) AddBinary added in v0.27.0

func (ctx *Context) AddBinary(platform, folder, name, path string)

AddBinary adds a built binary to the current context

func (*Context) AddBrew added in v0.37.6

func (ctx *Context) AddBrew(tap string)

AddBrew adds a brew tap to the brews list

func (*Context) AddDocker added in v0.32.0

func (ctx *Context) AddDocker(image string)

AddDocker adds a docker image to the docker images list

type GitInfo

type GitInfo struct {
	CurrentTag string
	Commit     string
}

GitInfo includes tags and diffs used in some point

Jump to

Keyboard shortcuts

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