Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewWithOptions (0.23 sec)

  1. cmd/admin-handlers-users_test.go

    	s.TestSuiteCommon.RestartTestServer(c)
    
    	s.iamSetup(c)
    }
    
    func (s *TestSuiteIAM) getAdminClient(c *check, accessKey, secretKey, sessionToken string) *madmin.AdminClient {
    	madmClnt, err := madmin.NewWithOptions(s.endpoint, &madmin.Options{
    		Creds:  credentials.NewStaticV4(accessKey, secretKey, sessionToken),
    		Secure: s.secure,
    	})
    	if err != nil {
    		c.Fatalf("error creating user admin client: %s", err)
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 12 16:36:16 GMT 2024
    - 45.7K bytes
    - Viewed (0)
  2. cmd/sts-handlers_test.go

    	}
    
    	// Validate that the client from sts creds can access the bucket.
    	c.mustListObjects(ctx, minioClient, bucket)
    
    	// Create an madmin client with user creds
    	userAdmClient, err := madmin.NewWithOptions(s.endpoint, &madmin.Options{
    		Creds:  cr.NewStaticV4(value.AccessKeyID, value.SecretAccessKey, value.SessionToken),
    		Secure: s.secure,
    	})
    	if err != nil {
    		c.Fatalf("Err creating user admin client: %v", err)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
Back to top