Documentation
¶
Index ¶
- func AWSHostname(isGov bool) string
- func AddGroup(parent *cobra.Command, title string, cmds ...*cobra.Command)
- func Basename(str string) string
- func ExitOnErr(err error)
- func GenerateLoginURL(creds aws.Credentials, isGov bool) (url.URL, error)
- func GenerateTableHeaders(headers []string) []string
- func GetAllProfiles() ([]string, error)
- func GetConfigProfiles() ([]string, error)
- func GetCredentials(profile string) (aws.Credentials, error)
- func GetCredentialsProfiles() ([]string, error)
- func GetFederatedToken(u url.URL) (string, error)
- func GetFlagBool(cmd *cobra.Command, str string) (bool, error)
- func GetFlagString(cmd *cobra.Command, str string) (string, error)
- func OpenBrowser(url string) error
- func PRsToTable(headers []string, prList []*codecommit.GetPullRequestOutput) *pterm.TablePrinter
- func RemoveProfiles(profiles []string) error
- func Spinner[T any](startMsg string, closure func() (T, error)) (T, error)
- func StringifyCredentials(creds aws.Credentials) (string, error)
- func StringifySessionCredentials(creds aws.Credentials) (string, error)
- func WriteCredentials(section string, creds aws.Credentials) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AWSHostname ¶
func GenerateLoginURL ¶
func GenerateTableHeaders ¶
func GetAllProfiles ¶
func GetConfigProfiles ¶
func GetCredentials ¶
func GetCredentials(profile string) (aws.Credentials, error)
func GetCredentialsProfiles ¶
func OpenBrowser ¶
func PRsToTable ¶
func PRsToTable(headers []string, prList []*codecommit.GetPullRequestOutput) *pterm.TablePrinter
func RemoveProfiles ¶
func StringifyCredentials ¶
func StringifyCredentials(creds aws.Credentials) (string, error)
func StringifySessionCredentials ¶
func StringifySessionCredentials(creds aws.Credentials) (string, error)
func WriteCredentials ¶
func WriteCredentials(section string, creds aws.Credentials) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.