Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 247 for Expire (0.06 sec)

  1. cmd/batch-expire.go

    	"github.com/minio/pkg/v3/workers"
    	"github.com/minio/pkg/v3/xtime"
    	"gopkg.in/yaml.v3"
    )
    
    // expire: # Expire objects that match a condition
    //   apiVersion: v1
    //   bucket: mybucket # Bucket where this batch job will expire matching objects from
    //   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
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  2. cmd/batch-expire_test.go

    	if err != nil {
    		t.Fatal("Failed to parse batch-job-expire yaml", err)
    	}
    	if !slices.Equal(job.Expire.Prefix.F(), []string{"myprefix"}) {
    		t.Fatal("Failed to parse batch-job-expire yaml")
    	}
    
    	multiPrefixExpireYaml := `
    expire: # Expire objects that match a condition
      apiVersion: v1
      bucket: mybucket # Bucket where this batch job will expire matching objects from
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/KerberosTest.java

            PrincipalName principalName = convertPrincipal(principal);
            KrbAsReqBuilder builder = new KrbAsReqBuilder(principalName, password != null ? password.toCharArray() : new char[0]);
    
            if ( expire != null ) {
                System.out.println("Request expires " + expire);
                KerberosTime till = new KerberosTime(expire);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Mar 01 09:46:04 UTC 2020
    - 11.5K bytes
    - Viewed (0)
  4. cmd/batch-handlers_gen.go

    					return
    				}
    			}
    		case "Expire":
    			if dc.IsNil() {
    				err = dc.ReadNil()
    				if err != nil {
    					err = msgp.WrapError(err, "Expire")
    					return
    				}
    				z.Expire = nil
    			} else {
    				if z.Expire == nil {
    					z.Expire = new(BatchJobExpire)
    				}
    				err = z.Expire.DecodeMsg(dc)
    				if err != nil {
    					err = msgp.WrapError(err, "Expire")
    					return
    				}
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  5. docs_src/security/tutorial005_an_py310.py

    
    def create_access_token(data: dict, expires_delta: timedelta | None = None):
        to_encode = data.copy()
        if expires_delta:
            expire = datetime.now(timezone.utc) + expires_delta
        else:
            expire = datetime.now(timezone.utc) + timedelta(minutes=15)
        to_encode.update({"exp": expire})
        encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM)
        return encoded_jwt
    
    
    async def get_current_user(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. docs_src/security/tutorial005_an_py39.py

    def create_access_token(data: dict, expires_delta: Union[timedelta, None] = None):
        to_encode = data.copy()
        if expires_delta:
            expire = datetime.now(timezone.utc) + expires_delta
        else:
            expire = datetime.now(timezone.utc) + timedelta(minutes=15)
        to_encode.update({"exp": expire})
        encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM)
        return encoded_jwt
    
    
    async def get_current_user(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. cmd/local-locker_test.go

    					}
    
    					// Expire 50%
    					expired := time.Now().Add(-time.Hour * 2)
    					for _, v := range l.lockMap {
    						for i := range v {
    							if rng.Intn(2) == 0 {
    								v[i].TimeLastRefresh = expired.UnixNano()
    							}
    						}
    					}
    					start = time.Now()
    					l.expireOldLocks(time.Hour)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  8. docs_src/security/tutorial004_py310.py

    
    def create_access_token(data: dict, expires_delta: timedelta | None = None):
        to_encode = data.copy()
        if expires_delta:
            expire = datetime.now(timezone.utc) + expires_delta
        else:
            expire = datetime.now(timezone.utc) + timedelta(minutes=15)
        to_encode.update({"exp": expire})
        encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM)
        return encoded_jwt
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. docs/bucket/replication/setup_ilm_expiry_replication.sh

    if [ "$flag" != "false" ]; then
    	echo "BUG: ILM expiry replication not disabled for 'siteb'"
    	exit 1
    fi
    
    ## Perform individual updates of rules to sites
    ./mc ilm edit --id "${id}" --expire-days "999" sitea/bucket
    sleep 5s
    
    ./mc ilm edit --id "${id}" --expire-days "888" siteb/bucket # when ilm expiry re-enabled, this should win
    
    ## Check re-enabling of ILM expiry rules replication
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 09:42:21 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  10. docs_src/security/tutorial004.py

    def create_access_token(data: dict, expires_delta: Union[timedelta, None] = None):
        to_encode = data.copy()
        if expires_delta:
            expire = datetime.now(timezone.utc) + expires_delta
        else:
            expire = datetime.now(timezone.utc) + timedelta(minutes=15)
        to_encode.update({"exp": expire})
        encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM)
        return encoded_jwt
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top