Documentation
¶
Index ¶
- Constants
- func AccountIdToInt64(a string) (int64, error)
- func AccountIdToString(a int64) (string, error)
- func EnsureDirExists(filename string) error
- func GetHomePath(path string) string
- func MakeRoleARN(account int64, name string) string
- func MakeRoleARNs(account, name string) string
- func MakeUserARN(account int64, name string) string
- func ParseRoleARN(arn string) (int64, string, error)
- func ParseTimeString(t string) (int64, error)
- func ParseUserARN(arn string) (int64, string, error)
- func SetLogger(l *logrus.Logger)
- func StrListContains(str string, list []string) bool
- func TimeRemain(expires int64, space bool) (string, error)
- type HandleUrl
- type UrlAction
Constants ¶
const MAX_AWS_ACCOUNTID = 999999999999
Variables ¶
This section is empty.
Functions ¶
func AccountIdToInt64 ¶ added in v1.7.4
AccountIdToInt64 returns an int64 version of AWS AccountID in base10
func AccountIdToString ¶
AccountIdToString returns a string version of AWS AccountID
func EnsureDirExists ¶
ensures the given directory exists for the filename used by JsonStore and InsecureStore
func GetHomePath ¶
GetHomePath returns the absolute path of the provided path with the first ~ replaced with the location of the users home directory and the path rewritten for the host operating system
func MakeRoleARN ¶
MakeRoleARN create an IAM Role ARN using an int64 for the account
func MakeRoleARNs ¶ added in v1.7.4
MakeRoleARNs creates an IAM Role ARN using a string for the account and role
func MakeUserARN ¶ added in v1.8.0
MakeUserARN create an IAM User ARN using an int64 for the account
func ParseRoleARN ¶
ParseRoleARN parses an ARN representing a role in long or short format
func ParseTimeString ¶
ParseTimeString converts a standard time string to Unix Epoch
func ParseUserARN ¶ added in v1.8.0
ParseUserARN parses an ARN representing a user in long or short format
func StrListContains ¶ added in v1.8.1
StrListContains returns if `str` is in the `list`