Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for getObject (0.18 sec)

  1. cmd/admin-handlers-users_test.go

    	policy := "mypolicy-test-user-update"
    	policyBytes := []byte(fmt.Sprintf(`{
     "Version": "2012-10-17",
     "Statement": [
      {
       "Effect": "Allow",
       "Action": [
        "s3:PutObject",
        "s3:GetObject",
        "s3:ListBucket"
       ],
       "Resource": [
        "arn:aws:s3:::%s/*"
       ]
      }
     ]
    }`, bucket))
    	err = s.adm.AddCannedPolicy(ctx, policy, policyBytes)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 12 16:36:16 GMT 2024
    - 45.7K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    		case "HeadObject":
    			// Register HeadObject handler.
    			bucket.Methods("Head").Path("/{object:.+}").HandlerFunc(api.HeadObjectHandler)
    		case "GetObject":
    			// Register GetObject handler.
    			bucket.Methods(http.MethodGet).Path("/{object:.+}").HandlerFunc(api.GetObjectHandler)
    		case "PutObject":
    			// Register PutObject handler.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  3. cmd/bucket-policy-handlers_test.go

    	bucketPolicyTemplateWithoutVersion := `{"Version":"","Statement":[{"Sid":"","Effect":"Allow","Principal":{"AWS":["*"]},"Action":["s3:GetBucketLocation","s3:ListBucket"],"Resource":["arn:aws:s3:::%s"]},{"Sid":"","Effect":"Allow","Principal":{"AWS":["*"]},"Action":["s3:GetObject"],"Resource":["arn:aws:s3:::%s/this*"]}]}`
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  4. cmd/admin-handlers-users-race_test.go

    	// Create a policy policy
    	policy := "mypolicy"
    	policyBytes := []byte(fmt.Sprintf(`{
     "Version": "2012-10-17",
     "Statement": [
      {
       "Effect": "Allow",
       "Action": [
        "s3:PutObject",
        "s3:GetObject",
        "s3:ListBucket"
       ],
       "Resource": [
        "arn:aws:s3:::%s/*"
       ]
      }
     ]
    }`, bucket))
    	err = s.adm.AddCannedPolicy(ctx, policy, policyBytes)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  5. cmd/metrics-v2_test.go

    import (
    	"testing"
    	"time"
    
    	"github.com/prometheus/client_golang/prometheus"
    )
    
    func TestGetHistogramMetrics(t *testing.T) {
    	histBuckets := []float64{0.05, 0.1, 0.25, 0.5, 0.75}
    	labels := []string{"GetObject", "PutObject", "CopyObject", "CompleteMultipartUpload"}
    	ttfbHist := prometheus.NewHistogramVec(
    		prometheus.HistogramOpts{
    			Name:    "s3_ttfb_seconds",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  6. cmd/warm-backend-gcs.go

    	// GCS storage decompresses a gzipped object by default and returns the data.
    	// Refer to https://cloud.google.com/storage/docs/transcoding#decompressive_transcoding
    	// Need to set `Accept-Encoding` header to `gzip` when issuing a GetObject call, to be able
    	// to download the object in compressed state.
    	// Calling ReadCompressed with true accomplishes that.
    	object := gcs.client.Bucket(gcs.Bucket).Object(gcs.getDest(key)).ReadCompressed(true)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  7. cmd/object-handlers_test.go

    		}
    	}
    }
    
    // Wrapper for calling GetObject API handler tests for both Erasure multiple disks and FS single drive setup.
    func TestAPIGetObjectHandler(t *testing.T) {
    	globalPolicySys = NewPolicySys()
    	defer func() { globalPolicySys = nil }()
    
    	defer DetectTestLeak(t)()
    	ExecExtendedObjectLayerAPITest(t, testAPIGetObjectHandler, []string{"GetObject"})
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  8. cmd/policy_test.go

    			Effect:    string(policy.Allow),
    			Principal: miniogopolicy.User{AWS: set.CreateStringSet("*")},
    			Resources: set.CreateStringSet(policy.NewResource(bucketName + "/" + prefix).String()),
    			Actions:   set.CreateStringSet("s3:GetObject"),
    		},
    	}
    }
    
    func TestPolicyToBucketAccessPolicy(t *testing.T) {
    	case1Policy := &policy.BucketPolicy{
    		Version: policy.DefaultVersion,
    		Statements: []policy.BPStatement{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  9. cmd/perf-tests.go

    				return
    			}
    			for {
    				if objCountPerThread[i] == j {
    					j = 0
    				}
    				tmpObjName := pathJoin(objNamePrefix, fmt.Sprintf("%d/%d", i, j))
    				t := time.Now()
    
    				r, _, _, err := c.GetObject(downloadsCtx, opts.bucketName, tmpObjName, gopts)
    				if err != nil {
    					errResp, ok := err.(minio.ErrorResponse)
    					if ok && errResp.StatusCode == http.StatusNotFound {
    						continue
    					}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  10. cmd/bucket-replication.go

    	}
    	// Make sure to match ETag when proxying.
    	if err = gopts.SetMatchETag(oi.ETag); err != nil {
    		return nil, proxy, err
    	}
    	c := minio.Core{Client: tgt.Client}
    	obj, _, h, err := c.GetObject(ctx, tgt.Bucket, object, gopts)
    	if err != nil {
    		return nil, proxy, err
    	}
    	closeReader := func() { obj.Close() }
    	reader, err := fn(obj, h, closeReader)
    	if err != nil {
    		return nil, proxy, err
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
Back to top