Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for createCredential (0.29 sec)

  1. internal/auth/credentials.go

    func GetNewCredentials() (cred Credentials, err error) {
    	return GetNewCredentialsWithMetadata(map[string]interface{}{}, "")
    }
    
    // CreateCredentials returns new credential with the given access key and secret key.
    // Error is returned if given access key or secret key are invalid length.
    func CreateCredentials(accessKey, secretKey string) (cred Credentials, err error) {
    	if !IsAccessKeyValid(accessKey) {
    		return cred, ErrInvalidAccessKeyLength
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 28 17:14:16 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. cmd/common-main.go

    		user, password = globalServerCtxt.RootUser, globalServerCtxt.RootPwd
    		hasCredentials = true
    	}
    	if hasCredentials {
    		cred, err := auth.CreateCredentials(user, password)
    		if err != nil {
    			if legacyCredentials {
    				logger.Fatal(config.ErrInvalidCredentials(err),
    					"Unable to validate credentials inherited from the shell environment")
    			} else {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 31.7K bytes
    - Viewed (0)
Back to top