Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 291 - 300 of 467 for ctx_ (0.04 seconds)

  1. cmd/endpoint-ellipses.go

    			return fmt.Errorf("all args must have ellipses for pool expansion (%w) args: %s", errInvalidArgument, args)
    		}
    		setArgs, err = GetAllSets(setDriveCount, arg)
    		if err != nil {
    			return err
    		}
    		ctxt.Layout.pools = append(ctxt.Layout.pools, poolDisksLayout{cmdline: arg, layout: setArgs})
    	}
    	return err
    }
    
    // CreateServerEndpoints - validates and creates new endpoints from input args, supports
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 14.7K bytes
    - Click Count (0)
  2. cmd/erasure-decode.go

    				}
    			}
    		} else if err != nil {
    			return err
    		}
    
    		if err = e.DecodeDataAndParityBlocks(ctx, bufs); err != nil {
    			return err
    		}
    
    		w := multiWriter{
    			writers:     writers,
    			writeQuorum: 1,
    			errs:        make([]error, len(writers)),
    		}
    
    		if err = w.Write(ctx, bufs); err != nil {
    			return err
    		}
    	}
    
    	return derr
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Aug 29 01:40:52 GMT 2024
    - 9.5K bytes
    - Click Count (0)
  3. cmd/bucket-replication-stats.go

    		Avg:  w.Avg,
    	}
    }
    
    func (r *ReplicationStats) collectWorkerMetrics(ctx context.Context) {
    	if r == nil {
    		return
    	}
    	for {
    		select {
    		case <-ctx.Done():
    			return
    		case <-r.wTimer.C:
    			r.wlock.Lock()
    			r.workers.update()
    			r.wlock.Unlock()
    		}
    	}
    }
    
    func (r *ReplicationStats) collectQueueMetrics(ctx context.Context) {
    	if r == nil {
    		return
    	}
    
    	for {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 13.6K bytes
    - Click Count (0)
  4. tests/test_generate_unique_id_function.py

                            "title": "ValidationError",
                            "required": ["loc", "msg", "type"],
                            "type": "object",
                            "properties": {
                                "ctx": {"title": "Context", "type": "object"},
                                "input": {"title": "Input"},
                                "loc": {
                                    "title": "Location",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 75K bytes
    - Click Count (0)
  5. tests/test_regex_deprecated_params.py

                    "type": "string_pattern_mismatch",
                    "loc": ["query", "q"],
                    "msg": "String should match pattern '^fixedquery$'",
                    "input": "nonregexquery",
                    "ctx": {"pattern": "^fixedquery$"},
                }
            ]
        }
    
    
    @needs_py310
    def test_openapi_schema():
        client = get_client()
        response = client.get("/openapi.json")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  6. cmd/config-current_test.go

    package cmd
    
    import (
    	"context"
    	"os"
    	"testing"
    
    	"github.com/minio/minio/internal/config"
    )
    
    func TestServerConfig(t *testing.T) {
    	ctx, cancel := context.WithCancel(t.Context())
    	defer cancel()
    
    	objLayer, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(fsDir)
    
    	if err = newTestConfig(globalMinioDefaultRegion, objLayer); err != nil {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  7. cmd/metacache-manager.go

    // checkMetacacheState should be used if data is not updating.
    // Should only be called if a failure occurred.
    func (o listPathOptions) checkMetacacheState(ctx context.Context, rpc *peerRESTClient) error {
    	// We operate on a copy...
    	o.Create = false
    	c, err := rpc.GetMetacacheListing(ctx, o)
    	if err != nil {
    		return err
    	}
    	cache := *c
    
    	if cache.status == scanStateNone || cache.fileNotFound {
    		return errFileNotFound
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 5.2K bytes
    - Click Count (0)
  8. cmd/encryption-v1.go

    	}
    }
    
    func newEncryptMetadata(ctx context.Context, kind crypto.Type, keyID string, key []byte, bucket, object string, metadata map[string]string, cryptoCtx kms.Context) (crypto.ObjectKey, error) {
    	var sealedKey crypto.SealedKey
    	switch kind {
    	case crypto.S3:
    		if GlobalKMS == nil {
    			return crypto.ObjectKey{}, errKMSNotConfigured
    		}
    		key, err := GlobalKMS.GenerateKey(ctx, &kms.GenerateKeyRequest{
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 38K bytes
    - Click Count (0)
  9. cmd/rebalance-admin.go

    	StoppedAt time.Time             `json:"stoppedAt"`
    }
    
    func rebalanceStatus(ctx context.Context, z *erasureServerPools) (r rebalanceAdminStatus, err error) {
    	// Load latest rebalance status
    	meta := &rebalanceMeta{}
    	err = meta.load(ctx, z.serverPools[0])
    	if err != nil {
    		return r, err
    	}
    
    	// Compute disk usage percentage
    	si := z.StorageInfo(ctx, true)
    	diskStats := make([]struct {
    		AvailableSpace uint64
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  10. internal/kms/secret-key.go

    type secretKey struct {
    	keyID string
    	key   []byte
    }
    
    // Version returns the version of the builtin KMS.
    func (secretKey) Version(ctx context.Context) (string, error) { return "v1", nil }
    
    // APIs returns an error since the builtin KMS does not provide a list of APIs.
    func (secretKey) APIs(ctx context.Context) ([]madmin.KMSAPI, error) {
    	return nil, ErrNotSupported
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Apr 21 16:23:51 GMT 2025
    - 8.4K bytes
    - Click Count (0)
Back to Top