Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 857 for Nil$ (0.04 sec)

  1. cmd/object-api-utils.go

    			size, err := strconv.ParseInt(sizeStr, 10, 64)
    			if err != nil {
    				return -1, errObjectTampered
    			}
    			return size, nil
    		}
    		actualSize, err := o.DecryptedSize()
    		if err != nil {
    			return -1, err
    		}
    		if (actualSize == 0) && (actualSize != o.Size) {
    			return -1, errObjectTampered
    		}
    		return actualSize, nil
    	}
    	return o.Size, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  2. docs/sts/client-grants.go

    	if err != nil {
    		return nil, err
    	}
    	req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
    	req.SetBasicAuth(clientID, clientSecret)
    	t := &http.Transport{
    		TLSClientConfig: &tls.Config{
    			InsecureSkipVerify: true,
    		},
    	}
    	hclient := http.Client{
    		Transport: t,
    	}
    	resp, err := hclient.Do(req)
    	if err != nil {
    		return nil, err
    	}
    	defer resp.Body.Close()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  3. cmd/config-current.go

    			return err
    		}
    	case config.APISubSys:
    		if _, err := api.LookupConfig(s[config.APISubSys][config.Default]); err != nil {
    			return err
    		}
    	case config.BatchSubSys:
    		if _, err := batch.LookupConfig(s[config.BatchSubSys][config.Default]); err != nil {
    			return err
    		}
    	case config.StorageClassSubSys:
    		if objAPI == nil {
    			return errServerNotInitialized
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 18:23:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  4. internal/store/queuestore.go

    	files, err := os.ReadDir(store.directory)
    	if err != nil {
    		return nil, err
    	}
    
    	// Sort the entries.
    	sort.Slice(files, func(i, j int) bool {
    		ii, err := files[i].Info()
    		if err != nil {
    			return false
    		}
    		ji, err := files[j].Info()
    		if err != nil {
    			return true
    		}
    		return ii.ModTime().Before(ji.ModTime())
    	})
    
    	return files, nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. callbacks/delete.go

    					return
    				}
    			}
    		}
    
    	}
    }
    
    func Delete(config *Config) func(db *gorm.DB) {
    	supportReturning := utils.Contains(config.DeleteClauses, "RETURNING")
    
    	return func(db *gorm.DB) {
    		if db.Error != nil {
    			return
    		}
    
    		if db.Statement.Schema != nil {
    			for _, c := range db.Statement.Schema.DeleteClauses {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Feb 25 02:48:23 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  6. cmd/erasure_test.go

    	for i := range diskPaths {
    		disks[i], diskPaths[i], err = newXLStorageTestSetup(tb)
    		if err != nil {
    			return nil, err
    		}
    		err = disks[i].MakeVol(context.Background(), "testbucket")
    		if err != nil {
    			return nil, err
    		}
    	}
    	return &erasureTestSetup{dataBlocks, parityBlocks, blockSize, diskPaths, disks}, nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 25 19:37:26 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  7. cmd/bucket-handlers_test.go

    	nilObject := ""
    
    	nilReq, err := newTestSignedRequestV4(http.MethodPost, getDeleteMultipleObjectsURL("", nilBucket), 0, nil, "", "", nil)
    	if err != nil {
    		t.Errorf("MinIO %s: Failed to create HTTP request for testing the response when object Layer is set to `nil`.", instanceType)
    	}
    	// execute the object layer set to `nil` test.
    	// `ExecObjectLayerAPINilTest` manages the operation.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  8. cmd/prepare-storage.go

    	storageDisks, errs := initStorageDisksWithErrors(endpoints, storageOpts{cleanUp: true, healthCheck: true})
    
    	if err := checkDiskFatalErrs(errs); err != nil {
    		return nil, nil, err
    	}
    
    	defer func() {
    		if err == nil && format != nil {
    			// Assign globalDeploymentID() on first run for the
    			// minio server managing the first disk
    			globalDeploymentIDPtr.Store(&format.ID)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. cmd/kms-handlers.go

    	if objectAPI == nil {
    		return
    	}
    
    	if GlobalKMS == nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrKMSNotConfigured), r.URL)
    		return
    	}
    
    	metrics, err := GlobalKMS.Metrics(ctx)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    	if res, err := json.Marshal(metrics); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  10. internal/config/crypto.go

    		AssociatedData: associatedData,
    	})
    	if err != nil {
    		return nil, err
    	}
    	stream, err := metadata.Algorithm.Stream(key)
    	if err != nil {
    		return nil, err
    	}
    	if stream.NonceSize() != len(metadata.Nonce) {
    		return nil, sio.NotAuthentic
    	}
    	return stream.DecryptReader(ciphertext, metadata.Nonce, nil), nil
    }
    
    type encryptedObject struct {
    	KeyID  string `json:"keyid"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top