Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 66 for Unlock (0.21 sec)

  1. cmd/bucket-object-lock.go

    					return ObjectLocked{}
    				}
    
    				if !ret.RetainUntilDate.Before(t) {
    					return ObjectLocked{}
    				}
    				return nil
    			}
    			// https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-overview.html#object-lock-retention-modes
    			// If you try to delete objects protected by governance mode and have s3:BypassGovernanceRetention, the operation will succeed.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  2. cmd/erasure-healing_test.go

    		objLayer.(*erasureServerPools).serverPools[0].erasureDisksMu.Lock()
    		copy(disks, newDisks)
    		objLayer.(*erasureServerPools).serverPools[0].erasureDisksMu.Unlock()
    	}
    	getDisk := func(n int) StorageAPI {
    		objLayer.(*erasureServerPools).serverPools[0].erasureDisksMu.Lock()
    		disk := disks[n]
    		objLayer.(*erasureServerPools).serverPools[0].erasureDisksMu.Unlock()
    		return disk
    	}
    
    	// Remove 4 disks.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 47.6K bytes
    - Viewed (0)
  3. cmd/local-locker_test.go

    					}
    
    					toUnLock = toUnLock[:0]
    					for k, v := range l.lockMap {
    						for _, lock := range v {
    							toUnLock = append(toUnLock, dsync.LockArgs{Resources: []string{k}, UID: lock.UID, Owner: lock.Owner})
    						}
    					}
    					start = time.Now()
    					for _, lock := range toUnLock {
    						ok, err := l.RUnlock(context.TODO(), lock)
    						if err != nil || !ok {
    							t.Fatal(err)
    						}
    					}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 05 04:57:35 GMT 2023
    - 11.8K bytes
    - Viewed (0)
  4. cmd/utils.go

    }
    
    // Returns current profile data, returns error if there is no active
    // profiling in progress. Stops an active profile.
    func getProfileData() (map[string][]byte, error) {
    	globalProfilerMu.Lock()
    	defer globalProfilerMu.Unlock()
    
    	if len(globalProfiler) == 0 {
    		return nil, errors.New("profiler not enabled")
    	}
    
    	dst := make(map[string][]byte, len(globalProfiler))
    	for typ, prof := range globalProfiler {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  5. istioctl/pkg/waypoint/waypoint.go

    				if errors.IsNotFound(err) {
    					fmt.Fprintf(cmd.OutOrStdout(), "waypoint %v/%v not found\n", namespace, name)
    				} else {
    					mu.Lock()
    					multiErr = multierror.Append(multiErr, err)
    					mu.Unlock()
    				}
    			} else {
    				fmt.Fprintf(cmd.OutOrStdout(), "waypoint %v/%v deleted\n", namespace, name)
    			}
    		}(name)
    	}
    
    	wg.Wait()
    	return multiErr.ErrorOrNil()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 19:45:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  6. cmd/data-scanner.go

    	}
    }
    
    // Update the current settings and cycle all waiting.
    // Parameters are the same as in the constructor.
    func (d *dynamicSleeper) Update(factor float64, maxWait time.Duration) error {
    	d.mu.Lock()
    	defer d.mu.Unlock()
    	if math.Abs(d.factor-factor) < 1e-10 && d.maxSleep == maxWait {
    		return nil
    	}
    	// Update values and cycle waiting.
    	xioutil.SafeClose(d.cycle)
    	d.factor = factor
    	d.maxSleep = maxWait
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 47.6K bytes
    - Viewed (0)
  7. internal/bucket/object/lock/lock.go

    	AmzObjectLockRetainUntilDate     = "X-Amz-Object-Lock-Retain-Until-Date"
    	AmzObjectLockMode                = "X-Amz-Object-Lock-Mode"
    	AmzObjectLockLegalHold           = "X-Amz-Object-Lock-Legal-Hold"
    )
    
    var (
    	// ErrMalformedBucketObjectConfig -indicates that the bucket object lock config is malformed
    	ErrMalformedBucketObjectConfig = errors.New("invalid bucket object lock config")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  8. internal/bucket/object/lock/lock_test.go

    				"x-amz-object-lock-mode":              "governance",
    				"x-amz-object-lock-retain-until-date": "2020-02-01",
    			},
    			expected:        map[string]string{},
    			filterRetention: true,
    			filterLegalHold: true,
    		},
    		{
    			metadata: map[string]string{
    				"x-amz-object-lock-legal-hold":        "on",
    				"x-amz-object-lock-mode":              "governance",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  9. src/archive/tar/reader.go

    	return paxHdrs, nil
    }
    
    // readHeader reads the next block header and assumes that the underlying reader
    // is already aligned to a block boundary. It returns the raw block of the
    // header in case further processing is required.
    //
    // The err will be set to io.EOF only when one of the following occurs:
    //   - Exactly 0 bytes are read and EOF is hit.
    //   - Exactly 1 block of zeros is read and EOF is hit.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  10. cmd/object-api-interface.go

    	CreatedAt         time.Time // only for site replication
    	NoLock            bool      // does not lock the make bucket call if set to 'true'
    }
    
    // DeleteBucketOptions provides options for DeleteBucket calls.
    type DeleteBucketOptions struct {
    	NoLock     bool             // does not lock the delete bucket call if set to 'true'
    	NoRecreate bool             // do not recreate bucket on delete failures
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 17K bytes
    - Viewed (0)
Back to top