Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 200 for Action (0.23 sec)

  1. internal/bucket/lifecycle/lifecycle.go

    	TransitionPending = "pending"
    )
    
    // Action represents a delete action or other transition
    // actions that will be implemented later.
    type Action int
    
    //go:generate stringer -type Action $GOFILE
    
    const (
    	// NoneAction means no action required after evaluating lifecycle rules
    	NoneAction Action = iota
    	// DeleteAction means the object needs to be removed after evaluating lifecycle rules
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 17K bytes
    - Viewed (0)
  2. cmd/sts-handlers.go

    		return
    	}
    
    	action := r.Form.Get(stsAction)
    	switch action {
    	case assumeRole:
    	default:
    		writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue, fmt.Errorf("Unsupported action %s", action))
    		return
    	}
    
    	ctx = newContext(r, w, action)
    
    	// Validate the authentication result here so that failures will be audit-logged.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 18:36:18 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  3. cmd/data-scanner.go

    // If no metadata is supplied, -1 is returned if no action is taken.
    func (i *scannerItem) applyActions(ctx context.Context, o ObjectLayer, oi ObjectInfo, sizeS *sizeSummary) (objDeleted bool, size int64) {
    	done := globalScannerMetrics.time(scannerMetricILM)
    	var action lifecycle.Action
    	action, size = i.applyLifecycle(ctx, o, oi)
    	done()
    
    	// Note: objDeleted is true if and only if action ==
    	// lifecycle.DeleteAllVersionsAction
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 47.4K bytes
    - Viewed (0)
  4. cmd/admin-handlers-users_test.go

    	policyBytes := []byte(`{
     "Version": "2012-10-17",
     "Statement": [
      {
       "Effect": "Deny",
       "Action": [
        "admin:CreateServiceAccount"
       ]
      }
     ]
    }`)
    
    	newPolicyBytes := []byte(`{
     "Version": "2012-10-17",
     "Statement": [
      {
       "Effect": "Allow",
       "Action": [
        "s3:ListBucket"
       ],
       "Resource": [
        "arn:aws:s3:::testbucket/*"
       ]
      }
     ]
    }`)
    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)
  5. cmd/bucket-policy-handlers_test.go

    `{"Version":"2012-10-17","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*"]}]}`
    
    	bucketPolicyTemplateWithoutVersion := `{"Version":"","Statement":[{"Sid":"","Effect":"Allow","Principal":{"AWS":["*"]},"Action":["s3:GetBucketLocation","s3:ListBucket"],"Resource":["arn:aws:s3:::%s"]},{"Sid"...
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  6. internal/bucket/lifecycle/lifecycle_test.go

    	evt := lc.eval(obj1, now)
    	if evt.Action != TransitionAction {
    		t.Fatalf("Expected action: %s but got %s", TransitionAction, evt.Action)
    	}
    	if evt.StorageClass != "TIER-1" {
    		t.Fatalf("Expected TIER-1 but got %s", evt.StorageClass)
    	}
    
    	evt = lc.eval(obj2, now)
    	if evt.Action != TransitionVersionAction {
    		t.Fatalf("Expected action: %s but got %s", TransitionVersionAction, evt.Action)
    	}
    	if evt.StorageClass != "TIER-2" {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 45.6K bytes
    - Viewed (0)
  7. cmd/bucket-listobjects-handlers.go

    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    	var checkObjMeta metaCheckFn
    	if metadata {
    		checkObjMeta = func(name string, action policy.Action) (s3Err APIErrorCode) {
    			return checkRequestAuthType(ctx, r, action, bucket, name)
    		}
    	}
    	urlValues := r.Form
    
    	// Extract all the listBucketVersions query params to their native values.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  8. cmd/s3-zip-handlers.go

    			//   error.
    			// * if you don’t have the s3:ListBucket
    			//   permission, Amazon S3 will return an HTTP
    			//   status code 403 ("access denied") error.`
    			if globalPolicySys.IsAllowed(policy.BucketPolicyArgs{
    				Action:          policy.ListBucketAction,
    				BucketName:      bucket,
    				ConditionValues: getConditionValues(r, "", auth.AnonymousCredentials),
    				IsOwner:         false,
    			}) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 09 10:41:25 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  9. cmd/metacache-server-pool.go

    		if o.Lifecycle != nil {
    			evt := evalActionFromLifecycle(ctx, *o.Lifecycle, o.Retention, o.Replication.Config, objInfo)
    			if evt.Action.Delete() {
    				globalExpiryState.enqueueByDays(objInfo, evt, lcEventSrc_s3ListObjects)
    				if !evt.Action.DeleteRestored() {
    					continue
    				} // queue version for replication upon expired restored copies if needed.
    			}
    		}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  10. cmd/post-policy_test.go

    	policy = fmt.Sprintf(policy, dates...)
    
    	region := "us-east-1"
    	// Create a new POST request with success_action_redirect field specified
    	req, perr := newPostRequestV4Generic("", bucketName, keyName, []byte("objData"),
    		credentials.AccessKey, credentials.SecretKey, region, curTime,
    		[]byte(policy), map[string]string{"success_action_redirect": redirectURL.String()}, false, false, false)
    
    	if perr != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
Back to top