- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 1,128 for Obj (0.04 sec)
-
staging/src/k8s.io/cli-runtime/pkg/printers/typesetter.go
// PrintObj is an implementation of ResourcePrinter.PrintObj which sets type information on the obj for the duration // of printing. It is NOT threadsafe. func (p *TypeSetterPrinter) PrintObj(obj runtime.Object, w io.Writer) error { if obj == nil { return p.Delegate.PrintObj(obj, w) } if !obj.GetObjectKind().GroupVersionKind().Empty() { return p.Delegate.PrintObj(obj, w) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 23:00:24 UTC 2019 - 2.6K bytes - Viewed (0) -
pkg/registry/storage/csidriver/strategy.go
func (csiDriverStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) { csiDriver := obj.(*storage.CSIDriver) if !utilfeature.DefaultFeatureGate.Enabled(features.SELinuxMountReadWriteOncePod) { csiDriver.Spec.SELinuxMount = nil } } func (csiDriverStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList { csiDriver := obj.(*storage.CSIDriver) return validation.ValidateCSIDriver(csiDriver) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 12 07:01:37 UTC 2023 - 3.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/encoder_with_allocator_test.go
for n := 0; n < b.N; n++ { err := target.EncodeWithAllocator(tc.obj, ioutil.Discard, allocator) if err != nil { b.Fatal(err) } } }) } } type benchTestCase struct { name string obj runtime.Object } func benchTestCases() []benchTestCase { return []benchTestCase{ { name: "an obj with 1kB payload", obj: func() runtime.Object { carpPayload := make([]byte, 1000) // 1 kB
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 23 13:38:29 UTC 2022 - 3.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/universe.go
func def(obj Object) { assert(obj.color() == black) name := obj.Name() if strings.Contains(name, " ") { return // nothing to do } // fix Obj link for named types if typ := asNamed(obj.Type()); typ != nil { typ.obj = obj.(*TypeName) } // exported identifiers go into package unsafe scope := Universe if obj.Exported() { scope = Unsafe.scope
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.1K bytes - Viewed (0) -
src/go/types/universe.go
func def(obj Object) { assert(obj.color() == black) name := obj.Name() if strings.Contains(name, " ") { return // nothing to do } // fix Obj link for named types if typ := asNamed(obj.Type()); typ != nil { typ.obj = obj.(*TypeName) } // exported identifiers go into package unsafe scope := Universe if obj.Exported() { scope = Unsafe.scope
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.3K bytes - Viewed (0) -
pkg/registry/admissionregistration/validatingadmissionpolicybinding/strategy.go
ic := obj.(*admissionregistration.ValidatingAdmissionPolicyBinding) ic.Generation = 1 } // PrepareForUpdate clears fields that are not allowed to be set by end users on update. func (v *validatingAdmissionPolicyBindingStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) { newIC := obj.(*admissionregistration.ValidatingAdmissionPolicyBinding)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 07 21:29:56 UTC 2022 - 5.5K bytes - Viewed (0) -
pkg/apis/rbac/v1beta1/zz_generated.defaults.go
scheme.AddTypeDefaultingFunc(&v1beta1.ClusterRoleBindingList{}, func(obj interface{}) { SetObjectDefaults_ClusterRoleBindingList(obj.(*v1beta1.ClusterRoleBindingList)) }) scheme.AddTypeDefaultingFunc(&v1beta1.RoleBinding{}, func(obj interface{}) { SetObjectDefaults_RoleBinding(obj.(*v1beta1.RoleBinding)) })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 2.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/alias.go
// rhs must not be nil. func NewAlias(obj *TypeName, rhs Type) *Alias { alias := (*Checker)(nil).newAlias(obj, rhs) // Ensure that alias.actual is set (#65455). alias.cleanup() return alias } // Obj returns the type name for the declaration defining the alias type a. // For instantiated types, this is same as the type name of the origin type. func (a *Alias) Obj() *TypeName { return a.orig.obj }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 5K bytes - Viewed (0) -
subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/internal/ProjectDetails.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 26 14:58:23 UTC 2024 - 3.5K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/json.go
return fmt.Errorf(InternalObjectPrinterErr) } switch obj := obj.(type) { case *metav1.WatchEvent: if InternalObjectPreventer.IsForbidden(reflect.Indirect(reflect.ValueOf(obj.Object.Object)).Type().PkgPath()) { return fmt.Errorf(InternalObjectPrinterErr) } data, err := json.Marshal(obj) if err != nil { return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 10 11:23:25 UTC 2021 - 2.3K bytes - Viewed (0)