Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for path2BucketObject (0.15 sec)

  1. cmd/ftp-server-driver.go

    	defer stopFn(0, err)
    
    	if objPath == SlashSeparator {
    		return &minioFileInfo{
    			p:     SlashSeparator,
    			isDir: true,
    		}, nil
    	}
    
    	bucket, object := path2BucketObject(objPath)
    	if bucket == "" {
    		return nil, errors.New("bucket name cannot be empty")
    	}
    
    	clnt, err := driver.getMinIOClient(ctx)
    	if err != nil {
    		return nil, err
    	}
    
    	if object == "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 14K bytes
    - Viewed (0)
  2. cmd/sftp-server-driver.go

    			}
    		}
    		return err
    
    	case "Remove":
    		bucket, object := path2BucketObject(r.Filepath)
    		if bucket == "" {
    			return errors.New("bucket name cannot be empty")
    		}
    
    		return clnt.RemoveObject(context.Background(), bucket, object, minio.RemoveObjectOptions{})
    
    	case "Mkdir":
    		bucket, prefix := path2BucketObject(r.Filepath)
    		if bucket == "" {
    			return errors.New("bucket name cannot be empty")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 05 07:51:13 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. cmd/utils_test.go

    			bucket: "",
    			object: "",
    		},
    	}
    
    	// Validate all test cases.
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			bucketName, objectName := path2BucketObject(testCase.path)
    			if bucketName != testCase.bucket {
    				t.Errorf("failed expected bucket name \"%s\", got \"%s\"", testCase.bucket, bucketName)
    			}
    			if objectName != testCase.object {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Feb 23 21:28:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. cmd/generic-handlers.go

    // browser requests.
    func getRedirectLocation(r *http.Request) *xnet.URL {
    	resource, err := getResource(r.URL.Path, r.Host, globalDomainNames)
    	if err != nil {
    		return nil
    	}
    	bucket, _ := path2BucketObject(resource)
    	_, redirect := redirectPrefixes[path.Clean(bucket)]
    	if redirect || resource == slashSeparator {
    		if globalBrowserRedirectURL != nil {
    			return globalBrowserRedirectURL
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  5. cmd/utils.go

    func request2BucketObjectName(r *http.Request) (bucketName, objectName string) {
    	path, err := getResource(r.URL.Path, r.Host, globalDomainNames)
    	if err != nil {
    		logger.CriticalIf(GlobalContext, err)
    	}
    
    	return path2BucketObject(path)
    }
    
    // path2BucketObjectWithBasePath returns bucket and prefix, if any,
    // of a 'path'. basePath is trimmed from the front of the 'path'.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  6. cmd/handler-utils.go

    			apiErr.Description = fmt.Sprintf("%s: %v", apiErr.Description, err)
    
    			writeErrorResponse(r.Context(), w, apiErr, r.URL)
    			return
    		}
    
    		bucket, _ := path2BucketObject(resource)
    
    		meta, err := globalBucketMetadataSys.Get(bucket) // check if this bucket exists.
    		countBktStat := bucket != "" && bucket != minioReservedBucket && err == nil && !meta.Created.IsZero()
    		if countBktStat {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  7. cmd/object-multipart-handlers.go

    	if u, err := url.Parse(cpSrcPath); err == nil {
    		vid = strings.TrimSpace(u.Query().Get(xhttp.VersionID))
    		// Note that url.Parse does the unescaping
    		cpSrcPath = u.Path
    	}
    
    	srcBucket, srcObject := path2BucketObject(cpSrcPath)
    	// If source object is empty or bucket is empty, reply back invalid copy source.
    	if srcObject == "" || srcBucket == "" {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidCopySource), r.URL)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Aug 31 18:25:48 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool-decom.go

    		// Decommission not in progress.
    		return nil
    	}
    
    	decomBuckets := make([]decomBucketInfo, len(p.Pools[idx].Decommission.QueuedBuckets))
    	for i := range decomBuckets {
    		bucket, prefix := path2BucketObject(p.Pools[idx].Decommission.QueuedBuckets[i])
    		decomBuckets[i] = decomBucketInfo{
    			Name:   bucket,
    			Prefix: prefix,
    		}
    	}
    
    	return decomBuckets
    }
    
    //msgp:ignore decomBucketInfo
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  9. cmd/data-scanner.go

    			bucket:    "",
    			strict:    false,
    		}
    
    		healObjectsPrefix := color.Green("healObjects:")
    		for k := range abandonedChildren {
    			if !f.shouldHeal() {
    				break
    			}
    			bucket, prefix := path2BucketObject(k)
    			stopFn := globalScannerMetrics.time(scannerMetricCheckMissing)
    			f.updateCurrentPath(k)
    
    			if bucket != resolver.bucket {
    				// Bucket might be missing as well with abandoned children.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  10. cmd/object-handlers.go

    	if u, err := url.Parse(cpSrcPath); err == nil {
    		vid = strings.TrimSpace(u.Query().Get(xhttp.VersionID))
    		// Note that url.Parse does the unescaping
    		cpSrcPath = u.Path
    	}
    
    	srcBucket, srcObject := path2BucketObject(cpSrcPath)
    	// If source object is empty or bucket is empty, reply back invalid copy source.
    	if srcObject == "" || srcBucket == "" {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidCopySource), r.URL)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top