config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Version The version of the CLI
	Version = "0.1.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	OrgDomain           string
	OIDCAppID           string
	FedAppID            string
	AWSIAMIdP           string
	AWSIAMRole          string
	AWSSessionDuration  int64
	Format              string
	Profile             string
	QRCode              bool
	AWSCredentials      string
	WriteAWSCredentials bool
	OpenBrowser         bool
	HTTPClient          *http.Client
}

Config A config object for the CLI

func NewConfig

func NewConfig() *Config

NewConfig Creates a new config gathering values in this order of precedence:

  1. CLI flags
  2. ENV variables
  3. .env file

func (*Config) CheckConfig

func (c *Config) CheckConfig() error

CheckConfig Checks that required configuration variables are set.

Jump to

Keyboard shortcuts

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