Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 49 for fnv1 (0.06 sec)

  1. pkg/kubelet/checkpointmanager/checksum/checksum.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package checksum
    
    import (
    	"hash/fnv"
    
    	"k8s.io/kubernetes/pkg/kubelet/checkpointmanager/errors"
    	hashutil "k8s.io/kubernetes/pkg/util/hash"
    )
    
    // Checksum is the data to be stored as checkpoint
    type Checksum uint64
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 01:56:43 UTC 2019
    - 1.3K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/dra/state/checkpoint.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package state
    
    import (
    	"encoding/json"
    	"fmt"
    	"hash/fnv"
    	"strings"
    
    	"k8s.io/apimachinery/pkg/util/dump"
    	"k8s.io/kubernetes/pkg/kubelet/checkpointmanager"
    	"k8s.io/kubernetes/pkg/kubelet/checkpointmanager/checksum"
    	"k8s.io/kubernetes/pkg/kubelet/checkpointmanager/errors"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 15:23:10 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/bisect/bisect.go

    func (e *parseError) Error() string { return e.text }
    
    // FNV-1a implementation. See Go's hash/fnv/fnv.go.
    // Copied here for simplicity (can handle uints directly)
    // and to avoid the dependency.
    
    const (
    	offset64 uint64 = 14695981039346656037
    	prime64  uint64 = 1099511628211
    )
    
    func fnv(h uint64, x byte) uint64 {
    	h ^= uint64(x)
    	h *= prime64
    	return h
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 18:11:19 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/cpumanager/state/checkpoint.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package state
    
    import (
    	"encoding/json"
    	"fmt"
    	"hash/fnv"
    	"strings"
    
    	"k8s.io/apimachinery/pkg/util/dump"
    	"k8s.io/kubernetes/pkg/kubelet/checkpointmanager"
    	"k8s.io/kubernetes/pkg/kubelet/checkpointmanager/checksum"
    	"k8s.io/kubernetes/pkg/kubelet/checkpointmanager/errors"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. src/os/executable_test.go

    		t.Fatalf("Child returned %q, want an absolute path", out)
    	}
    	if !sameFile(outs, ep) {
    		t.Fatalf("Child returned %q, not the same file as %q", out, ep)
    	}
    }
    
    func sameFile(fn1, fn2 string) bool {
    	fi1, err := os.Stat(fn1)
    	if err != nil {
    		return false
    	}
    	fi2, err := os.Stat(fn2)
    	if err != nil {
    		return false
    	}
    	return os.SameFile(fi1, fi2)
    }
    
    func init() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  6. src/cmd/internal/objabi/flag.go

    	return int(*c)
    }
    
    func (c *count) IsBoolFlag() bool {
    	return true
    }
    
    func (c *count) IsCountFlag() bool {
    	return true
    }
    
    type fn1 func(string)
    
    func (f fn1) Set(s string) error {
    	f(s)
    	return nil
    }
    
    func (f fn1) String() string { return "" }
    
    // DecodeArg decodes an argument.
    //
    // This function is public for testing with the parallel encoder.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 23:08:09 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/devicemanager/pod_devices_test.go

    				resource1: newContainerAllocateResponse(
    					withDevices(map[string]string{"/dev/r1": "/dev/r1"}),
    					withMounts(map[string]string{"/home/lib1": "/home/lib1"}),
    					withEnvs(map[string]string{"ENV1": "VALUE1"}),
    					withCDIDevices("vendor1.com/class1=device1", "vendor2.com/class2=device2"),
    				),
    			},
    			expected: &DeviceRunContainerOptions{
    				Devices: []kubecontainer.DeviceInfo{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. pkg/registry/rbac/validation/rule_test.go

    */
    
    package validation
    
    import (
    	"hash/fnv"
    	"io"
    	"reflect"
    	"sort"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	rbacv1 "k8s.io/api/rbac/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apiserver/pkg/authentication/user"
    )
    
    // compute a hash of a policy rule so we can sort in a deterministic order
    func hashOf(p rbacv1.PolicyRule) string {
    	hash := fnv.New32()
    	writeStrings := func(slis ...[]string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. src/internal/bisect/bisect.go

    func (e *parseError) Error() string { return e.text }
    
    // FNV-1a implementation. See Go's hash/fnv/fnv.go.
    // Copied here for simplicity (can handle integers more directly)
    // and to avoid importing hash/fnv.
    
    const (
    	offset64 uint64 = 14695981039346656037
    	prime64  uint64 = 1099511628211
    )
    
    func fnv(h uint64, x byte) uint64 {
    	h ^= uint64(x)
    	h *= prime64
    	return h
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 17:28:43 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  10. pilot/pkg/model/extensions_test.go

    			vm: &extensions.VmConfig{
    				Env: []*extensions.EnvVar{
    					{
    						Name:      "POD_NAME",
    						ValueFrom: extensions.EnvValueSource_HOST,
    					},
    					{
    						Name:  "ENV1",
    						Value: "VAL1",
    					},
    				},
    			},
    			policy: extensions.PullPolicy_UNSPECIFIED_POLICY,
    			expected: &wasmextensions.PluginConfig_VmConfig{
    				VmConfig: &wasmextensions.VmConfig{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top