Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 127 for Expiration (0.18 sec)

  1. internal/bucket/lifecycle/expiration.go

    	return nil
    }
    
    // MarshalXML encodes expiration field into an XML form.
    func (e Expiration) MarshalXML(enc *xml.Encoder, startElement xml.StartElement) error {
    	if !e.set {
    		return nil
    	}
    	type expirationWrapper Expiration
    	return enc.EncodeElement(expirationWrapper(e), startElement)
    }
    
    // UnmarshalXML decodes expiration field from the XML form.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Feb 21 20:28:34 GMT 2024
    - 6.6K bytes
    - Viewed (1)
  2. internal/bucket/lifecycle/expiration_test.go

    		},
    		{ // Expiration with a valid number of days
    			inputXML: `<Expiration>
                                        <Days>3</Days>
                                        </Expiration>`,
    			expectedErr: nil,
    		},
    		{ // Expiration with neither number of days nor a date
    			inputXML: `<Expiration>
                                        </Expiration>`,
    			expectedErr: errXMLNotWellFormed,
    		},
    		{ // Expiration with both number of days and a date
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Feb 21 20:28:34 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/lifecycle.go

    			switch {
    			case !rule.Expiration.IsDateNull():
    				if now.IsZero() || now.After(rule.Expiration.Date.Time) {
    					events = append(events, Event{
    						Action: DeleteAction,
    						RuleID: rule.ID,
    						Due:    rule.Expiration.Date.Time,
    					})
    				}
    			case !rule.Expiration.IsDaysNull():
    				if expectedExpiry := ExpectedExpiryTime(obj.ModTime, int(rule.Expiration.Days)); now.IsZero() || now.After(expectedExpiry) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 17K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/lifecycle_test.go

    			inputConfig:           `<LifecycleConfiguration><Rule><ID>rule1</ID><Status>Enabled</Status><Filter><Prefix>/a/b</Prefix></Filter><Expiration><Days>3</Days></Expiration></Rule><Rule><ID>rule2</ID><Status>Enabled</Status><Filter><And><Prefix>/a/b/c</Prefix><Tag><Key>key1</Key><Value>val1</Value></Tag></And></Filter><Expiration><Days>3</Days></Expiration></Rule></LifecycleConfiguration> `,
    			expectedParsingErr:    nil,
    			expectedValidationErr: nil,
    		},
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 45.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbSession.java

    synchronized (DOMAIN) {
                long now = System.currentTimeMillis();
                int retry = 1;
    
                do {
                    if (dc_list_expiration < now) {
                        NbtAddress[] list = NbtAddress.getAllByName( DOMAIN, 0x1C, null, null );
                        dc_list_expiration = now + CACHE_POLICY * 1000L;
                        if (list != null && list.length > 0) {
                            dc_list = list;
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 18.6K bytes
    - Viewed (0)
  6. internal/bucket/lifecycle/rule_test.go

    	                    </Rule>`,
    			expectedErr: errInvalidRuleID,
    		},
    		{ // Rule with empty ID
    			inputXML: `<Rule>
    							<ID></ID>
    							<Filter><Prefix></Prefix></Filter>
    							<Expiration>
    								<Days>365</Days>
    							</Expiration>
                                <Status>Enabled</Status>
    	                    </Rule>`,
    			expectedErr: nil,
    		},
    		{ // Rule with empty status
    			inputXML: ` <Rule>
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Nov 22 21:42:39 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/netbios/NameServiceClientImpl.java

        static final class CacheEntry {
    
            Name hostName;
            NbtAddress address;
            long expiration;
    
    
            CacheEntry ( Name hostName, NbtAddress address, long expiration ) {
                this.hostName = hostName;
                this.address = address;
                this.expiration = expiration;
            }
        }
    
    
        /**
         * 
         */
        private void initCache ( CIFSContext tc ) {
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun Aug 14 14:26:22 GMT 2022
    - 38.2K bytes
    - Viewed (0)
  8. cmd/bucket-lifecycle-handlers_test.go

    			secretKey:          creds.SecretKey,
    			body:               []byte(`<LifecycleConfiguration><Rule><ID>id</ID><Filter><Prefix>logs/</Prefix><Tag><Key>Key1</Key><Value>Value1</Value></Tag></Filter><Status>Enabled</Status><Expiration><Days>365</Days></Expiration></Rule></LifecycleConfiguration>`),
    			expectedRespStatus: http.StatusBadRequest,
    			lifecycleResponse:  []byte(``),
    			errorResponse: APIErrorResponse{
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 13 20:52:33 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/Dfs.java

    import jcifs.smb1.UniAddress;
    import jcifs.smb1.util.*;
    
    import java.io.*;
    
    public class Dfs {
    
        static class CacheEntry {
            long expiration;
            HashMap map;
    
            CacheEntry(long ttl) {
                if (ttl == 0)
                    ttl = Dfs.TTL;
                expiration = System.currentTimeMillis() + ttl * 1000L;
                map = new HashMap();
            }
        }
    
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 11.7K bytes
    - Viewed (0)
  10. cmd/post-policy_test.go

    )
    
    const (
    	iso8601DateFormat = "20060102T150405Z"
    )
    
    func newPostPolicyBytesV4WithContentRange(credential, bucketName, objectKey string, expiration time.Time) []byte {
    	t := UTCNow()
    	// Add the expiration date.
    	expirationStr := fmt.Sprintf(`"expiration": "%s"`, expiration.Format(iso8601TimeFormat))
    	// Add the bucket condition, only accept buckets equal to the one passed.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
Back to top