Documentation ¶
Index ¶
- func EC2Role(url string) string
- func Fatal_error(msg string, e error)
- func GenerateRandomBytes(n int) ([]byte, error)
- func GenerateRandomString(s int) string
- func Get_token_from_vault(vault_url string, pkcs7 string, role string, nonce string) []byte
- func HttpGet(url string) []byte
- func Read_file(path string) []byte
- type AuthRequest
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EC2Role ¶
get the role from the iam profile url should generally be: http://169.254.169.254/2016-09-02/meta-data/iam/info
func Fatal_error ¶
func GenerateRandomBytes ¶
GenerateRandomBytes returns securely generated random bytes. It will log an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func GenerateRandomString ¶
GenerateRandomString returns a URL-safe, base64 encoded securely generated random string.
func Get_token_from_vault ¶
POSTS the url vault-server/auth/aws-ec2/login with identity_doc
Types ¶
type AuthRequest ¶
Click to show internal directories.
Click to hide internal directories.