Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AccountCache map[string]*pkg.LoadedProfile
Functions ¶
func AppHomePath ¶
func AppHomePath() string
Return the path to the base dir of the application config/cache
func ClearCache ¶
func ClearCache()
func ExitOnError ¶
func ExitOnError(err error)
func ExitWithError ¶
func PanicOnError ¶
func PanicOnError(err error)
Types ¶
type Credential ¶
type Credentials ¶
type Credentials struct {
Credentials map[string]*Credential
// contains filtered or unexported fields
}
func NewCredentials ¶
func NewCredentials(data *ini.File) Credentials
func ReadCredentials ¶
func ReadCredentials() *Credentials
func (Credentials) Add ¶
func (c Credentials) Add(name string, credential *Credential)
func (Credentials) Delete ¶
func (c Credentials) Delete(name string)
func (Credentials) Load ¶
func (c Credentials) Load(section *ini.Section)
func (Credentials) Save ¶
func (c Credentials) Save()
type Profile ¶
type Profile struct {
Profile string `ini:"roller_profile,omitempty"`
Account string `ini:"roller_account"`
Role string `ini:"roller_role"`
Region string `ini:"region,omitempty"`
Roller bool `ini:"roller"`
RoleArn string `ini:"role_arn,omitempty"`
TTL string `ini:"roller_ttl,omitempty"`
}
func (Profile) GenerateName ¶
func (Profile) ParseRoleArn ¶
type SerialisedCache ¶
type SerialisedCache struct {
ValidUntil time.Time
Data *[]pkg.LoadedProfile
}
Click to show internal directories.
Click to hide internal directories.