Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 53 for Natchev (0.18 sec)

  1. cmd/signature-v4.go

    }
    
    // doesPolicySignatureMatch - Verify query headers with post policy
    //   - http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-HTTPPOSTConstructPolicy.html
    //
    // returns ErrNone if the signature matches.
    func doesPolicySignatureV4Match(formValues http.Header) (auth.Credentials, APIErrorCode) {
    	// Server region.
    	region := globalSite.Region
    
    	// Parse credential tag.
    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)
  2. cmd/object-handlers-common.go

    	ifNoneMatchETagHeader := r.Header.Get(xhttp.AmzCopySourceIfNoneMatch)
    	if ifNoneMatchETagHeader != "" {
    		if isETagEqual(objInfo.ETag, ifNoneMatchETagHeader) {
    			// If the object ETag matches with the specified ETag.
    			writeHeaders()
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrPreconditionFailed), r.URL)
    			return true
    		}
    	}
    	// Object content should be written to http.ResponseWriter
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  3. internal/etag/reader.go

    	return wrapReader{
    		Reader: wrapped,
    	}
    }
    
    // A Reader wraps an io.Reader and computes the
    // MD5 checksum of the read content as ETag.
    //
    // Optionally, a Reader can also verify that
    // the computed ETag matches an expected value.
    // Therefore, it compares both ETags once the
    // underlying io.Reader returns io.EOF.
    // If the computed ETag does not match the
    // expected ETag then Read returns a VerifyError.
    //
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  4. cmd/metacache-set.go

    				topEntries[i] = entry
    				current = entry
    				agree++
    				continue
    			}
    			// If exact match, we agree.
    			if _, ok := current.matches(&entry, true); ok {
    				topEntries[i] = entry
    				agree++
    				continue
    			}
    			// If only the name matches we didn't agree, but add it for resolution.
    			if entry.name == current.name {
    				topEntries[i] = entry
    				continue
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:59:08 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  5. cmd/sts-handlers.go

    			return
    		}
    	}
    
    	if !globalIAMSys.Initialized() {
    		writeSTSErrorResponse(ctx, w, ErrSTSIAMNotInitialized, errIAMNotInitialized)
    		return
    	}
    
    	// Validate JWT; check clientID in claims matches the one associated with the roleArn
    	if err := globalIAMSys.OpenIDConfig.Validate(r.Context(), roleArn, token, accessToken, r.Form.Get(stsDurationSeconds), claims); err != nil {
    		switch err {
    		case openid.ErrTokenExpired:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 21:31:13 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  6. cmd/erasure-multipart.go

    			ModTime:    expPart.ModTime,
    			Index:      expPart.Index,
    			Checksums:  nil, // Not transferred since we do not need it.
    		}
    	}
    
    	if opts.WantChecksum != nil {
    		err := opts.WantChecksum.Matches(checksumCombined)
    		if err != nil {
    			return oi, err
    		}
    	}
    
    	// Hold namespace to complete the transaction
    	lk := er.NewNSLock(bucket, object)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  7. cmd/batch-handlers.go

    	}
    	ri.mu.Unlock()
    	return nil
    }
    
    // Note: to be used only with batch jobs that affect multiple versions through
    // a single action. e.g batch-expire has an option to expire all versions of an
    // object which matches the given filters.
    func (ri *batchJobInfo) trackMultipleObjectVersions(bucket string, info ObjectInfo, success bool) {
    	if success {
    		ri.Objects += int64(info.NumVersions)
    	} else {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  8. cmd/admin-handlers.go

    	err := o.GetRawData(ctx, volume, file, rawDataFn)
    	if err != nil {
    		if errors.Is(err, errFileNotFound) {
    			addErr("GetRawData: No files matched the given pattern")
    			return
    		}
    		embedFileInZip(inspectZipW, "GetRawData-err.txt", []byte(err.Error()), 0o600)
    		adminLogIf(ctx, err)
    	}
    
    	// save the format.json as part of inspect by default
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
  9. internal/bucket/versioning/versioning.go

    		return false
    	}
    
    	for _, sprefix := range v.ExcludedPrefixes {
    		// Note: all excluded prefix patterns end with `/` (See Validate)
    		sprefix.Prefix += "*"
    
    		if matched := wildcard.MatchSimple(sprefix.Prefix, prefix); matched {
    			return false
    		}
    	}
    	return true
    }
    
    // Suspended - returns true if versioning is suspended
    func (v Versioning) Suspended() bool {
    	return v.Status == Suspended
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  10. internal/s3select/json/record.go

    // jsonFloat converts a float to string similar to Go stdlib formats json floats.
    func jsonFloat(f float64) string {
    	var tmp [32]byte
    	dst := tmp[:0]
    
    	// Convert as if by ES6 number to string conversion.
    	// This matches most other JSON generators.
    	// See golang.org/issue/6384 and golang.org/issue/14135.
    	// Like fmt %g, but the exponent cutoffs are different
    	// and exponents themselves are not padded to two digits.
    	abs := math.Abs(f)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 5.2K bytes
    - Viewed (0)
Back to top