env

package
v0.182.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 7 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 GITHUB_TOKEN, GITLAB_TOKEN and GITEA_TOKEN")

ErrMissingToken indicates an error when GITHUB_TOKEN, GITLAB_TOKEN and GITEA_TOKEN are all missing in the environment.

View Source
var ErrMultipleTokens = errors.New("multiple tokens defined. Only one is allowed")

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

Functions

This section is empty.

Types

type Pipe

type Pipe struct{}

Pipe for env.

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