flags

package
v0.0.0-...-6fab97a Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Version          kong.VersionFlag
	AppName          string `help:"Stage the name of the service." env:"APP_NAME"`
	Stage            string `help:"Stage the software is deployed." env:"STAGE"`
	Branch           string `help:"Branch used to build software." env:"BRANCH"`
	ClientID         string `help:"The client identifier for the openid client." env:"CLIENT_ID"`
	ClientSecret     string `help:"The client secret for the openid client" env:"CLIENT_SECRET"`
	Issuer           string `help:"The openid issuer." env:"ISSUER"`
	RedirectURL      string `help:"The redirect URL used for callbacks." env:"REDIRECT_URL"`
	SessionSecretArn string `help:"The ARN of the secret used to sign sessions." env:"SESSION_SECRET_ARN"`
	WebsiteBucket    string `help:"The name of the website S3 bucket holding content to be served." env:"WEBSITE_BUCKET"`
}

API api related flags passing in env variables

func (*API) Valid

func (c *API) Valid() error

Valid validate our flags

Jump to

Keyboard shortcuts

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