env

package
v0.112.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package env implements the Pipe interface providing validation of missing environment variables needed by the release process.

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingToken = errors.New("missing both GITHUB_TOKEN and GITLAB_TOKEN")

ErrMissingToken indicates an error when GITHUB_TOKEN and GITLAB_TOKEN are both missing in the environment

View Source
var ErrMultipleTokens = errors.New("both GITHUB_TOKEN and GITLAB_TOKEN. Only one is allowed")

ErrMultipleTokens indicates that multiple tokens are defined. ATM only one of them if allowed See https://github.com/goreleaser/goreleaser/pull/809

Functions

This section is empty.

Types

type Pipe

type Pipe struct{}

Pipe for env

func (Pipe) Default

func (Pipe) Default(ctx *context.Context) error

Default sets the pipe defaults

func (Pipe) Run

func (Pipe) Run(ctx *context.Context) error

Run the pipe

func (Pipe) String

func (Pipe) String() string

Jump to

Keyboard shortcuts

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