Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 553 for from (0.14 sec)

  1. src/bufio/example_test.go

    		}
    		// There is one final token to be delivered, which may be the empty string.
    		// Returning bufio.ErrFinalToken here tells Scan there are no more tokens after this
    		// but does not trigger an error to be returned from Scan itself.
    		return 0, data, bufio.ErrFinalToken
    	}
    	scanner.Split(onComma)
    	// Scan.
    	for scanner.Scan() {
    		fmt.Printf("%q ", scanner.Text())
    	}
    	if err := scanner.Err(); err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  2. cmd/metacache-manager.go

    	if ok {
    		return b.updateCacheEntry(update)
    	}
    
    	// We should have either a trashed bucket or this
    	return metacache{}, errVolumeNotFound
    }
    
    // getBucket will get a bucket metacache or load it from disk if needed.
    func (m *metacacheManager) getBucket(ctx context.Context, bucket string) *bucketMetacache {
    	m.init.Do(m.initManager)
    
    	// Return a transient bucket for invalid or system buckets.
    	m.mu.RLock()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  3. internal/crypto/sse-kms.go

    func (ssekms) IsEncrypted(metadata map[string]string) bool {
    	if _, ok := metadata[MetaSealedKeyKMS]; ok {
    		return true
    	}
    	return false
    }
    
    // UnsealObjectKey extracts and decrypts the sealed object key
    // from the metadata using KMS and returns the decrypted object
    // key.
    func (s3 ssekms) UnsealObjectKey(k kms.KMS, metadata map[string]string, bucket, object string) (key ObjectKey, err error) {
    	if k == nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  4. cmd/signature-v2.go

    	if !compareSignatureV2(gotSignature, expectedSignature) {
    		return ErrSignatureDoesNotMatch
    	}
    
    	r.Form.Del(xhttp.Expires)
    
    	return ErrNone
    }
    
    func getReqAccessKeyV2(r *http.Request) (auth.Credentials, bool, APIErrorCode) {
    	if accessKey := r.Form.Get(xhttp.AmzAccessKeyID); accessKey != "" {
    		return checkKeyValid(r, accessKey)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  5. cmd/streaming-signature-v4.go

    	if err != nil {
    		return cred, "", "", time.Time{}, ErrMalformedDate
    	}
    
    	// Query string.
    	queryStr := req.Form.Encode()
    
    	// Get canonical request.
    	canonicalRequest := getCanonicalRequest(extractedSignedHeaders, payload, queryStr, req.URL.Path, req.Method)
    
    	// Get string to sign from canonical request.
    	stringToSign := getStringToSign(canonicalRequest, date, signV4Values.Credential.getScope())
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  6. cmd/sts-errors.go

    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrSTSClientGrantsExpiredToken: {
    		Code:           "ExpiredToken",
    		Description:    "The client grants that was passed is expired or is not valid. Get a new client grants token from the identity provider and then retry the request.",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  7. cmd/data-usage-utils.go

    	"sort"
    	"time"
    
    	"github.com/minio/madmin-go/v3"
    )
    
    // BucketTargetUsageInfo - bucket target usage info provides
    // - replicated size for all objects sent to this target
    // - replica size for all objects received from this target
    // - replication pending size for all objects pending replication to this target
    // - replication failed size for all objects failed replication to this target
    // - replica pending count
    // - replica failed count
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  8. cmd/os-reliable.go

    		case osIsNotExist(err):
    			return errFileNotFound
    		case osIsExist(err):
    			// This is returned only when destination is a directory and we
    			// are attempting a rename from file to directory.
    			return errIsNotRegular
    		default:
    			return err
    		}
    	}
    	return nil
    }
    
    // Reliably retries os.RenameAll if for some reason os.RenameAll returns
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  9. src/cmd/cgo/godefs.go

    // (due to the printer possibly inserting newlines because of position
    // information) operators.
    var gofmtLineReplacer = strings.NewReplacer(
    	// Want to replace \n without ; after everything from
    	// https://golang.org/ref/spec#Operators_and_punctuation
    	// EXCEPT ++ -- ) ] }
    	"++\n", "++;",
    	"--\n", "--;",
    
    	"+\n", "+ ",
    	"-\n", "- ",
    	"*\n", "* ",
    	"/\n", "/ ",
    	"%\n", "% ",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 08 14:33:35 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/filter.go

    	return e.EncodeToken(xml.EndElement{Name: start.Name})
    }
    
    // UnmarshalXML - decodes XML data.
    func (f *Filter) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) {
    	f.set = true
    	for {
    		// Read tokens from the XML document in a stream.
    		t, err := d.Token()
    		if err != nil {
    			if err == io.EOF {
    				break
    			}
    			return err
    		}
    
    		if se, ok := t.(xml.StartElement); ok {
    			switch se.Name.Local {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 27 00:01:20 GMT 2024
    - 6.2K bytes
    - Viewed (0)
Back to top