Search Options

Results per page
Sort
Preferred Languages
Advance

Results 361 - 370 of 526 for mock (0.03 sec)

  1. internal/bucket/lifecycle/lifecycle_test.go

    	"github.com/google/uuid"
    	"github.com/minio/minio/internal/bucket/object/lock"
    	xhttp "github.com/minio/minio/internal/http"
    )
    
    func TestParseAndValidateLifecycleConfig(t *testing.T) {
    	testCases := []struct {
    		inputConfig           string
    		expectedParsingErr    error
    		expectedValidationErr error
    		lr                    lock.Retention
    	}{
    		{ // Valid lifecycle config
    			inputConfig: `<LifecycleConfiguration>
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  2. internal/config/storageclass/storage-class.go

    			Value:         "",
    			HiddenIfEmpty: true,
    		},
    	}
    )
    
    // StorageClass - holds storage class information
    type StorageClass struct {
    	Parity int
    }
    
    // ConfigLock is a global lock for storage-class config
    var ConfigLock sync.RWMutex
    
    // Config storage class configuration
    type Config struct {
    	Standard    StorageClass `json:"standard"`
    	RRS         StorageClass `json:"rrs"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/AbstractRepositoryMetadata.java

            if (metadataFile.length() == 0) {
                if (!metadataFile.delete()) {
                    // sleep for 10ms just in case this is windows holding a file lock
                    try {
                        Thread.sleep(10);
                    } catch (InterruptedException e) {
                        // ignore
                    }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. cmd/test-utils_test.go

    }
    
    // sets globalObjectAPI to `nil`.
    func resetGlobalObjectAPI() {
    	globalObjLayerMutex.Lock()
    	globalObjectAPI = nil
    	globalObjLayerMutex.Unlock()
    }
    
    // reset the value of the Global server config.
    // set it to `nil`.
    func resetGlobalConfig() {
    	// hold the mutex lock before a new config is assigned.
    	globalServerConfigMu.Lock()
    	// Save the loaded config globally.
    	globalServerConfig = nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  5. internal/config/heal/heal.go

    func (opts Config) GetWorkers() int {
    	configMutex.RLock()
    	defer configMutex.RUnlock()
    	return opts.DriveWorkers
    }
    
    // Update updates opts with nopts
    func (opts *Config) Update(nopts Config) {
    	configMutex.Lock()
    	defer configMutex.Unlock()
    
    	opts.Bitrot = nopts.Bitrot
    	opts.IOCount = nopts.IOCount
    	opts.Sleep = nopts.Sleep
    	opts.DriveWorkers = nopts.DriveWorkers
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

      protected void shutDown() throws Exception {}
    
      /**
       * Invoked to request the service to stop.
       *
       * <p>By default this method does nothing.
       *
       * <p>Currently, this method is invoked while holding a lock. If an implementation of this method
       * blocks, it can prevent this service from changing state. If you need to performing a blocking
       * operation in order to trigger shutdown, consider instead registering a listener and
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/util/transport/Transport.java

            Exception ex0 = null;
    
            try {
                /* We cannot synchronize (run_thread) here or the caller's
                 * thread.wait( timeout ) cannot reaquire the lock and
                 * return which would render the timeout effectively useless.
                 */
                doConnect();
            } catch( Exception ex ) {
                ex0 = ex; // Defer to below where we're locked
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 9K bytes
    - Viewed (0)
  8. docs/em/docs/deployment/docker.md

    1๏ธโƒฃ. ๐Ÿ‘‰ ๐Ÿฅ‡ โ–ถ๏ธ, โšซ๏ธ ๐ŸŒŸ `requirements-stage`.
    
    2๏ธโƒฃ. โš’ `/tmp` โฎ๏ธ ๐Ÿ‘ท ๐Ÿ“.
    
        ๐Ÿ“ฅ ๐ŸŒโ” ๐Ÿ‘ฅ ๐Ÿ”œ ๐Ÿ— ๐Ÿ“ `requirements.txt`
    
    3๏ธโƒฃ. โŽ ๐ŸŽถ ๐Ÿ‘‰ โ˜ โ–ถ๏ธ.
    
    4๏ธโƒฃ. ๐Ÿ“ `pyproject.toml` &amp; `poetry.lock` ๐Ÿ“ `/tmp` ๐Ÿ“.
    
        โ†ฉ๏ธ โšซ๏ธ โš™๏ธ `./poetry.lock*` (โ–ถ๏ธ โฎ๏ธ `*`), โšซ๏ธ ๐Ÿ† ๐Ÿšซ ๐Ÿ’ฅ ๐Ÿšฅ ๐Ÿ‘ˆ ๐Ÿ“ ๐Ÿšซ ๐Ÿ’ช.
    
    5๏ธโƒฃ. ๐Ÿ— `requirements.txt` ๐Ÿ“.
    
    6๏ธโƒฃ. ๐Ÿ‘‰ ๐Ÿ โ–ถ๏ธ, ๐Ÿ•ณ ๐Ÿ“ฅ ๐Ÿ”œ ๐Ÿ›ก ๐Ÿ ๐Ÿ“ฆ ๐Ÿ–ผ.
    
    7๏ธโƒฃ. โš’ โฎ๏ธ ๐Ÿ‘ท ๐Ÿ“ `/code`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 12 21:47:53 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  9. cmd/object_api_suite_test.go

    	globalCompressConfigMu.Lock()
    	globalCompressConfig.Enabled = false
    	globalCompressConfigMu.Unlock()
    
    	globalAutoEncryption = true
    	KMS, err := kms.ParseSecretKey("my-minio-key:5lF+0pJM0OWwlQrvK2S/I7W9mO4a6rJJI7wzj7v09cw=")
    	if err != nil {
    		t.Fatal(err)
    	}
    	GlobalKMS = KMS
    }
    
    func resetCompressEncryption() {
    	// Reset...
    	globalCompressConfigMu.Lock()
    	globalCompressConfig.Enabled = false
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 02 15:13:05 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/body-nested-models.md

    {!../../docs_src/body_nested_models/tutorial004.py!}
    ```
    
    ใ“ใ‚Œใฏ **FastAPI** ใŒไปฅไธ‹ใฎใ‚ˆใ†ใชใƒœใƒ‡ใ‚ฃใ‚’ๆœŸๅพ…ใ™ใ‚‹ใ“ใจใ‚’ๆ„ๅ‘ณใ—ใพใ™:
    
    ```JSON
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2,
        "tags": ["rock", "metal", "bar"],
        "image": {
            "url": "http://example.com/baz.jpg",
            "name": "The Foo live"
        }
    }
    ```
    
    ็นฐใ‚Š่ฟ”ใ—ใซใชใ‚Šใพใ™ใŒใ€**FastAPI** ใ‚’ไฝฟ็”จใ—ใฆใ€ใใฎๅฎฃ่จ€ใ‚’่กŒใ†ใ ใ‘ใงไปฅไธ‹ใฎใ‚ˆใ†ใชๆฉๆตใ‚’ๅ—ใ‘ใ‚‰ใ‚Œใพใ™:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top