Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 36 for Exp (4.23 sec)

  1. cmd/test-utils_test.go

    	}
    	if len(partSizes) > 1 {
    		asMultipart = true
    	}
    
    	checkRespErr := func(rec *httptest.ResponseRecorder, exp int) {
    		t.Helper()
    		if rec.Code != exp {
    			b, err := io.ReadAll(rec.Body)
    			t.Fatalf("Expected: %v, Got: %v, Body: %s, err: %v", exp, rec.Code, string(b), err)
    		}
    	}
    
    	if !asMultipart {
    		srcData := NewDummyDataGen(partSizes[0], 0)
    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. internal/bucket/lifecycle/expiration.go

    }
    
    // UnmarshalXML decodes delete marker boolean from the XML form.
    func (b *Boolean) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error {
    	var exp bool
    	err := d.DecodeElement(&exp, &startElement)
    	if err != nil {
    		return err
    	}
    	b.val = exp
    	b.set = true
    	return nil
    }
    
    // MarshalXML encodes expiration field into an XML form.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Feb 21 20:28:34 GMT 2024
    - 6.6K bytes
    - Viewed (1)
  3. internal/s3select/sql/statement.go

    	// Set table alias
    	stmt.tableAlias = selectAST.From.As
    	// Remove quotes from column aliases
    	if selectAST.Expression != nil {
    		for _, exp := range selectAST.Expression.Expressions {
    			if strings.HasSuffix(exp.As, "'") && strings.HasPrefix(exp.As, "'") && len(exp.As) >= 2 {
    				exp.As = exp.As[1 : len(exp.As)-1]
    			}
    		}
    	}
    	return
    }
    
    func validateTableName(from *TableExpression) error {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 09 17:19:11 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  4. cmd/object-api-utils.go

    	xioutil "github.com/minio/minio/internal/ioutil"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/pkg/v2/trie"
    	"github.com/minio/pkg/v2/wildcard"
    	"github.com/valyala/bytebufferpool"
    	"golang.org/x/exp/slices"
    )
    
    const (
    	// MinIO meta bucket.
    	minioMetaBucket = ".minio.sys"
    	// Multipart meta prefix.
    	mpartMetaPrefix = "multipart"
    	// MinIO Multipart meta prefix.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  5. cmd/bucket-replication.go

    	xhttp "github.com/minio/minio/internal/http"
    	xioutil "github.com/minio/minio/internal/ioutil"
    	"github.com/minio/minio/internal/logger"
    	"github.com/tinylib/msgp/msgp"
    	"github.com/zeebo/xxh3"
    	"golang.org/x/exp/maps"
    	"golang.org/x/exp/slices"
    )
    
    const (
    	throttleDeadline = 1 * time.Hour
    	// ReplicationReset has reset id and timestamp of last reset operation
    	ReplicationReset = "replication-reset"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  6. internal/bucket/lifecycle/lifecycle_test.go

    	// The earlier upcoming lifecycle event must be picked, i.e rule with id "Transition-10"
    	if exp := ExpectedExpiryTime(opts.ModTime, 10); exp != event.Due {
    		t.Fatalf("Expected due %v but got %v, ruleID=%v", exp, event.Due, event.RuleID)
    	}
    
    	// DelMarkerExpiration
    	lc = Lifecycle{
    		Rules: []Rule{
    			{
    				ID:     "delmarker-exp-20",
    				Status: "Enabled",
    				DelMarkerExpiration: DelMarkerExpiration{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  7. cmd/generic-handlers.go

    	"github.com/dustin/go-humanize"
    	"github.com/minio/minio-go/v7/pkg/s3utils"
    	"github.com/minio/minio-go/v7/pkg/set"
    	"github.com/minio/minio/internal/grid"
    	xnet "github.com/minio/pkg/v2/net"
    	"golang.org/x/exp/maps"
    	"golang.org/x/exp/slices"
    
    	"github.com/minio/minio/internal/amztime"
    	"github.com/minio/minio/internal/config/dns"
    	"github.com/minio/minio/internal/crypto"
    	xhttp "github.com/minio/minio/internal/http"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  8. cmd/site-replication.go

    	if err != nil {
    		return fmt.Errorf("STS credential could not be verified: %w", err)
    	}
    
    	mapClaims := claims.Map()
    	expiry, err := auth.ExpToInt64(mapClaims["exp"])
    	if err != nil {
    		return fmt.Errorf("Expiry claim was not found: %v: %w", mapClaims, err)
    	}
    
    	cred := auth.Credentials{
    		AccessKey:    stsCred.AccessKey,
    		SecretKey:    stsCred.SecretKey,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  9. cmd/metrics-v3-types.go

    package cmd
    
    import (
    	"context"
    	"fmt"
    	"strings"
    	"sync"
    
    	"github.com/minio/minio/internal/logger"
    	"github.com/pkg/errors"
    	"github.com/prometheus/client_golang/prometheus"
    	"golang.org/x/exp/slices"
    )
    
    type collectorPath string
    
    // metricPrefix converts a collector path to a metric name prefix. The path is
    // converted to snake-case (by replaced '/' and '-' with '_') and prefixed with
    // `minio_`.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:05:22 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  10. cmd/bucket-replication-metrics.go

    }
    
    // updateExponentialMovingAverage processes the measurements captured so far.
    func (m *rateMeasurement) updateExponentialMovingAverage(endTime time.Time) {
    	// Calculate aggregate avg bandwidth and exp window avg
    	m.lock.Lock()
    	defer func() {
    		m.startTime = endTime
    		m.lock.Unlock()
    	}()
    
    	if m.startTime.IsZero() {
    		return
    	}
    
    	if endTime.Before(m.startTime) {
    		return
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 14.2K bytes
    - Viewed (0)
Back to top