options

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Empty

type Empty struct{}

Empty options.

type GitHub

type GitHub struct {
	Token          string `description:"GitHub token."`
	Owner          string `short:"o" description:"Repository owner."`
	RepositoryName string `long:"repo-name" short:"r" description:"Repository name."`
}

GitHub options.

type GitHubAction added in v1.1.0

type GitHubAction struct {
	LogLevel string `long:"log-level" description:"Log level."`
	DryRun   bool   `long:"dry-run" description:"Dry run mode."`
}

GitHubAction options.

type Label

type Label struct {
	LogLevel      string   `long:"log-level" description:"Log level."`
	DryRun        bool     `long:"dry-run" description:"Dry run mode."`
	WebHook       *WebHook `long:"web-hook" description:"Run as WebHook."`
	RulesFilePath string   `long:"rules-path" description:"Path to the rule file."`
	GitHub        *GitHub  `description:"GitHub options."`
}

Label options.

type Report

type Report struct {
	LogLevel   string  `long:"log-level" description:"Log level."`
	DryRun     bool    `long:"dry-run" description:"Dry run mode."`
	ServerMode bool    `long:"server" description:"Server mode."`
	ServerPort int     `long:"port" description:"Server port."`
	GitHub     *GitHub `description:"GitHub options."`
	Slack      *Slack  `description:"Slack options."`
}

Report options.

type Slack

type Slack struct {
	Token     string `description:"Slack token."`
	ChannelID string `long:"channel" description:"Slack channel ID."`
	IconEmoji string `long:"bot-icon" description:"Bot icon emoji."`
	BotName   string `long:"bot-name" description:"Bot name."`
}

Slack options.

type WebHook

type WebHook struct {
	Port   int    `description:"WebHook port."`
	Secret string `description:"WebHook secret."`
}

WebHook options.

Jump to

Keyboard shortcuts

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