config

package
v0.0.0-...-812e201 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AWSDefaultRegion = "us-east-1"

Functions

func AccountCachePath

func AccountCachePath(profileID string) string

func CachedAccounts

func CachedAccounts(profileID string) []messages.Account

func OIDCCachePath

func OIDCCachePath(profileID string) string

OIDCCachePath is the path we store the credentials initially registered with AWS pre authentication. These are not user credentials and cannot be used by themselves to gain account access.

func SocketPath

func SocketPath() string

Types

type Config

type Config struct {
	FidoKeyHandles    []string  `toml:"fido-key-handles"`
	AllowNoUserVerify bool      `toml:"allow-no-user-verify"`
	Profile           []Profile `toml:"profile"`
}

func LoadConfig

func LoadConfig() Config

func (*Config) FindProfile

func (c *Config) FindProfile(id string) (Profile, error)

type Profile

type Profile struct {
	ID       string `toml:"id"`
	StartUrl string `toml:"start-url"`

	// AWS Region. If empty string, will default to "us-east-1"
	Region string `toml:"region"`

	// Command to open url. Blank defaults to detected browser.
	BrowserCmd []string `toml:"browser-command"`
}

Jump to

Keyboard shortcuts

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