Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for fieldPtr (0.47 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/driver/config.go

    		configFields = append(configFields, f)
    		configFieldMap[f.name] = f
    		for _, choice := range f.choices {
    			configFieldMap[choice] = f
    		}
    	}
    }
    
    // fieldPtr returns a pointer to the field identified by f in *cfg.
    func (cfg *config) fieldPtr(f configField) interface{} {
    	// reflect.ValueOf: converts to reflect.Value
    	// Elem: dereferences cfg to make *cfg
    	// FieldByIndex: fetches the field
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/helper.go

    		return nil
    	}
    	return fmt.Errorf("couldn't assign/convert %v to %v", field.Type(), destValue.Type())
    }
    
    // FieldPtr puts the address of fieldName, which must be a member of v,
    // into dest, which must be an address of a variable to which this field's
    // address can be assigned.
    func FieldPtr(v reflect.Value, fieldName string, dest interface{}) error {
    	field := v.FieldByName(fieldName)
    	if !field.IsValid() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 13 22:54:34 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/driver/cli.go

    	var err error // Holds any errors encountered while running setters.
    
    	for _, field := range configFields {
    		n := field.name
    		help := configHelp[n]
    		var setter func()
    		switch ptr := cfg.fieldPtr(field).(type) {
    		case *bool:
    			f := flag.Bool(n, *ptr, help)
    			setter = func() { *ptr = *f }
    		case *int:
    			f := flag.Int(n, *ptr, help)
    			setter = func() { *ptr = *f }
    		case *float64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 16:39:48 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  4. pkg/apis/core/v1/conversion.go

    		fieldErr, ok := err.(*field.Error)
    		if !ok {
    			return err
    		}
    		if out.Annotations == nil {
    			out.Annotations = make(map[string]string)
    		}
    		out.Annotations[v1.NonConvertibleAnnotationPrefix+"/"+fieldErr.Field] = reflect.ValueOf(fieldErr.BadValue).String()
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 22:30:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/envelope.go

    func validateAnnotations(annotations map[string][]byte) error {
    	var errs []error
    	var totalSize uint64
    	for k, v := range annotations {
    		if fieldErr := validation.IsFullyQualifiedDomainName(field.NewPath("annotations"), k); fieldErr != nil {
    			errs = append(errs, fieldErr.ToAggregate())
    		}
    		totalSize += uint64(len(k)) + uint64(len(v))
    	}
    	if totalSize > annotationsMaxSize {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 00:23:50 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook.go

    	// compile all expressions once in validation and save the results to be used for eval later
    	cm, fieldErr := apiservervalidation.ValidateAndCompileMatchConditions(matchConditions)
    	if err := fieldErr.ToAggregate(); err != nil {
    		return nil, err
    	}
    	if cm != nil {
    		cm.AuthorizerType = "Webhook"
    		cm.AuthorizerName = name
    		cm.Metrics = am
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc.go

    func New(lifecycleCtx context.Context, opts Options) (AuthenticatorTokenWithHealthCheck, error) {
    	celMapper, fieldErr := apiservervalidation.CompileAndValidateJWTAuthenticator(opts.JWTAuthenticator, opts.DisallowedIssuers)
    	if err := fieldErr.ToAggregate(); err != nil {
    		return nil, err
    	}
    
    	supportedSigningAlgs := opts.SupportedSigningAlgs
    	if len(supportedSigningAlgs) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 19:29:33 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

          const DictValue& dict = value.dict_value();
          using FieldTy = protobuf::MapPair<std::string, StructuredValue>;
          llvm::SmallVector<const FieldTy*, 4> fields;
          for (auto& field : dict.fields()) {
            fields.push_back(&field);
          }
          llvm::sort(fields, [](const FieldTy* a, const FieldTy* b) {
            return a->first < b->first;
          });
          for (auto& field : fields) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
Back to top