Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 347 for contexto (0.16 sec)

  1. docs/pt/docs/advanced/events.md

    ```Python
    with open("file.txt") as file:
        file.read()
    ```
    
    Nas versões mais recentes de Python, há também um **gerenciador de contexto assíncrono**. Você o usaria com `async with`:
    
    ```Python
    async with lifespan(app):
        await do_stuff()
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  2. cmd/bucket-lifecycle.go

    // storage specified by the transition ARN, the metadata is left behind on source cluster and original content
    // is moved to the transition tier. Note that in the case of encrypted objects, entire encrypted stream is moved
    // to the transition tier without decrypting or re-encrypting.
    func transitionObject(ctx context.Context, objectAPI ObjectLayer, oi ObjectInfo, lae lcAuditEvent) (err error) {
    	defer func() {
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  3. cmd/metrics-v3-handler.go

    	innerHandler := h.handle(pathComponents, isListingRequest, buckets)
    
    	// Add tracing to the prom. handler
    	tracedHandler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if ok {
    			tc.FuncName = "handler.MetricsV3"
    			tc.ResponseRecorder.LogErrBody = true
    		}
    
    		innerHandler.ServeHTTP(w, r)
    	})
    
    	// Add authentication
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 17:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  4. .github/workflows/test.yml

      schedule:
        # cron every week on monday
        - cron: "0 0 * * 1"
    
    jobs:
      lint:
        runs-on: ubuntu-latest
        steps:
          - name: Dump GitHub context
            env:
              GITHUB_CONTEXT: ${{ toJson(github) }}
            run: echo "$GITHUB_CONTEXT"
          - uses: actions/checkout@v4
          - name: Set up Python
            uses: actions/setup-python@v5
            with:
              python-version: "3.11"
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 4.4K bytes
    - Viewed (2)
  5. cmd/test-utils_test.go

    	globalIAMSys.Init(ctx, obj, globalEtcdClient, 2*time.Second)
    	return obj, fsDirs[0], nil
    }
    
    func prepareErasureSets32(ctx context.Context) (ObjectLayer, []string, error) {
    	return prepareErasure(ctx, 32)
    }
    
    func prepareErasure(ctx context.Context, nDisks int) (ObjectLayer, []string, error) {
    	fsDirs, err := getRandomDisks(nDisks)
    	if err != nil {
    		return nil, nil, err
    	}
    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)
  6. cmd/consolelogger.go

    // the console logging pub sub system
    func NewConsoleLogger(ctx context.Context, w io.Writer) *HTTPConsoleLoggerSys {
    	return &HTTPConsoleLoggerSys{
    		pubsub:  pubsub.New[log.Info, madmin.LogMask](8),
    		console: console.New(w),
    		logBuf:  ring.New(defaultLogBufferCount),
    	}
    }
    
    // IsOnline always true in case of console logger
    func (sys *HTTPConsoleLoggerSys) IsOnline(_ context.Context) bool {
    	return true
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  7. cmd/object-api-listobjects_test.go

    		{testBuckets[5], "201910/foo/bar/xl.meta/1.txt", "content", nil},
    		{testBuckets[6], "aaa", "content", nil},
    		{testBuckets[6], "bbb_aaa", "content", nil},
    		{testBuckets[6], "bbb_aaa", "content", nil},
    		{testBuckets[6], "ccc", "content", nil},
    	}
    	for _, object := range testObjects {
    		md5Bytes := md5.Sum([]byte(object.content))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  8. cmd/metrics-v2.go

    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if ok {
    			tc.FuncName = funcName
    			tc.ResponseRecorder.LogErrBody = true
    		}
    
    		mfs, err := gatherers.Gather()
    		if err != nil && len(mfs) == 0 {
    			writeErrorResponseJSON(r.Context(), w, toAdminAPIErr(r.Context(), err), r.URL)
    			return
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  9. cmd/erasure-metadata.go

    }
    
    // pickValidFileInfo - picks one valid FileInfo content and returns from a
    // slice of FileInfo.
    func pickValidFileInfo(ctx context.Context, metaArr []FileInfo, modTime time.Time, etag string, quorum int) (FileInfo, error) {
    	return findFileInfoInQuorum(ctx, metaArr, modTime, etag, quorum)
    }
    
    // writeUniqueFileInfo - writes unique `xl.meta` content for each disk concurrently.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  10. cmd/object-handlers_test.go

    	res, err := obj.NewMultipartUpload(context.Background(), bucketName, testObject, opts)
    	if err != nil {
    		// Failed to create NewMultipartUpload, abort.
    		t.Fatalf("MinIO %s : <ERROR>  %s", instanceType, err)
    	}
    	uploadID := res.UploadID
    	uploadIDCopy := uploadID
    
    	// create an object Part, will be used to test list object parts.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
Back to top