Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IsValidAccessKey = regexp.MustCompile(`^[a-zA-Z0-9\\-\\.\\_\\~]{5,20}$`)
IsValidAccessKey - validate access key.
View Source
var IsValidSecretKey = regexp.MustCompile(`^.{8,40}$`)
IsValidSecretKey - validate secret key.
Functions ¶
func GetCredential ¶
func GetCredential(accessKey string) (credential common.Credential, err error)
func GetCredentialByUserId ¶
func GetCredentialByUserId(userId string) (credential common.Credential, err error)
func GetKeysByUid ¶
func GetKeysByUid(uid string) (credentials []common.Credential, err error)
Types ¶
type IamClient ¶ added in v1.1.3
type IamClient interface { GetKeysByUid(string) ([]common.Credential, error) GetCredential(string) (common.Credential, error) }
Click to show internal directories.
Click to hide internal directories.