Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GenerateCredentials (0.07 sec)

  1. cmd/admin-handlers-users_test.go

    		c.Fatalf("unable to delete svc acc: %v", err)
    	}
    	c.mustNotListObjects(ctx, svcClient, bucket)
    }
    
    func mustGenerateCredentials(c *check) (string, string) {
    	c.Helper()
    	ak, sk, err := auth.GenerateCredentials()
    	if err != nil {
    		c.Fatalf("unable to generate credentials: %v", err)
    	}
    	return ak, sk
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  2. cmd/iam.go

    	var accessKey, secretKey string
    	var err error
    	if len(opts.accessKey) > 0 || len(opts.secretKey) > 0 {
    		accessKey, secretKey = opts.accessKey, opts.secretKey
    	} else {
    		accessKey, secretKey, err = auth.GenerateCredentials()
    		if err != nil {
    			return auth.Credentials{}, time.Time{}, err
    		}
    	}
    	cred, err := auth.CreateNewCredentialsWithMetadata(accessKey, secretKey, m, secretKey)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
Back to top