env

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: MIT Imports: 10 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.

Functions

This section is empty.

Types

type ErrMultipleTokens added in v0.112.0

type ErrMultipleTokens struct {
	// contains filtered or unexported fields
}

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

func (ErrMultipleTokens) Error added in v1.2.0

func (e ErrMultipleTokens) Error() string

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