Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ObjectSizeGreaterThan (0.22 sec)

  1. internal/bucket/lifecycle/filter.go

    			if err := e.EncodeElement(f.ObjectSizeLessThan, xml.StartElement{Name: xml.Name{Local: "ObjectSizeLessThan"}}); err != nil {
    				return err
    			}
    		}
    		if f.ObjectSizeGreaterThan > 0 {
    			if err := e.EncodeElement(f.ObjectSizeGreaterThan, xml.StartElement{Name: xml.Name{Local: "ObjectSizeGreaterThan"}}); err != nil {
    				return err
    			}
    		}
    	}
    
    	return e.EncodeToken(xml.EndElement{Name: start.Name})
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 27 00:01:20 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/and.go

    }
    
    // BySize returns true when sz satisfies a
    // ObjectSizeLessThan/ObjectSizeGreaterthan or a logical AND of these predicates
    // Note: And combines size and other predicates like Tags, Prefix, etc. This
    // method applies exclusively to size predicates only.
    func (a And) BySize(sz int64) bool {
    	if a.ObjectSizeGreaterThan > 0 &&
    		sz <= a.ObjectSizeGreaterThan {
    		return false
    	}
    	if a.ObjectSizeLessThan > 0 &&
    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)
  3. internal/bucket/lifecycle/filter_test.go

    		t.Fatalf("Expected %v but got %v", f1.ObjectSizeLessThan, f2.And.ObjectSizeLessThan)
    	}
    	if f1.ObjectSizeGreaterThan != f2.ObjectSizeGreaterThan {
    		t.Fatalf("Expected %v but got %v", f1.ObjectSizeGreaterThan, f2.And.ObjectSizeGreaterThan)
    	}
    
    	f1 = Filter{
    		set: true,
    		And: And{
    			ObjectSizeGreaterThan: 100 * humanize.MiByte,
    			ObjectSizeLessThan:    1 * humanize.GiByte,
    			Prefix:                Prefix{},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 27 00:01:20 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/rule_test.go

    	                    </Rule>`,
    			expectedErr: errXMLNotWellFormed,
    		},
    		{ // Rule with negative values for ObjectSizeGreaterThan
    			inputXML: `<Rule>
    				<ID>negative-obj-size-greater-than</ID>
    				<Filter><ObjectSizeGreaterThan>-1</ObjectSizeGreaterThan></Filter>
    				<Expiration>
    					<Days>365</Days>
    				</Expiration>
                                <Status>Enabled</Status>
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Nov 22 21:42:39 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  5. internal/bucket/lifecycle/lifecycle_test.go

    			Expiration: Expiration{
    				set:  true,
    				Days: 1,
    			},
    		},
    		{
    			ID:     "rule-with-sz-gt",
    			Status: "Enabled",
    			Filter: Filter{
    				set:                   true,
    				ObjectSizeGreaterThan: 1 * humanize.MiByte,
    			},
    			Expiration: Expiration{
    				set:  true,
    				Days: 1,
    			},
    		},
    		{
    			ID:     "rule-with-sz-lt-and-tag",
    			Status: "Enabled",
    			Filter: Filter{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 45.6K bytes
    - Viewed (0)
Back to top