Documentation
¶
Index ¶
- Variables
- func ARNtoShortName(arn string) string
- func CacheClear() error
- func CacheShow() (string, error)
- func ConfigPath() string
- func GetCred(providerName string, roleARN string) error
- func RunSetup(providerName string) error
- type AWSCredentials
- type AWSCredentialsJSON
- type OIDCClient
- type SingleCache
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("cache entry not found")
Functions ¶
func ARNtoShortName ¶
func CacheClear ¶
func CacheClear() error
func ConfigPath ¶
func ConfigPath() string
Types ¶
type AWSCredentials ¶
type AWSCredentials struct { AWSAccessKey string AWSSecretKey string AWSSessionToken string AWSSecurityToken string PrincipalARN string Expires time.Time }
func GetCredentialsWithOIDC ¶
func GetCredentialsWithOIDC(client *OIDCClient, idToken string, roleARN string, durationSeconds int64) (*AWSCredentials, error)
func (AWSCredentials) Valid ¶
func (cred AWSCredentials) Valid() bool
type AWSCredentialsJSON ¶
type OIDCClient ¶
type OIDCClient struct {
// contains filtered or unexported fields
}
type SingleCache ¶
type SingleCache struct { Id string `json:"id"` OidcTokens map[string]string `json:"oidc"` AwsTokens map[string]string `json:"aws"` // contains filtered or unexported fields }
var SingletonCache SingleCache
func (*SingleCache) Load ¶
func (cache *SingleCache) Load() error
func (*SingleCache) Save ¶
func (cache *SingleCache) Save() error
Click to show internal directories.
Click to hide internal directories.