Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 72 for duplicate (0.19 sec)

  1. internal/event/errors.go

    	return fmt.Sprintf("invalid filter value '%v'", err.FilterValue)
    }
    
    // ErrDuplicateEventName - duplicate event name error.
    type ErrDuplicateEventName struct {
    	EventName Name
    }
    
    func (err ErrDuplicateEventName) Error() string {
    	return fmt.Sprintf("duplicate event name '%v' found", err.EventName)
    }
    
    // ErrUnsupportedConfiguration - unsupported configuration error.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 4.1K bytes
    - Viewed (0)
  2. internal/bucket/replication/and.go

    type And struct {
    	XMLName xml.Name `xml:"And" json:"And"`
    	Prefix  string   `xml:"Prefix,omitempty" json:"Prefix,omitempty"`
    	Tags    []Tag    `xml:"Tag,omitempty" json:"Tag,omitempty"`
    }
    
    var errDuplicateTagKey = Errorf("Duplicate Tag Keys are not allowed")
    
    // isEmpty returns true if Tags field is null
    func (a And) isEmpty() bool {
    	return len(a.Tags) == 0 && a.Prefix == ""
    }
    
    // Validate - validates the And field
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.8K bytes
    - Viewed (0)
  3. internal/store/batch_test.go

    		t.Fatalf("expected batch to be empty but still left with %d items", batchLen)
    	}
    	// Add duplicate entries
    	for i := 0; i < 10; i++ {
    		if err := batch.Add(99, 99); err != nil {
    			t.Fatalf("failed to add duplicate item %v to batch after Get; %v", i, err)
    		}
    	}
    	if _, ok := batch.GetByKey(99); !ok {
    		t.Fatal("failed to get the duplicxate item by key '99' after adding")
    	}
    	keys, items, err = batch.GetAll()
    	if err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/and.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package lifecycle
    
    import (
    	"encoding/xml"
    )
    
    var errDuplicateTagKey = Errorf("Duplicate Tag Keys are not allowed")
    
    // And - a tag to combine a prefix and multiple tags for lifecycle configuration rule.
    type And struct {
    	XMLName               xml.Name `xml:"And"`
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  5. internal/logger/logger.go

    // will be called for a pretty rendering of fatal errors.
    func RegisterError(f func(string, error, bool) string) {
    	errorFmtFunc = f
    }
    
    // uniq swaps away duplicate elements in data, returning the size of the
    // unique set. data is expected to be pre-sorted, and the resulting set in
    // the range [0:size] will remain in sorted order. Uniq, following a
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  6. cmd/postpolicyform.go

    			Value    string
    		}
    		ContentLengthRange contentLengthRange
    	}
    }
    
    // implemented to ensure that duplicate keys in JSON
    // are merged together into a single JSON key, also
    // to remove any extraneous JSON bodies.
    //
    // Go stdlib doesn't support parsing JSON with duplicate
    // keys, so we need to use this technique to merge the
    // keys.
    func sanitizePolicy(r io.Reader) (io.Reader, error) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  7. docs/bucket/replication/DESIGN.md

    slower operation that does not use replication queues and is designed to walk the namespace and replicate objects one at a time so as not to impede server load. Ideally, resync should not be initiated for multiple buckets simultaneously - progress of the syncing can be monitored by looking at `mc replicate resync status alias/bucket --remote-bucket <arn>`. In the event that resync operation failed to replicate some versions, they would be picked up by the healing mechanism in-built as part of the scanner....
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Sep 29 04:28:45 GMT 2022
    - 14.7K bytes
    - Viewed (0)
  8. cmd/endpoint_test.go

    		{[]string{"d1", "d2", "d3", "d1"}, fmt.Errorf("duplicate endpoints found")},
    		{[]string{"d1", "d2", "d3", "./d1"}, fmt.Errorf("duplicate endpoints found")},
    		{[]string{"http://localhost/d1", "http://localhost/d2", "http://localhost/d1", "http://localhost/d4"}, fmt.Errorf("duplicate endpoints found")},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Jan 13 07:53:03 GMT 2024
    - 18.9K bytes
    - Viewed (1)
  9. internal/bucket/replication/replication.go

    func (c Config) GetDestination() Destination {
    	if len(c.Rules) > 0 {
    		return c.Rules[0].Destination
    	}
    	return Destination{}
    }
    
    // Replicate returns true if the object should be replicated.
    func (c Config) Replicate(obj ObjectOpts) bool {
    	for _, rule := range c.FilterActionableRules(obj) {
    		if rule.Status == Disabled {
    			continue
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  10. cmd/endpoint.go

    	for _, zep := range *l {
    		for _, ep := range zep.Endpoints {
    			existSet.Add(ep.String())
    		}
    	}
    	// Validate if there are duplicate endpoints across serverPools
    	for _, ep := range zeps.Endpoints {
    		if existSet.Contains(ep.String()) {
    			return fmt.Errorf("duplicate endpoints found")
    		}
    	}
    	*l = append(*l, zeps)
    	return nil
    }
    
    // Localhost - returns the local hostname from list of endpoints
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
Back to top