Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 39 of 39 for zeros (0.12 sec)

  1. internal/bucket/lifecycle/expiration.go

    )
    
    // ExpirationDays is a type alias to unmarshal Days in Expiration
    type ExpirationDays int
    
    // UnmarshalXML parses number of days from Expiration and validates if
    // greater than zero
    func (eDays *ExpirationDays) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error {
    	var numDays int
    	err := d.DecodeElement(&numDays, &startElement)
    	if err != nil {
    		return err
    	}
    	if numDays <= 0 {
    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)
  2. cmd/xl-storage-free-version_test.go

    	freeVersions, err = xl.listFreeVersions(newtierfi.Volume, newtierfi.Name)
    	if err != nil {
    		t.Fatalf("failed to list free versions %v", err)
    	}
    	if len(freeVersions) != 0 {
    		t.Fatalf("Expected zero free version but got %d", len(freeVersions))
    	}
    	report()
    
    	// Adding a free version to a version with no tiered content.
    	newfi := fi
    	newfi.SetTierFreeVersionID("00000000-0000-0000-0000-0000000000f3")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  3. internal/amztime/parse.go

    	// send the correct format.
    	http.TimeFormat,
    	"Mon, 2 Jan 2006 15:04:05 GMT",
    }
    
    // ParseHeader parses http.TimeFormat with an acceptable
    // extension for http.TimeFormat - return time might be zero
    // if the timeStr is invalid.
    func ParseHeader(timeStr string) (time.Time, error) {
    	for _, dateFormat := range httpTimeFormats {
    		t, err := time.Parse(dateFormat, timeStr)
    		if err == nil {
    			return t, nil
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  4. cmd/api-datatypes.go

    }
    
    // DeleteMarkerMTime is an embedded type containing time.Time for XML marshal
    type DeleteMarkerMTime struct {
    	time.Time
    }
    
    // MarshalXML encodes expiration date if it is non-zero and encodes
    // empty string otherwise
    func (t DeleteMarkerMTime) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error {
    	if t.Time.IsZero() {
    		return nil
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 03 09:28:52 GMT 2022
    - 3K bytes
    - Viewed (0)
  5. cmd/batch-expire_test.go

      prefix: myprefix # (Optional) Prefix under which this job will expire objects matching the rules below.
      rules:
        - type: object  # regular objects with zero or more older versions
          name: NAME # match object names that satisfy the wildcard expression.
          olderThan: 70h # match objects older than this value
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 3K bytes
    - Viewed (0)
  6. cmd/dynamic-timeouts.go

    // newDynamicTimeout returns a new dynamic timeout initialized with timeout value
    func newDynamicTimeout(timeout, minimum time.Duration) *dynamicTimeout {
    	if timeout <= 0 || minimum <= 0 {
    		panic("newDynamicTimeout: negative or zero timeout")
    	}
    	if minimum > timeout {
    		minimum = timeout
    	}
    	return &dynamicTimeout{timeout: int64(timeout), minimum: int64(minimum)}
    }
    
    // Timeout returns the current timeout value
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Aug 19 23:21:05 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  7. internal/logger/audit.go

    		tags := make(map[string]interface{}, len(reqInfo.tags))
    		for _, t := range reqInfo.tags {
    			tags[t.Key] = t.Val
    		}
    		entry.Tags = tags
    		// ignore cases for ttfb when its zero.
    		if timeToFirstByte != 0 {
    			entry.API.TimeToFirstByte = strconv.FormatInt(timeToFirstByte.Nanoseconds(), 10) + "ns"
    			entry.API.TimeToFirstByteInNS = strconv.FormatInt(timeToFirstByte.Nanoseconds(), 10)
    		}
    	} else {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  8. internal/pubsub/pubsub.go

    func (ps *PubSub[T, M]) Subscribers() int32 {
    	return atomic.LoadInt32(&ps.numSubscribers)
    }
    
    // New inits a PubSub system with a limit of maximum
    // subscribers unless zero is specified
    func New[T Maskable, M Maskable](maxSubscribers int32) *PubSub[T, M] {
    	return &PubSub[T, M]{maxSubscribers: maxSubscribers}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 16:57:30 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  9. cmd/erasure-coding.go

    func (e *Erasure) DecodeDataBlocks(data [][]byte) error {
    	isZero := 0
    	for _, b := range data {
    		if len(b) == 0 {
    			isZero++
    			break
    		}
    	}
    	if isZero == 0 || isZero == len(data) {
    		// If all are zero, payload is 0 bytes.
    		return nil
    	}
    	return e.encoder().ReconstructData(data)
    }
    
    // DecodeDataAndParityBlocks decodes the given erasure-coded data and verifies it.
    // It returns an error if the decoding failed.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 8.6K bytes
    - Viewed (0)
Back to top