Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for Exp (0.19 sec)

  1. cmd/admin-handlers_test.go

    		sort.Slice(got, byResourceUID{got}.Less)
    		// printEntries(exp)
    		// printEntries(got)
    		for i, e := range exp {
    			if !e.Timestamp.Equal(got[i].Timestamp) {
    				return i, false
    			}
    			// Skip checking elapsed since it's time sensitive.
    			// if e.Elapsed != got[i].Elapsed {
    			// 	return false
    			// }
    			if e.Resource != got[i].Resource {
    				return i, false
    			}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  2. internal/auth/credentials.go

    	switch exp := expI.(type) {
    	case string:
    		expAt, err = strconv.ParseInt(exp, 10, 64)
    	case float64:
    		expAt, err = int64(exp), nil
    	case int64:
    		expAt, err = exp, nil
    	case int:
    		expAt, err = int64(exp), nil
    	case uint64:
    		expAt, err = int64(exp), nil
    	case uint:
    		expAt, err = int64(exp), nil
    	case json.Number:
    		expAt, err = exp.Int64()
    	case time.Duration:
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  3. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Feb 21 20:28:34 GMT 2024
    - 6.6K bytes
    - Viewed (1)
  4. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jan 09 17:19:11 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  5. cmd/tier-journal_test.go

    	}
    
    	mr := msgp.NewReader(&b)
    	for i, item := range readOldToNewCases {
    		var je jentry
    		err := je.DecodeMsg(mr)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if je != item.exp {
    			t.Errorf("Case %d: Expected: %v Got: %v", i, item.exp, je)
    		}
    	}
    }
    
    // TestJEntryWriteNewToOldMix1 - tests that adding the RemoteVersionID parameter
    // to the jentry struct does not cause unexpected errors when writing. This
    Go
    - Registered: Sun Feb 25 19:28:16 GMT 2024
    - Last Modified: Thu Jun 03 21:26:51 GMT 2021
    - 3.2K bytes
    - Viewed (0)
  6. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  7. cmd/data-usage-cache_test.go

    				h.add(sz)
    			}
    			got := h.toMap()
    			exp := test.want
    			// what is in exp is in got
    			for k := range exp {
    				if exp[k] != got[k] {
    					t.Fatalf("interval %s: Expected %d values but got %d values\n", k, exp[k], got[k])
    				}
    			}
    			// what is absent in exp is absent in got too
    			for k := range got {
    				if _, ok := exp[k]; !ok && got[k] > 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Jan 13 07:51:08 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  8. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  9. 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 Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  10. cmd/sts-handlers.go

    	clientCertificate   = "AssumeRoleWithCertificate"
    	customTokenIdentity = "AssumeRoleWithCustomToken"
    	assumeRole          = "AssumeRole"
    
    	stsRequestBodyLimit = 10 * (1 << 20) // 10 MiB
    
    	// JWT claim keys
    	expClaim = "exp"
    	subClaim = "sub"
    	audClaim = "aud"
    	issClaim = "iss"
    
    	// JWT claim to check the parent user
    	parentClaim = "parent"
    
    	// LDAP claim keys
    	ldapUser  = "ldapUser"     // this is a key name for a DN value
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 18:36:18 GMT 2024
    - 34.7K bytes
    - Viewed (2)
Back to top