flags

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

type Reporter struct {
	CoverageReport   string
	Verbose          bool
	GithubToken      string `env:"GITHUB_TOKEN"`
	GithubEventName  string `env:"GITHUB_EVENT_NAME"`
	GithubEventPath  string `env:"GITHUB_EVENT_PATH"`
	GithubOwner      string `env:"GITHUB_REPOSITORY_OWNER"`
	GithubActor      string `env:"GITHUB_ACTOR"`
	GithubRepository string `env:"GITHUB_REPOSITORY"`
}

Reporter reporter flags

func (Reporter) LogLevel

func (rep Reporter) LogLevel() zerolog.Level

LogLevel configure the zerolog log level

func (Reporter) ValidateToken

func (rep Reporter) ValidateToken() (string, error)

Jump to

Keyboard shortcuts

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