Versions in this module Expand all Collapse all v0 v0.0.1 Nov 23, 2020 Changes in this version + const DefaultAccessKey + const DefaultSecretKey + var DefaultCredentials = Credentials + var ErrInvalidAccessKeyLength = fmt.Errorf("access key must be minimum %v or more characters long", accessKeyMinLen) + var ErrInvalidDuration = errors.New("invalid token expiry") + var ErrInvalidSecretKeyLength = fmt.Errorf("secret key must be minimum %v or more characters long", secretKeyMinLen) + func ExpToInt64(expI interface{}) (expAt int64, err error) + func IsAccessKeyValid(accessKey string) bool + func IsSecretKeyValid(secretKey string) bool + type Credentials struct + AccessKey string + Expiration time.Time + Groups []string + ParentUser string + SecretKey string + SessionToken string + Status string + func CreateCredentials(accessKey, secretKey string) (cred Credentials, err error) + func GetNewCredentials() (cred Credentials, err error) + func GetNewCredentialsWithMetadata(m map[string]interface{}, tokenSecret string) (cred Credentials, err error) + func (cred Credentials) Equal(ccred Credentials) bool + func (cred Credentials) IsExpired() bool + func (cred Credentials) IsServiceAccount() bool + func (cred Credentials) IsTemp() bool + func (cred Credentials) IsValid() bool + func (cred Credentials) String() string