Documentation ¶
Index ¶
- Variables
- func AssumeRoleConfig(sessionFlags *SessionFlags, sess *session.Session) *aws.Config
- func DecryptWithKMS(kmsClient *kms.KMS, ciphertext string) ([]byte, error)
- func EncryptWithKMSAndSecretBox(kmsClient *kms.KMS, plaintext []byte, keyId string) (string, error)
- func FatalOnError(err error)
- func FatalOnErrorW(err error, msg string)
- func Fatalln(message string)
- func FlattenEnvVarMap(input map[string]interface{}) (map[string]string, error)
- func FlattenMap(input map[string]interface{}, transformKey func(string) string, ...) (map[string]string, error)
- func HandleInfoFlags(flags *InfoFlags)
- func HandleLogFlags(flags *LogFlags)
- func LoadJSON(filename string, res interface{}) error
- func NewConfig(region string) *aws.Config
- func NewSession(region string) (*session.Session, error)
- func OpenSession(sessionFlags *SessionFlags) (*session.Session, *aws.Config)
- func RefreshMap(src map[string]interface{}, state *RefreshState) (map[string]interface{}, error)
- func ReplaceAccountID(arn, accountID string) (string, error)
- func ReplaceAccountIDPtr(arn *string, accountID string) (*string, error)
- func STSFetchIdentityURL(identityURL string, maxAge time.Duration) (*sts.GetCallerIdentityOutput, error)
- func STSGetIdentityURL(stsClient *sts.STS) (string, error)
- func TransformKeyEnvVar(key string) string
- func VersionString() string
- type ARN
- type ConfigValues
- func (c *ConfigValues) Clear()
- func (c *ConfigValues) GenerateFromMap(src map[string]interface{}) (map[string]interface{}, error)
- func (c *ConfigValues) IsRefreshable() bool
- func (c *ConfigValues) Refresh(session *session.Session, conf *aws.Config, output interface{}) error
- func (c *ConfigValues) RefreshWithRetries(session *session.Session, conf *aws.Config, output interface{}) error
- func (c *ConfigValues) SetFromEnvironment() error
- func (c *ConfigValues) SetFromJSON(filename string) error
- func (c *ConfigValues) SetFromMap(m map[string]interface{}) error
- type InfoFlags
- type LogFlags
- type RefreshState
- type SessionFlags
- type SessionTokenProvider
- type Source
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string = "???" CommitHash string = "???" )
View Source
var SourceTypes = []string{"KMS", "SSM", "SECRETS_MANAGER", "FILE"}
Functions ¶
func AssumeRoleConfig ¶
func AssumeRoleConfig(sessionFlags *SessionFlags, sess *session.Session) *aws.Config
func FatalOnError ¶
func FatalOnError(err error)
func FatalOnErrorW ¶
func FlattenEnvVarMap ¶
func FlattenMap ¶
func HandleInfoFlags ¶
func HandleInfoFlags(flags *InfoFlags)
func HandleLogFlags ¶
func HandleLogFlags(flags *LogFlags)
func OpenSession ¶
func OpenSession(sessionFlags *SessionFlags) (*session.Session, *aws.Config)
func RefreshMap ¶
func RefreshMap(src map[string]interface{}, state *RefreshState) (map[string]interface{}, error)
func ReplaceAccountID ¶
func STSFetchIdentityURL ¶
func TransformKeyEnvVar ¶
func VersionString ¶
func VersionString() string
Types ¶
type ARN ¶
type ConfigValues ¶
type ConfigValues struct { Sources map[string][]Source Static map[string]interface{} MaxRetries int KeyPrefixes map[string]string ValuePrefixes map[string]string Settings map[string]string }
func NewConfigValues ¶
func NewConfigValues() *ConfigValues
func (*ConfigValues) Clear ¶
func (c *ConfigValues) Clear()
func (*ConfigValues) GenerateFromMap ¶
func (c *ConfigValues) GenerateFromMap(src map[string]interface{}) (map[string]interface{}, error)
func (*ConfigValues) IsRefreshable ¶
func (c *ConfigValues) IsRefreshable() bool
func (*ConfigValues) RefreshWithRetries ¶
func (*ConfigValues) SetFromEnvironment ¶
func (c *ConfigValues) SetFromEnvironment() error
func (*ConfigValues) SetFromJSON ¶
func (c *ConfigValues) SetFromJSON(filename string) error
func (*ConfigValues) SetFromMap ¶
func (c *ConfigValues) SetFromMap(m map[string]interface{}) error
type InfoFlags ¶
type InfoFlags struct {
Version *bool
}
func KingpinInfoFlags ¶
func KingpinInfoFlags() *InfoFlags
type LogFlags ¶
func KingpinLogFlags ¶
func KingpinLogFlags() *LogFlags
type RefreshState ¶
type SessionFlags ¶
type SessionFlags struct { RoleArn *string RoleExternalID *string RoleSessionName *string RolePolicy *string Region *string MFASerialNumber *string MFATokenCode *string Duration *time.Duration }
func HandleFlags ¶
func HandleFlags() *SessionFlags
func KingpinSessionFlags ¶
func KingpinSessionFlags() *SessionFlags
type SessionTokenProvider ¶
type SessionTokenProvider struct { SessionFlags *SessionFlags Session *session.Session }
func (*SessionTokenProvider) IsExpired ¶
func (p *SessionTokenProvider) IsExpired() bool
func (*SessionTokenProvider) Retrieve ¶
func (p *SessionTokenProvider) Retrieve() (credentials.Value, error)
Click to show internal directories.
Click to hide internal directories.