Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 341 - 350 of 455 for CTX (0.11 seconds)

  1. gorm.go

    	}
    
    	if config.Initialized {
    		tx = tx.getInstance()
    	}
    
    	return tx
    }
    
    // WithContext change current instance db's context to ctx
    func (db *DB) WithContext(ctx context.Context) *DB {
    	return db.Session(&Session{Context: ctx})
    }
    
    // Debug start debug mode
    func (db *DB) Debug() (tx *DB) {
    	tx = db.getInstance()
    	return tx.Session(&Session{
    		Logger: db.Logger.LogMode(logger.Info),
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  2. cmd/api-headers.go

    	if strings.Contains(objInfo.ETag, "-") && len(objInfo.Parts) > 0 {
    		w.Header()[xhttp.AmzMpPartsCount] = []string{strconv.Itoa(len(objInfo.Parts))}
    	}
    }
    
    // Write object header
    func setObjectHeaders(ctx context.Context, w http.ResponseWriter, objInfo ObjectInfo, rs *HTTPRangeSpec, opts ObjectOptions) (err error) {
    	// set common headers
    	setCommonHeaders(w)
    
    	// Set last modified time.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  3. cmd/metrics-v3-logger-webhook.go

    		"Total number of messages sent to this target",
    		allWebhookLabels...)
    )
    
    // loadLoggerWebhookMetrics - `MetricsLoaderFn` for logger webhook
    // such as failed messages and total messages.
    func loadLoggerWebhookMetrics(ctx context.Context, m MetricValues, c *metricsCache) error {
    	tgts := append(logger.SystemTargets(), logger.AuditTargets()...)
    	for _, t := range tgts {
    		labels := []string{nameL, t.String(), endpointL, t.Endpoint()}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue May 14 07:27:33 GMT 2024
    - 2K bytes
    - Click Count (0)
  4. docs/sts/web-identity.go

    		fmt.Println(err)
    		return
    	}
    
    	scopes := ddoc.ScopesSupported
    	if clientScopes != "" {
    		scopes = strings.Split(clientScopes, ",")
    	}
    
    	ctx := context.Background()
    
    	config := oauth2.Config{
    		ClientID:     clientID,
    		ClientSecret: clientSec,
    		Endpoint: oauth2.Endpoint{
    			AuthURL:  ddoc.AuthEndpoint,
    			TokenURL: ddoc.TokenEndpoint,
    		},
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri May 19 09:13:33 GMT 2023
    - 7.8K bytes
    - Click Count (0)
  5. tests/test_dependency_duplicates.py

                                "type": {"title": "Error Type", "type": "string"},
                                "input": {"title": "Input"},
                                "ctx": {"title": "Context", "type": "object"},
                            },
                        },
                    }
                },
            }
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  6. cmd/xl-storage_test.go

    	// create xlStorage test setup
    	xl, _, err := newXLStorageTestSetup(t)
    	if err != nil {
    		t.Fatalf("Unable to create xlStorage test setup, %s", err)
    	}
    	ctx := t.Context()
    
    	volume := "myvol-vol"
    	object := "my-object"
    	if err := xl.MakeVol(ctx, volume); err != nil {
    		t.Fatalf("Unable to create volume, %s", err)
    	}
    	var versions [50]string
    	for i := range versions {
    		versions[i] = uuid.New().String()
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 66K bytes
    - Click Count (0)
  7. internal/kms/config.go

    		go func() {
    			timer := time.NewTicker(10 * time.Second)
    			defer timer.Stop()
    			defaultKey := env.Get(EnvKESDefaultKey, "")
    			for {
    				select {
    				case <-ctx.Done():
    					return
    				case <-timer.C:
    					client.DescribeKey(ctx, defaultKey)
    				}
    			}
    		}()
    
    		return &KMS{
    			Type:       MinKES,
    			DefaultKey: env.Get(EnvKESDefaultKey, ""),
    			conn: &kesConn{
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 15K bytes
    - Click Count (0)
  8. cmd/storage-rest-server.go

    // CheckPartsHandler - check if a file parts exists.
    func (s *storageRESTServer) CheckPartsHandler(ctx context.Context, p *CheckPartsHandlerParams, out chan<- *CheckPartsResp) *grid.RemoteErr {
    	if !s.checkID(p.DiskID) {
    		return grid.NewRemoteErr(errDiskNotFound)
    	}
    	volume := p.Volume
    	filePath := p.FilePath
    
    	resp, err := s.getStorage().CheckParts(ctx, volume, filePath, p.FI)
    	if err != nil {
    		return grid.NewRemoteErr(err)
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue May 27 15:19:03 GMT 2025
    - 45.7K bytes
    - Click Count (0)
  9. internal/config/storageclass/storage-class.go

    	} else {
    		cfg.inlineBlock = 128 * humanize.KiByte
    	}
    
    	cfg.initialized = true
    
    	return cfg, nil
    }
    
    func configLogOnceIf(ctx context.Context, err error, id string, errKind ...any) {
    	logger.LogOnceIf(ctx, "config", err, id, errKind...)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  10. internal/grid/connection_test.go

    		gotCall <- struct{}{}
    		<-cleanReqs
    		return nil, nil
    	}
    	// 2: Also block, but with streaming.
    	h2 := StreamHandler{
    		Handle: func(ctx context.Context, payload []byte, request <-chan []byte, resp chan<- []byte) *RemoteErr {
    			gotCall <- struct{}{}
    			select {
    			case <-ctx.Done():
    				gotCall <- struct{}{}
    			case <-cleanReqs:
    				panic("should not be called")
    			}
    			return nil
    		},
    		OutCapacity: 1,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 5.9K bytes
    - Click Count (0)
Back to Top