config

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSSOToken

func GetSSOToken(files []fs.DirEntry, ssoConfig SSOConfig, homedir string) (string, error)

GetSSOToken loops through all the caches files and extracts a valid token to use

Types

type SSOCacheConfig

type SSOCacheConfig struct {
	StartURL    string `json:"startUrl"`
	Region      string `json:"region"`
	AccessToken string `json:"accessToken"`
	ExpiresAt   string `json:"expiresAt"`
}

type SSOConfig

type SSOConfig struct {
	StartURL  string
	Region    string
	AccountID string
	RoleName  string
}

func GetSSOConfig

func GetSSOConfig(profile string, homedir string) (*SSOConfig, error)

GetSSOConfig retrieves the SSO configuration for a given AWS profile

Jump to

Keyboard shortcuts

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