Documentation
¶
Index ¶
- Constants
- func Decrypt(s string, keyring []byte) ([]byte, error)
- func GetOwnerAccountFromEnv() (accountId string, err error)
- func GetRegionFromEnv() (region string, err error)
- func PKCS5UnPadding(origData []byte) []byte
- func ParseOwnerAccountId() (string, error)
- func ParseRegion() (string, error)
- func ParseRegionFromMeta() (string, error)
- type AKInfo
Constants ¶
View Source
const ( ConfigPath = "/var/addon/token-config" StsTokenTimeLayout = "2006-01-02T15:04:05Z" )
Variables ¶
This section is empty.
Functions ¶
func GetOwnerAccountFromEnv ¶
func GetRegionFromEnv ¶
func PKCS5UnPadding ¶
func ParseOwnerAccountId ¶
func ParseRegion ¶
func ParseRegionFromMeta ¶
Types ¶
type AKInfo ¶
type AKInfo struct { AccessKeyId string `json:"access.key.id"` AccessKeySecret string `json:"access.key.secret"` SecurityToken string `json:"security.token"` Expiration string `json:"expiration"` Keyring string `json:"keyring"` }
func ParseAKInfoFromMeta ¶
Click to show internal directories.
Click to hide internal directories.