Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 75 for deleteOption (0.07 sec)

  1. cmd/erasure-healing_test.go

    		if err != nil {
    			t.Fatalf("Failed to getLatestFileInfo - %v", err)
    		}
    
    		for i := 0; i < nfi.Erasure.ParityBlocks; i++ {
    			erasureDisks[i].Delete(t.Context(), bucket, pathJoin(object, xlStorageFormatFile), DeleteOptions{
    				Recursive: false,
    				Immediate: false,
    			})
    		}
    
    		// Try healing now, it should heal the content properly.
    		_, err = objLayer.HealObject(ctx, bucket, object, "", hopts)
    		if err != nil {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 48.5K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/lifecycle_test.go

    			objectName:     "foxdir/fooobject/foo.txt",
    			objectModTime:  time.Now().UTC().Add(-10 * 24 * time.Hour), // Created 10 days ago
    			expectedAction: DeleteAction,
    		},
    		// Too early to remove (test Days)
    		{
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 55.5K bytes
    - Viewed (0)
  3. cmd/storage-interface.go

    	// Metadata operations
    	DeleteVersion(ctx context.Context, volume, path string, fi FileInfo, forceDelMarker bool, opts DeleteOptions) error
    	DeleteVersions(ctx context.Context, volume string, versions []FileInfoVersions, opts DeleteOptions) []error
    	DeleteBulk(ctx context.Context, volume string, paths ...string) error
    	WriteMetadata(ctx context.Context, origvolume, volume, path string, fi FileInfo) error
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Apr 25 05:41:04 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  4. cmd/storage-datatypes.go

    	"github.com/minio/minio/internal/grid"
    	xioutil "github.com/minio/minio/internal/ioutil"
    )
    
    //msgp:clearomitted
    
    //go:generate msgp -file=$GOFILE
    
    // DeleteOptions represents the disk level delete options available for the APIs
    type DeleteOptions struct {
    	BaseOptions
    	Recursive bool `msg:"r"`
    	Immediate bool `msg:"i"`
    	UndoWrite bool `msg:"u"`
    	// OldDataDir of the previous object
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  5. cmd/xl-storage_windows_test.go

    			if err != nil && test.pass {
    				t.Error(err)
    			} else if err == nil && !test.pass {
    				t.Error(err)
    			}
    			fs.Delete(context.Background(), "voldir", test.objName, DeleteOptions{
    				Recursive: false,
    				Immediate: false,
    			})
    		})
    	}
    }
    
    // Test to validate xlStorage behavior on windows when a non-final path component is a file.
    func TestUNCPathENOTDIR(t *testing.T) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Nov 29 06:35:16 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. CHANGELOG/CHANGELOG-1.15.md

    * Add `Option` field to the admission webhook `AdmissionReview` API that provides the operation options (e.g. `DeleteOption` or `CreateOption`) for the operation being performed. ([#77563](https://github.com/kubernetes/kubernetes/pull/77563), [@jpbetz](https://github.com/jpbetz))
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Thu May 05 13:44:43 UTC 2022
    - 278.9K bytes
    - Viewed (0)
  7. cmd/storage-rest-client.go

    		UpdateOpts: opts,
    		FI:         fi,
    	})
    	return toStorageErr(err)
    }
    
    func (client *storageRESTClient) DeleteVersion(ctx context.Context, volume, path string, fi FileInfo, forceDelMarker bool, opts DeleteOptions) (err error) {
    	ctx, cancel := context.WithTimeout(ctx, globalDriveConfig.GetMaxTimeout())
    	defer cancel()
    
    	_, err = storageDeleteVersionRPC.Call(ctx, client.gridConn, &DeleteVersionHandlerParams{
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 08 02:38:41 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  8. cmd/xl-storage_test.go

    			Recursive: false,
    			Immediate: false,
    		}); err != errFileAccessDenied {
    			t.Errorf("expected: %s, got: %s", errFileAccessDenied, err)
    		}
    	}
    
    	// TestXLStorage for delete on an removed disk.
    	// should fail with disk not found.
    	err = xlStorageDeletedStorage.Delete(t.Context(), "del-vol", "my-file", DeleteOptions{
    		Recursive: false,
    		Immediate: false,
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 66K bytes
    - Viewed (0)
  9. cmd/xl-storage-disk-id-check.go

    		return err
    	}
    	defer done(0, &err)
    
    	return p.storage.DeleteBulk(ctx, volume, paths...)
    }
    
    func (p *xlStorageDiskIDCheck) Delete(ctx context.Context, volume string, path string, deleteOpts DeleteOptions) (err error) {
    	ctx, done, err := p.TrackDiskHealth(ctx, storageMetricDelete, volume, path)
    	if err != nil {
    		return err
    	}
    	defer done(0, &err)
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Apr 25 05:41:04 UTC 2025
    - 34.5K bytes
    - Viewed (0)
  10. cmd/mrf.go

    		}
    		err = loadMRF(rc, m.opCh)
    		if err != nil {
    			continue
    		}
    		// finally delete the file after processing mrf entries
    		localDrive.Delete(GlobalContext, minioMetaBucket, pathJoin(healMRFDir, "list.bin"), DeleteOptions{})
    		break
    	}
    }
    
    var healSleeper = newDynamicSleeper(5, time.Second, false)
    
    // healRoutine listens to new disks reconnection events and
    // issues healing requests for queued objects belonging to the
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue May 27 15:19:03 UTC 2025
    - 6.5K bytes
    - Viewed (0)
Back to top