Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mustHeadObject (0.08 sec)

  1. cmd/admin-handlers-users_test.go

    	}
    	defer r.Close()
    
    	_, err = io.Copy(io.Discard, r)
    	if err != nil {
    		c.Fatalf("user was unable to download the object: %v", err)
    	}
    }
    
    func (c *check) mustHeadObject(ctx context.Context, client *minio.Client, bucket, object string, tagCount int) {
    	c.Helper()
    
    	oinfo, err := client.StatObject(ctx, bucket, object, minio.StatObjectOptions{})
    	if err != nil {
    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/sts-handlers_test.go

    		c.Fatalf("Error initializing client: %v", err)
    	}
    
    	// Validate sts creds can access the object
    	c.mustPutObjectWithTags(ctx, minioClient, bucket, object)
    	c.mustGetObject(ctx, minioClient, bucket, object)
    	c.mustHeadObject(ctx, minioClient, bucket, object, 2)
    
    	// Validate that the client can remove objects
    	if err = minioClient.RemoveObjectTagging(ctx, bucket, object, minio.RemoveObjectTaggingOptions{}); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 97.1K bytes
    - Viewed (0)
Back to top