Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 387 for typeOf (0.15 sec)

  1. pkg/scheduler/framework/runtime/framework.go

    func getScoreWeights(f *frameworkImpl, plugins []config.Plugin) error {
    	var totalPriority int64
    	scorePlugins := reflect.ValueOf(&f.scorePlugins).Elem()
    	pluginType := scorePlugins.Type().Elem()
    	for _, e := range plugins {
    		pg := f.pluginsMap[e.Name]
    		if !reflect.TypeOf(pg).Implements(pluginType) {
    			continue
    		}
    
    		// We append MultiPoint plugins to the list of Score plugins. So if this plugin has already been
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go

    		}
    		files = append(files, f)
    	}
    	tc := &types.Config{
    		Importer:  makeTypesImporter(cfg, fset),
    		Sizes:     types.SizesFor("gc", build.Default.GOARCH), // TODO(adonovan): use cfg.Compiler
    		GoVersion: cfg.GoVersion,
    	}
    	info := &types.Info{
    		Types:      make(map[ast.Expr]types.TypeAndValue),
    		Defs:       make(map[*ast.Ident]types.Object),
    		Uses:       make(map[*ast.Ident]types.Object),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. pkg/apis/batch/v1/defaults_test.go

    								OnPodConditions: []batchv1.PodFailurePolicyOnPodConditionsPattern{
    									{
    										Type:   v1.DisruptionTarget,
    										Status: v1.ConditionTrue,
    									},
    									{
    										Type:   v1.PodConditionType("MemoryLimitExceeded"),
    										Status: v1.ConditionFalse,
    									},
    									{
    										Type: v1.PodConditionType("DiskLimitExceeded"),
    									},
    								},
    							},
    							{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  4. src/sync/map_bench_test.go

    	"sync"
    	"sync/atomic"
    	"testing"
    )
    
    type bench struct {
    	setup func(*testing.B, mapInterface)
    	perG  func(b *testing.B, pb *testing.PB, i int, m mapInterface)
    }
    
    func benchMap(b *testing.B, bench bench) {
    	for _, m := range [...]mapInterface{&DeepCopyMap{}, &RWMutexMap{}, &sync.Map{}} {
    		b.Run(fmt.Sprintf("%T", m), func(b *testing.B) {
    			m = reflect.New(reflect.TypeOf(m).Elem()).Interface().(mapInterface)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. internal/logger/logger.go

    var magicHighwayHash256Key = []byte("\x4b\xe7\x34\xfa\x8e\x23\x8a\xcd\x26\x3e\x83\xe6\xbb\x96\x85\x52\x04\x0f\x93\x5d\xa3\x9f\x44\x14\x97\xe0\x9d\x13\x22\xde\x36\xa0")
    
    // Enumerated level types
    const (
    	// Log types errors
    	FatalKind   = madmin.LogKindFatal
    	WarningKind = madmin.LogKindWarning
    	ErrorKind   = madmin.LogKindError
    	EventKind   = madmin.LogKindEvent
    	InfoKind    = madmin.LogKindInfo
    )
    
    var (
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  6. src/internal/concurrent/hashtriemap.go

    // the unique package, but can be used elsewhere as well.
    type HashTrieMap[K, V comparable] struct {
    	root     *indirect[K, V]
    	keyHash  hashFunc
    	keyEqual equalFunc
    	valEqual equalFunc
    	seed     uintptr
    }
    
    // NewHashTrieMap creates a new HashTrieMap for the provided key and value.
    func NewHashTrieMap[K, V comparable]() *HashTrieMap[K, V] {
    	var m map[K]V
    	mapType := abi.TypeOf(m).MapType()
    	ht := &HashTrieMap[K, V]{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store.go

    // force deletion and recreation of keys to weaken that angle.
    type authenticatedDataString string
    
    // AuthenticatedData implements the value.Context interface.
    func (d authenticatedDataString) AuthenticatedData() []byte {
    	return []byte(string(d))
    }
    
    var _ value.Context = authenticatedDataString("")
    
    type store struct {
    	client              *clientv3.Client
    	codec               runtime.Codec
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 11:56:42 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  8. pkg/config/model.go

    	gogotypes "github.com/gogo/protobuf/types"   // nolint: depguard
    	"google.golang.org/protobuf/proto"
    	"google.golang.org/protobuf/reflect/protoreflect"
    	"google.golang.org/protobuf/types/known/anypb"
    	"google.golang.org/protobuf/types/known/structpb"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	kubetypes "k8s.io/apimachinery/pkg/types"
    	"sigs.k8s.io/yaml"
    
    	"istio.io/api/label"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. src/encoding/gob/encoder_test.go

    func TestTypeToPtrType(t *testing.T) {
    	// Encode a T, decode a *T
    	type Type0 struct {
    		A int
    	}
    	t0 := Type0{7}
    	t0p := new(Type0)
    	if err := encAndDec(t0, t0p); err != nil {
    		t.Error(err)
    	}
    }
    
    func TestPtrTypeToType(t *testing.T) {
    	// Encode a *T, decode a T
    	type Type1 struct {
    		A uint
    	}
    	t1p := &Type1{17}
    	var t1 Type1
    	if err := encAndDec(t1, t1p); err != nil {
    		t.Error(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  10. pkg/apis/apps/v1beta2/defaults_test.go

    					Template: templateNoLabel,
    					UpdateStrategy: appsv1beta2.DaemonSetUpdateStrategy{
    						Type: appsv1beta2.OnDeleteDaemonSetStrategyType,
    					},
    				},
    			},
    			expected: &appsv1beta2.DaemonSet{
    				Spec: appsv1beta2.DaemonSetSpec{
    					Template: templateNoLabel,
    					UpdateStrategy: appsv1beta2.DaemonSetUpdateStrategy{
    						Type: appsv1beta2.OnDeleteDaemonSetStrategyType,
    					},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top