Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,128 for Obj (0.04 sec)

  1. staging/src/k8s.io/api/core/v1/objectreference.go

    func (obj *ObjectReference) SetGroupVersionKind(gvk schema.GroupVersionKind) {
    	obj.APIVersion, obj.Kind = gvk.ToAPIVersionAndKind()
    }
    
    func (obj *ObjectReference) GroupVersionKind() schema.GroupVersionKind {
    	return schema.FromAPIVersionAndKind(obj.APIVersion, obj.Kind)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 22 17:21:42 UTC 2017
    - 1.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/meta/interfaces.go

    	SetGenerateName(obj runtime.Object, name string) error
    
    	UID(obj runtime.Object) (types.UID, error)
    	SetUID(obj runtime.Object, uid types.UID) error
    
    	SelfLink(obj runtime.Object) (string, error)
    	SetSelfLink(obj runtime.Object, selfLink string) error
    
    	Labels(obj runtime.Object) (map[string]string, error)
    	SetLabels(obj runtime.Object, labels map[string]string) error
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 05 23:44:02 UTC 2021
    - 5.5K bytes
    - Viewed (0)
  3. pkg/kubelet/util/cache/object_cache.go

    		}
    		err = c.cache.Add(objectEntry{
    			key: key,
    			obj: obj,
    		})
    		if err != nil {
    			return nil, err
    		}
    		return obj, nil
    	}
    	return value.(objectEntry).obj, nil
    }
    
    // Add adds objectEntry by using a unique string as the key.
    func (c *ObjectCache) Add(key string, obj interface{}) error {
    	return c.cache.Add(objectEntry{key: key, obj: obj})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 25 04:07:36 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  4. pkg/registry/core/resourcequota/strategy.go

    func (resourcequotaStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) {
    	resourcequota := obj.(*api.ResourceQuota)
    	resourcequota.Status = api.ResourceQuotaStatus{}
    }
    
    // PrepareForUpdate clears fields that are not allowed to be set by end users on update.
    func (resourcequotaStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newResourcequota := obj.(*api.ResourceQuota)
    	oldResourcequota := old.(*api.ResourceQuota)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 18 17:07:29 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  5. pkg/registry/resource/resourceclass/strategy.go

    }
    
    func (resourceClassStrategy) AllowCreateOnUpdate() bool {
    	return false
    }
    
    func (resourceClassStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    }
    
    func (resourceClassStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
    	errorList := validation.ValidateClass(obj.(*resource.ResourceClass))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 19:08:24 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  6. src/go/parser/testdata/resolution/issue45136.src

    package issue45136
    
    type obj /* =@obj */ struct {
    	name /*=@name */ string
    }
    
    func _() {
    	var foo /* =@foo */ = "foo"
    	obj /* @obj */ ["foo"]
    	obj /* @obj */ .run()
    	obj /* @obj */ {
    		name: foo /* @foo */,
    	}
    	obj /* @obj */ {
    		name: "bar",
    	}.run()
    
    	var _ = File{key: obj /* @obj */ {}}
    	var _ = File{obj /* @obj */ {}}
    
    	[]obj /* @obj */ {foo /* @foo */}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 16 21:19:23 UTC 2021
    - 556 bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/fake/fake_example.go

    func (c *FakeExamples) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Example, err error) {
    	emptyResult := &v1.Example{}
    	obj, err := c.Fake.
    		Invokes(testing.NewGetAction(examplesResource, c.ns, name), emptyResult)
    
    	if obj == nil {
    		return emptyResult, err
    	}
    	return obj.(*v1.Example), err
    }
    
    // List takes label and field selectors, and returns the list of Examples that match those selectors.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/defaults.go

    		obj.Names.Singular = strings.ToLower(obj.Names.Kind)
    	}
    	if len(obj.Names.ListKind) == 0 && len(obj.Names.Kind) > 0 {
    		obj.Names.ListKind = obj.Names.Kind + "List"
    	}
    	if obj.Conversion == nil {
    		obj.Conversion = &CustomResourceConversion{
    			Strategy: NoneConverter,
    		}
    	}
    }
    
    // SetDefaults_ServiceReference sets defaults for Webhook's ServiceReference
    func SetDefaults_ServiceReference(obj *ServiceReference) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 15 16:27:01 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  9. pkg/registry/storage/storageclass/strategy.go

    func (storageClassStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    }
    
    func (storageClassStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
    	errorList := validation.ValidateStorageClass(obj.(*storage.StorageClass))
    	return append(errorList, validation.ValidateStorageClassUpdate(obj.(*storage.StorageClass), old.(*storage.StorageClass))...)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 25 07:15:34 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  10. pkg/registry/core/persistentvolume/strategy.go

    func (persistentvolumeStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {
    	newPv := obj.(*api.PersistentVolume)
    	oldPv := old.(*api.PersistentVolume)
    	newPv.Status = oldPv.Status
    }
    
    func (persistentvolumeStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
    	newPv := obj.(*api.PersistentVolume)
    	oldPv := old.(*api.PersistentVolume)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 03:58:36 UTC 2023
    - 7.6K bytes
    - Viewed (0)
Back to top