Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for element (0.49 sec)

  1. internal/bucket/lifecycle/rule.go

    			if buf.Len() > 0 {
    				buf.WriteString("&")
    			}
    			buf.WriteString(t.String())
    		}
    		return buf.String()
    	}
    	return ""
    }
    
    // Validate - validates the rule element
    func (r Rule) Validate() error {
    	if err := r.validateID(); err != nil {
    		return err
    	}
    	if err := r.validateStatus(); err != nil {
    		return err
    	}
    	if err := r.validateExpiration(); err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/delmarker-expiration.go

    	Days    int      `xml:"Days,omitempty"`
    }
    
    // Empty returns if a DelMarkerExpiration XML element is empty.
    // Used to detect if lifecycle.Rule contained a DelMarkerExpiration element.
    func (de DelMarkerExpiration) Empty() bool {
    	return de.Days == 0
    }
    
    // UnmarshalXML decodes a single XML element into a DelMarkerExpiration value
    func (de *DelMarkerExpiration) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  3. internal/logger/target/console/console.go

    	trace := make([]string, traceLength)
    
    	// Add a sequence number and formatting for each stack trace
    	// No formatting is required for the first entry
    	for i, element := range entry.Trace.Source {
    		trace[i] = fmt.Sprintf("%8v: %s", traceLength-i, element)
    	}
    
    	tagString := ""
    	for key, value := range entry.Trace.Variables {
    		if value != "" {
    			if tagString != "" {
    				tagString += ", "
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  4. cmd/api-errors.go

    		apiErr = ErrEventNotification
    	case *event.ErrInvalidARN:
    		apiErr = ErrARNNotification
    	case *event.ErrARNNotFound:
    		apiErr = ErrARNNotification
    	case *levent.ErrInvalidARN:
    		apiErr = ErrLambdaARNInvalid
    	case *levent.ErrARNNotFound:
    		apiErr = ErrLambdaARNNotFound
    	case *event.ErrUnknownRegion:
    		apiErr = ErrRegionNotification
    	case *event.ErrInvalidFilterName:
    		apiErr = ErrFilterNameInvalid
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (6)
  5. cmd/metacache-entries.go

    		}
    	}
    	m.o = dst
    }
    
    // filterRecursiveEntries will keep entries only with the prefix that doesn't contain separator.
    // This can be used to remove recursive listings.
    // To return root elements only set prefix to an empty string.
    // Order is preserved, but the underlying slice is modified.
    func (m *metaCacheEntriesSorted) filterRecursiveEntries(prefix, separator string) {
    	dst := m.o[:0]
    	if prefix != "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  6. cmd/net_test.go

    		},
    		// With a list of only one element nothing to sort.
    		{
    			ipList:       []string{"hostname"},
    			sortedIPList: []string{"hostname"},
    		},
    		// With a list of only one element nothing to sort.
    		{
    			ipList:       []string{"127.0.0.1"},
    			sortedIPList: []string{"127.0.0.1"},
    		},
    		// Non parsable ip is assumed to be hostame and gets preserved
    		// as the left most elements, regardless of IP based sorting.
    		{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 08:43:09 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  7. internal/bucket/lifecycle/lifecycle.go

    	switch start.Name.Local {
    	case "LifecycleConfiguration", "BucketLifecycleConfiguration":
    	default:
    		return xml.UnmarshalError(fmt.Sprintf("expected element type <LifecycleConfiguration>/<BucketLifecycleConfiguration> but have <%s>",
    			start.Name.Local))
    	}
    	for {
    		// Read tokens from the XML document in a stream.
    		t, err := d.Token()
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  8. cmd/erasure.go

    // Get an aggregated storage info across all disks.
    func getStorageInfo(disks []StorageAPI, endpoints []Endpoint, metrics bool) StorageInfo {
    	disksInfo := getDisksInfo(disks, endpoints, metrics)
    
    	// Sort so that the first element is the smallest.
    	sort.Slice(disksInfo, func(i, j int) bool {
    		return disksInfo[i].TotalSpace < disksInfo[j].TotalSpace
    	})
    
    	storageInfo := StorageInfo{
    		Disks: disksInfo,
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
  9. cmd/data-usage-cache.go

    }
    
    //msgp:ignore dataUsageEntryInfo
    type dataUsageEntryInfo struct {
    	Name   string
    	Parent string
    	Entry  dataUsageEntry
    }
    
    type dataUsageCacheInfo struct {
    	// Name of the bucket. Also root element.
    	Name       string
    	NextCycle  uint32
    	LastUpdate time.Time
    	// indicates if the disk is being healed and scanner
    	// should skip healing the disk
    	SkipHealing bool
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  10. cmd/endpoint.go

    		}
    	}
    
    	return poolEndpoints, setupType, nil
    }
    
    // GetLocalPeer - returns local peer value, returns globalMinioAddr
    // for FS and Erasure mode. In case of distributed server return
    // the first element from the set of peers which indicate that
    // they are local. There is always one entry that is local
    // even with repeated server endpoints.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
Back to top