Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Stopel (0.24 sec)

  1. cmd/batch-expire.go

    	return objInfoCache(make(map[string]*ObjectInfo))
    }
    
    func (oiCache objInfoCache) Add(toDel ObjectToDelete, oi *ObjectInfo) {
    	oiCache[fmt.Sprintf("%s-%s", toDel.ObjectName, toDel.VersionID)] = oi
    }
    
    func (oiCache objInfoCache) Get(toDel ObjectToDelete) (*ObjectInfo, bool) {
    	oi, ok := oiCache[fmt.Sprintf("%s-%s", toDel.ObjectName, toDel.VersionID)]
    	return oi, ok
    }
    
    Go
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 21K bytes
    - Viewed (1)
  2. cmd/object-handlers-common.go

    }
    
    func deleteObjectVersions(ctx context.Context, o ObjectLayer, bucket string, toDel []ObjectToDelete, lcEvent lifecycle.Event) {
    	for remaining := toDel; len(remaining) > 0; toDel = remaining {
    		if len(toDel) > maxDeleteList {
    			remaining = toDel[maxDeleteList:]
    			toDel = toDel[:maxDeleteList]
    		} else {
    			remaining = nil
    		}
    		vc, _ := globalBucketVersioningSys.Get(bucket)
    Go
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_handling_errors/test_tutorial005.py

                        "type": "type_error.integer",
                    }
                ],
                "body": {"title": "towel", "size": "XL"},
            }
        )
    
    
    def test_post():
        data = {"title": "towel", "size": 5}
        response = client.post("/items/", json=data)
        assert response.status_code == 200, response.text
        assert response.json() == data
    
    
    def test_openapi_schema():
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/handling-errors.md

    ```Python hl_lines="14"
    {!../../../docs_src/handling_errors/tutorial005.py!}
    ```
    
    Теперь попробуйте отправить недействительный элемент, например:
    
    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    ```
    
    Вы получите ответ о том, что данные недействительны, содержащий следующее тело:
    
    ```JSON hl_lines="12-15"
    {
      "detail": [
        {
          "loc": [
            "body",
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/handling-errors.md

    ```Python hl_lines="14"
    {!../../../docs_src/handling_errors/tutorial005.py!}
    ```
    
    Now try sending an invalid item like:
    
    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    ```
    
    You will receive a response telling you that the data is invalid containing the received body:
    
    ```JSON hl_lines="12-15"
    {
      "detail": [
        {
          "loc": [
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/handling-errors.md

    Você pode utilizá-lo enquanto desenvolve seu app para conectar o *body* e debugá-lo, e assim retorná-lo ao usuário, etc.
    
    Tente enviar um item inválido como este:
    
    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    ```
    
    Você receberá uma *response* informando-o de que a data é inválida, e contendo o *body* recebido:
    
    ```JSON hl_lines="12-15"
    {
      "detail": [
        {
          "loc": [
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10K bytes
    - Viewed (0)
  7. docs/zh/docs/tutorial/handling-errors.md

    现在试着发送一个无效的 `item`,例如:
    
    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    
    ```
    
    收到的响应包含 `body` 信息,并说明数据是无效的:
    
    ```JSON hl_lines="12-15"
    {
      "detail": [
        {
          "loc": [
            "body",
            "size"
          ],
          "msg": "value is not a valid integer",
          "type": "type_error.integer"
        }
      ],
      "body": {
        "title": "towel",
        "size": "XL"
      }
    }
    
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  8. docs/em/docs/tutorial/handling-errors.md

    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    ```
    
    👆 🔜 📨 📨 💬 👆 👈 💽 ❌ ⚗ 📨 💪:
    
    ```JSON hl_lines="12-15"
    {
      "detail": [
        {
          "loc": [
            "body",
            "size"
          ],
          "msg": "value is not a valid integer",
          "type": "type_error.integer"
        }
      ],
      "body": {
        "title": "towel",
        "size": "XL"
      }
    }
    ```
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/handling-errors.md

    ```Python hl_lines="14"
    {!../../../docs_src/handling_errors/tutorial005.py!}
    ```
    
    Jetzt versuchen Sie, einen ungültigen Artikel zu senden:
    
    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    ```
    
    Sie erhalten eine Response, die Ihnen sagt, dass die Daten ungültig sind, und welche den empfangenen Body enthält.
    
    ```JSON hl_lines="12-15"
    {
      "detail": [
        {
    Plain Text
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Sat Mar 30 20:28:29 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  10. cmd/data-scanner.go

    			objectInfos = append(objectInfos, obj)
    			continue
    		}
    
    		toDel = append(toDel, ObjectToDelete{
    			ObjectV: ObjectV{
    				ObjectName: obj.Name,
    				VersionID:  obj.VersionID,
    			},
    		})
    	}
    
    	if len(toDel) > 0 {
    		expState.enqueueByNewerNoncurrent(i.bucket, toDel, event)
    	}
    	return objectInfos, nil
    }
    
    Go
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 17:45:03 GMT 2024
    - 47.8K bytes
    - Viewed (0)
Back to top