Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,128 for Obj (0.04 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/helper.go

    	}
    	return errors.NewAggregate(errs)
    }
    
    func decodeListItem(obj *Unknown, decoders []Decoder) (Object, error) {
    	for _, decoder := range decoders {
    		// TODO: Decode based on ContentType.
    		obj, err := Decode(decoder, obj.Raw)
    		if err != nil {
    			if IsNotRegisteredError(err) {
    				continue
    			}
    			return nil, err
    		}
    		return obj, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 13 22:54:34 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/embedded.go

    	if in == nil {
    		out.Raw = []byte("null")
    		return nil
    	}
    	obj := *in
    	if unk, ok := obj.(*Unknown); ok {
    		if unk.Raw != nil {
    			out.Raw = unk.Raw
    			return nil
    		}
    		obj = out.Object
    	}
    	if obj == nil {
    		out.Raw = nil
    		return nil
    	}
    	out.Object = obj
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 02 09:39:03 UTC 2019
    - 4.3K bytes
    - Viewed (0)
  3. src/go/types/mono.go

    func (w *monoGraph) localNamedVertex(pkg *Package, named *Named) int {
    	obj := named.Obj()
    	if obj.Pkg() != pkg {
    		return -1 // imported type
    	}
    
    	root := pkg.Scope()
    	if obj.Parent() == root {
    		return -1 // package scope, no ambient type parameters
    	}
    
    	if idx, ok := w.nameIdx[obj]; ok {
    		return idx
    	}
    
    	idx := -1
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. pkg/apis/admissionregistration/v1alpha1/defaults.go

    		obj.MatchPolicy = &policy
    	}
    	if obj.NamespaceSelector == nil {
    		selector := metav1.LabelSelector{}
    		obj.NamespaceSelector = &selector
    	}
    	if obj.ObjectSelector == nil {
    		selector := metav1.LabelSelector{}
    		obj.ObjectSelector = &selector
    	}
    }
    
    // SetDefaults_ParamRef sets defaults for ParamRef
    func SetDefaults_ParamRef(obj *admissionregistrationv1alpha1.ParamRef) {
    	if obj.ParameterNotFoundAction == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 20 16:30:09 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. pkg/registry/flowcontrol/flowschema/strategy.go

    func (flowSchemaStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
    	fl := obj.(*flowcontrol.FlowSchema)
    	fl.Status = flowcontrol.FlowSchemaStatus{}
    	fl.Generation = 1
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (flowSchemaStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newFlowSchema := obj.(*flowcontrol.FlowSchema)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 11:48:22 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/apis/kubeadm/v1beta4/zz_generated.defaults.go

    	scheme.AddTypeDefaultingFunc(&ClusterConfiguration{}, func(obj interface{}) { SetObjectDefaults_ClusterConfiguration(obj.(*ClusterConfiguration)) })
    	scheme.AddTypeDefaultingFunc(&InitConfiguration{}, func(obj interface{}) { SetObjectDefaults_InitConfiguration(obj.(*InitConfiguration)) })
    	scheme.AddTypeDefaultingFunc(&JoinConfiguration{}, func(obj interface{}) { SetObjectDefaults_JoinConfiguration(obj.(*JoinConfiguration)) })
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 11:04:08 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. pkg/registry/storage/volumeattributesclass/strategy.go

    func (volumeAttributesClassStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    }
    
    func (volumeAttributesClassStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
    	errorList := validation.ValidateVolumeAttributesClass(obj.(*storage.VolumeAttributesClass))
    	return append(errorList, validation.ValidateVolumeAttributesClassUpdate(obj.(*storage.VolumeAttributesClass), old.(*storage.VolumeAttributesClass))...)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:18:56 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. pkg/apis/rbac/v1/defaults.go

    }
    
    func SetDefaults_ClusterRoleBinding(obj *rbacv1.ClusterRoleBinding) {
    	if len(obj.RoleRef.APIGroup) == 0 {
    		obj.RoleRef.APIGroup = GroupName
    	}
    }
    func SetDefaults_RoleBinding(obj *rbacv1.RoleBinding) {
    	if len(obj.RoleRef.APIGroup) == 0 {
    		obj.RoleRef.APIGroup = GroupName
    	}
    }
    func SetDefaults_Subject(obj *rbacv1.Subject) {
    	if len(obj.APIGroup) == 0 {
    		switch obj.Kind {
    		case rbacv1.ServiceAccountKind:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 09 21:04:54 UTC 2017
    - 1.3K bytes
    - Viewed (0)
  9. src/go/ast/resolve.go

    func (p *pkgBuilder) declare(scope, altScope *Scope, obj *Object) {
    	alt := scope.Insert(obj)
    	if alt == nil && altScope != nil {
    		// see if there is a conflicting declaration in altScope
    		alt = altScope.Lookup(obj.Name)
    	}
    	if alt != nil {
    		prevDecl := ""
    		if pos := alt.Pos(); pos.IsValid() {
    			prevDecl = fmt.Sprintf("\n\tprevious declaration at %s", p.fset.Position(pos))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/api/internal/ConfigureByMapActionTest.groovy

            given:
            Bean obj = new Bean()
    
            when:
            action(prop: 'value').execute(obj)
    
            then:
            obj.prop == "value"
    
            when:
            action(method: 'value2').execute(obj)
    
            then:
            obj.prop == 'value2'
        }
    
        def canConfigureAndValidateObjectUsingMap() {
            given:
            Bean obj = new Bean()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:52:07 UTC 2021
    - 2.8K bytes
    - Viewed (0)
Back to top