Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 61 for hashSuffix (0.1 sec)

  1. cmd/metacache.go

    func baseDirFromPrefix(prefix string) string {
    	b := path.Dir(prefix)
    	if b == "." || b == "./" || b == "/" {
    		b = ""
    	}
    	if !strings.Contains(prefix, slashSeparator) {
    		b = ""
    	}
    	if len(b) > 0 && !strings.HasSuffix(b, slashSeparator) {
    		b += slashSeparator
    	}
    	return b
    }
    
    // update cache with new status.
    // The updates are conditional so multiple callers can update with different states.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. docs/debugging/xl-meta/main.go

    					sz = st.Size()
    				}
    				defer f.Close()
    				r = f
    			}
    			if strings.HasSuffix(file, ".zip") {
    				zr, err := zip.NewReader(r.(io.ReaderAt), sz)
    				if err != nil {
    					return err
    				}
    				for _, file := range zr.File {
    					if file.FileInfo().IsDir() {
    						continue
    					}
    					if strings.HasSuffix(file.Name, "xl.meta") {
    						r, err := file.Open()
    						if err != nil {
    							return err
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  3. tests/sql_builder_test.go

    	result := DB.Dialector.Explain(stmt.SQL.String(), stmt.Vars...)
    	expects := DB.Dialector.Explain(execStmt.SQL.String(), execStmt.Vars...)
    
    	if !strings.HasSuffix(result, expects) {
    		t.Errorf("expects: %v, got %v", expects, result)
    	}
    
    	stmt2 := dryRunDB.Where(
    		DB.Scopes(NameIn1And2),
    	).Or(
    		DB.Where("pizza = ?", "hawaiian").Where("size = ?", "xlarge"),
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  4. src/bytes/bytes.go

    // HasPrefix reports whether the byte slice s begins with prefix.
    func HasPrefix(s, prefix []byte) bool {
    	return len(s) >= len(prefix) && Equal(s[:len(prefix)], prefix)
    }
    
    // HasSuffix reports whether the byte slice s ends with suffix.
    func HasSuffix(s, suffix []byte) bool {
    	return len(s) >= len(suffix) && Equal(s[len(s)-len(suffix):], suffix)
    }
    
    // Map returns a copy of the byte slice s with all its characters modified
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  5. internal/crypto/sse-kms.go

    		if err := json.Unmarshal(b, &ctx); err != nil {
    			return "", nil, err
    		}
    	}
    
    	keyID := h.Get(xhttp.AmzServerSideEncryptionKmsID)
    	spaces := strings.HasPrefix(keyID, " ") || strings.HasSuffix(keyID, " ")
    	if spaces {
    		return "", nil, ErrInvalidEncryptionKeyID
    	}
    	return strings.TrimPrefix(keyID, ARNPrefix), ctx, nil
    }
    
    // IsEncrypted returns true if the object metadata indicates
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. src/archive/zip/writer.go

    		fh.Extra = append(fh.Extra, mbuf[:]...)
    	}
    
    	var (
    		ow io.Writer
    		fw *fileWriter
    	)
    	h := &header{
    		FileHeader: fh,
    		offset:     uint64(w.cw.count),
    	}
    
    	if strings.HasSuffix(fh.Name, "/") {
    		// Set the compression method to Store to ensure data length is truly zero,
    		// which the writeHeader method always encodes for the size fields.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  7. docs/debugging/inspect/export.go

    		sz = st.Size()
    	}
    	defer f.Close()
    	r = f
    
    	zr, e := zip.NewReader(r.(io.ReaderAt), sz)
    	if e != nil {
    		return e
    	}
    	for _, file := range zr.File {
    		if !file.FileInfo().IsDir() && strings.HasSuffix(file.Name, "xl.meta") {
    			r, e := file.Open()
    			if e != nil {
    				return e
    			}
    			// Quote string...
    			b, _ := json.Marshal(file.Name)
    			if hasWritten {
    				fmt.Print(",\n")
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 08 15:58:02 UTC 2022
    - 9.1K bytes
    - Viewed (0)
  8. internal/etag/etag.go

    // ETags.
    func parse(s string, strict bool) (ETag, error) {
    	// An S3 ETag may be a double-quoted string.
    	// Therefore, we remove double quotes at the
    	// start and end, if any.
    	if strings.HasPrefix(s, `"`) && strings.HasSuffix(s, `"`) {
    		s = s[1 : len(s)-1]
    	}
    
    	// An S3 ETag may be a multipart ETag that
    	// contains a '-' followed by a number.
    	// If the ETag does not a '-' is either
    	// a singlepart or encrypted ETag.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Mar 10 21:09:36 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. istioctl/pkg/tag/generate.go

    	if rev == DefaultRevisionName {
    		rev = ""
    	}
    
    	var injectionURL, caBundle, path string
    	found := false
    	for _, w := range wh.Webhooks {
    		if strings.HasSuffix(w.Name, istioInjectionWebhookSuffix) {
    			found = true
    			caBundle = string(w.ClientConfig.CABundle)
    			if w.ClientConfig.URL != nil {
    				injectionURL = *w.ClientConfig.URL
    			}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. istioctl/pkg/kubeinject/kubeinject.go

    			whcName, err)
    	}
    	if whcList != nil && len(whcList.Items) != 0 {
    		for _, wh := range whcList.Items[0].Webhooks {
    			if strings.HasSuffix(wh.Name, defaultWebhookName) {
    				return &ExternalInjector{client, &wh.ClientConfig, injectorAddress}, nil
    			}
    		}
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 15 16:31:46 UTC 2024
    - 21K bytes
    - Viewed (0)
Back to top