config

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "0.0.2"

Version The version of the CLI

Functions

This section is empty.

Types

type Config

type Config struct {
	OrgDomain      string
	OIDCAppID      string
	FedAppID       string
	AWSIAMIdP      string
	AWSIAMRole     string
	Format         string
	Profile        string
	QRCode         bool
	AWSCredentials string
	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