Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for date (0.18 sec)

  1. cmd/post-policy_test.go

    	// Add the algorithm condition, only accept AWS SignV4 Sha256.
    	algorithmConditionStr := `["eq", "$x-amz-algorithm", "AWS4-HMAC-SHA256"]`
    	// Add the date condition, only accept the current date.
    	dateConditionStr := fmt.Sprintf(`["eq", "$x-amz-date", "%s"]`, t.Format(iso8601DateFormat))
    	// Add the credential string, only accept the credential passed.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    	}
    
    	region := globalSite.Region
    	date := UTCNow()
    	scope := getScope(date, region)
    	credential := fmt.Sprintf("%s/%s", accessKeyID, scope)
    
    	// Set URL query.
    	query := req.URL.Query()
    	query.Set("X-Amz-Algorithm", signV4Algorithm)
    	query.Set("X-Amz-Date", date.Format(iso8601Format))
    	query.Set("X-Amz-Expires", strconv.FormatInt(expires, 10))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  3. cmd/bucket-object-lock.go

    		}
    		rMode, rDate, err := objectlock.ParseObjectLockRetentionHeaders(rq.Header)
    		if err != nil && !(replica && rMode == "" && rDate.IsZero()) {
    			return mode, retainDate, legalHold, toAPIErrorCode(ctx, err)
    		}
    		if retentionPermErr != ErrNone {
    			return mode, retainDate, legalHold, retentionPermErr
    		}
    		return rMode, rDate, legalHold, ErrNone
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/delmarker-expiration.go

    	if de.Empty() {
    		return nil
    	}
    
    	type delMarkerExpiration DelMarkerExpiration
    	return enc.EncodeElement(delMarkerExpiration(de), start)
    }
    
    // NextDue returns upcoming DelMarkerExpiration date for obj if
    // applicable, returns false otherwise.
    func (de DelMarkerExpiration) NextDue(obj ObjectOpts) (time.Time, bool) {
    	if !obj.IsLatest || !obj.DeleteMarker {
    		return time.Time{}, false
    	}
    
    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)
  5. cmd/api-errors.go

    	},
    	ErrMalformedDate: {
    		Code:           "MalformedDate",
    		Description:    "Invalid date format header, expected to be in ISO8601, RFC1123 or RFC1123Z time format.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrMalformedPresignedDate: {
    		Code:           "AuthorizationQueryParametersError",
    		Description:    "X-Amz-Date must be in the ISO8601 Long Format \"yyyyMMdd'T'HHmmss'Z'\"",
    		HTTPStatusCode: http.StatusBadRequest,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  6. cmd/storage-datatypes.go

    func (r *RenameDataInlineHandlerParams) Recycle() {
    	if r == nil {
    		return
    	}
    	if cap(r.FI.Data) >= xioutil.SmallBlock {
    		grid.PutByteBuffer(r.FI.Data)
    		r.FI.Data = nil
    	}
    }
    
    // RenameFileHandlerParams are parameters for RenameFileHandler.
    type RenameFileHandlerParams struct {
    	DiskID      string `msg:"id"`
    	SrcVolume   string `msg:"sv"`
    	SrcFilePath string `msg:"sp"`
    	DstVolume   string `msg:"dv"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  7. cmd/globals.go

    	// can reach that size according to https://aws.amazon.com/articles/1434
    	maxFormFieldSize = int64(1 * humanize.MiByte)
    
    	// The maximum allowed time difference between the incoming request
    	// date and server date during signature verification.
    	globalMaxSkewTime = 15 * time.Minute // 15 minutes skew allowed.
    
    	// GlobalStaleUploadsExpiry - Expiry duration after which the uploads in multipart,
    	// tmp directory are deemed stale.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  8. cmd/signature-v4.go

    	if s3Err != ErrNone {
    		return s3Err
    	}
    
    	// Extract date, if not present throw error.
    	var date string
    	if date = req.Header.Get(xhttp.AmzDate); date == "" {
    		if date = r.Header.Get(xhttp.Date); date == "" {
    			return ErrMissingDateHeader
    		}
    	}
    
    	// Parse date header.
    	t, e := time.Parse(iso8601Format, date)
    	if e != nil {
    		return ErrMalformedDate
    	}
    
    	// Query string.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  9. internal/bucket/lifecycle/lifecycle_test.go

    		modTime  time.Time
    		days     ExpirationDays
    		expected time.Time
    	}{
    		{
    			time.Date(2020, time.March, 15, 10, 10, 10, 0, time.UTC),
    			4,
    			time.Date(2020, time.March, 20, 0, 0, 0, 0, time.UTC),
    		},
    		{
    			time.Date(2020, time.March, 15, 0, 0, 0, 0, time.UTC),
    			1,
    			time.Date(2020, time.March, 17, 0, 0, 0, 0, time.UTC),
    		},
    	}
    
    	for i, tc := range testCases {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/lifecycle.go

    			return true
    		}
    		if !rule.Expiration.IsDateNull() && rule.Expiration.Date.Before(time.Now().UTC()) {
    			return true
    		}
    		if !rule.Expiration.IsDaysNull() {
    			return true
    		}
    		if rule.Expiration.DeleteMarker.val {
    			return true
    		}
    		if !rule.Transition.IsDateNull() && rule.Transition.Date.Before(time.Now().UTC()) {
    			return true
    		}
    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)
Back to top