Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for mock (0.14 sec)

  1. 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
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  2. cmd/bucket-handlers.go

    		UserAgent:    r.UserAgent(),
    		Host:         handlers.GetSourceIP(r),
    	})
    }
    
    // PutBucketObjectLockConfigHandler - PUT Bucket object lock configuration.
    // ----------
    // Places an Object Lock configuration on the specified bucket. The rule
    // specified in the Object Lock configuration will be applied by default
    // to every new object placed in the specified bucket.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  3. cmd/api-errors.go

    	ErrObjectLockConfigurationNotFound: {
    		Code:           "ObjectLockConfigurationNotFoundError",
    		Description:    "Object Lock configuration does not exist for this bucket",
    		HTTPStatusCode: http.StatusNotFound,
    	},
    	ErrObjectLockConfigurationNotAllowed: {
    		Code:           "InvalidBucketState",
    		Description:    "Object Lock configuration cannot be enabled on existing buckets",
    		HTTPStatusCode: http.StatusConflict,
    	},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  4. docs/ru/docs/deployment/docker.md

        В ней будет создан файл `requirements.txt`
    
    3. На этом шаге установите Poetry.
    
    4. Скопируйте файлы `pyproject.toml` и `poetry.lock` в директорию `/tmp`.
    
        Поскольку название файла написано как `./poetry.lock*` (с `*` в конце), то ничего не сломается, если такой файл не будет найден.
    
    5. Создайте файл `requirements.txt`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 57.5K bytes
    - Viewed (0)
  5. tests/migrate_test.go

    			Migrator: m,
    		}
    	}
    	m := DB.Migrator()
    	mockM := wrapMockMigrator(m)
    
    	type NotTriggerUpdate struct {
    		ID  uint
    		F1  uint16
    		F2  uint32
    		F3  int
    		F4  int64
    		F5  string
    		F6  float32
    		F7  float64
    		F8  time.Time
    		F9  bool
    		F10 []byte
    	}
    
    	var err error
    	err = mockM.DropTable(&NotTriggerUpdate{})
    	AssertEqual(t, err, nil)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  6. cmd/peer-rest-server.go

    	listenRPC     = grid.NewStream[*grid.URLValues, grid.NoPayload, *grid.Bytes](grid.HandlerListen, grid.NewURLValues, nil, grid.NewBytes).WithOutCapacity(100)
    )
    
    // GetLocksHandler - returns list of lock from the server.
    func (s *peerRESTServer) GetLocksHandler(_ *grid.MSS) (*localLockMap, *grid.RemoteErr) {
    	res := globalLockServer.DupLockMap()
    	return &res, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  7. cmd/xl-storage.go

    		s.RUnlock()
    		return diskID, nil
    	}
    	s.RUnlock()
    
    	fi, err := s.checkFormatJSON()
    	if err != nil {
    		return "", err
    	}
    
    	if xioutil.SameFile(fi, fileInfo) && diskID != "" {
    		s.Lock()
    		// If the file has not changed, just return the cached diskID information.
    		s.formatLastCheck = time.Now()
    		s.Unlock()
    		return diskID, nil
    	}
    
    	b, err := os.ReadFile(s.formatFile)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  8. cmd/iam.go

    	}
    }
    
    // Initialized checks if IAM is initialized
    func (sys *IAMSys) Initialized() bool {
    	if sys == nil {
    		return false
    	}
    	sys.Lock()
    	defer sys.Unlock()
    	return sys.store != nil
    }
    
    // Load - loads all credentials, policies and policy mappings.
    func (sys *IAMSys) Load(ctx context.Context, firstTime bool) error {
    	loadStartTime := time.Now()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  9. tensorflow/c/c_api_test.cc

      int counter_;
    };
    
    // Helper macros for the TF_OperationGetAttr* tests.
    // TODO(ashankar): Use gmock matchers instead?
    // (https://github.com/google/googletest/blob/master/googlemock/docs/CookBook.md#writing-new-parameterized-matchers-quickly)
    // That will require setting up the tensorflow build with gmock.
    #define EXPECT_TF_META(attr_name, expected_list_size, expected_type, \
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  10. cmd/object-api-multipart_test.go

    	}
    
    	z := obj.(*erasureServerPools)
    	er := z.serverPools[0].sets[0]
    
    	erasureDisks := er.getDisks()
    	ridx := rand.Intn(len(erasureDisks))
    
    	z.serverPools[0].erasureDisksMu.Lock()
    	er.getDisks = func() []StorageAPI {
    		erasureDisks[ridx] = newNaughtyDisk(erasureDisks[ridx], nil, errFaultyDisk)
    		return erasureDisks
    	}
    	z.serverPools[0].erasureDisksMu.Unlock()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
Back to top