Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 86 for rthash (0.18 sec)

  1. pkg/registry/rbac/validation/rule_test.go

    			for _, s := range sli {
    				io.WriteString(hash, s)
    			}
    		}
    	}
    	writeStrings(p.Verbs, p.APIGroups, p.Resources, p.ResourceNames, p.NonResourceURLs)
    	return string(hash.Sum(nil))
    }
    
    // byHash sorts a set of policy rules by a hash of its fields
    type byHash []rbacv1.PolicyRule
    
    func (b byHash) Len() int           { return len(b) }
    func (b byHash) Less(i, j int) bool { return hashOf(b[i]) < hashOf(b[j]) }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. proguard/hash.pro

    -dontwarn sun.misc.Unsafe
    
    # Striped64 appears to make some assumptions about object layout that
    # really might not be safe. This should be investigated.
    -keepclassmembers class com.google.common.hash.Striped64 {
      *** base;
      *** busy;
    }
    -keepclassmembers class com.google.common.hash.Striped64$Cell {
      <fields>;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 09 00:29:01 UTC 2023
    - 351 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/mod/sumdb/dirhash/hash.go

    	"sort"
    	"strings"
    )
    
    // DefaultHash is the default hash function used in new go.sum entries.
    var DefaultHash Hash = Hash1
    
    // A Hash is a directory hash function.
    // It accepts a list of files along with a function that opens the content of each file.
    // It opens, reads, hashes, and closes each file and returns the overall directory hash.
    type Hash func(files []string, open func(string) (io.ReadCloser, error)) (string, error)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:59:52 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. src/hash/hash.go

    // Package hash provides interfaces for hash functions.
    package hash
    
    import "io"
    
    // Hash is the common interface implemented by all hash functions.
    //
    // Hash implementations in the standard library (e.g. [hash/crc32] and
    // [crypto/sha256]) implement the [encoding.BinaryMarshaler] and
    // [encoding.BinaryUnmarshaler] interfaces. Marshaling a hash implementation
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 19:15:34 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. pkg/util/hash/hash.go

    // limitations under the License.
    
    package hash
    
    import (
    	"encoding/hex"
    
    	"github.com/cespare/xxhash/v2"
    )
    
    type Hash interface {
    	Write(p []byte) (n int)
    	WriteString(s string) (n int)
    	Sum() string
    	Sum64() uint64
    }
    
    type instance struct {
    	hash *xxhash.Digest
    }
    
    var _ Hash = &instance{}
    
    func New() Hash {
    	return &instance{
    		hash: xxhash.New(),
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 20:24:14 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/AbstractFileSystemLocationSnapshot.java

                return false;
            }
            return getHash().equals(that.getHash());
        }
    
        @Override
        public int hashCode() {
            int result = absolutePath.hashCode();
            result = 31 * result + name.hashCode();
            result = 31 * result + accessType.hashCode();
            result = 31 * result + getHash().hashCode();
            return result;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 13:19:32 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/options/authorizationconfig/metrics/metrics.go

    	authorizationConfigAutomaticReloadLastTimestampSeconds.WithLabelValues("success", apiServerIDHash).SetToCurrentTime()
    }
    
    func getHash(data string) string {
    	if len(data) == 0 {
    		return ""
    	}
    	h := hashPool.Get().(hash.Hash)
    	h.Reset()
    	h.Write([]byte(data))
    	dataHash := fmt.Sprintf("sha256:%x", h.Sum(nil))
    	hashPool.Put(h)
    	return dataHash
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 13:20:59 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. operator/pkg/helmreconciler/apply.go

    	cname := string(manifest.Name)
    	crHash, err := h.getCRHash(cname)
    	if err != nil {
    		return result, err
    	}
    
    	scope.Infof("Processing resources from manifest: %s for CR %s", cname, crHash)
    	allObjects, err := object.ParseK8sObjectsFromYAMLManifest(manifest.Content)
    	if err != nil {
    		return result, err
    	}
    
    	objectCache := cache.GetCache(crHash)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 12 17:12:54 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/options/authenticationconfig/metrics/metrics.go

    	apiServerIDHash := getHash(apiServerID)
    	authenticationConfigAutomaticReloadsTotal.WithLabelValues("failure", apiServerIDHash).Inc()
    	authenticationConfigAutomaticReloadLastTimestampSeconds.WithLabelValues("failure", apiServerIDHash).SetToCurrentTime()
    }
    
    func RecordAuthenticationConfigAutomaticReloadSuccess(apiServerID string) {
    	apiServerIDHash := getHash(apiServerID)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 22:40:22 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/metrics/metrics.go

    	encryptionConfigAutomaticReloadLastTimestampSeconds.WithLabelValues(result, apiServerIDHash).SetToCurrentTime()
    }
    
    func getHash(data string) string {
    	if len(data) == 0 {
    		return ""
    	}
    	h := hashPool.Get().(hash.Hash)
    	h.Reset()
    	h.Write([]byte(data))
    	dataHash := fmt.Sprintf("sha256:%x", h.Sum(nil))
    	hashPool.Put(h)
    	return dataHash
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 13 05:47:46 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top