env

package
v0.0.0-...-302dbc3 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 9 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

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/sagernet/goreleaser/pull/809

func (ErrMultipleTokens) Error

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