Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TargetsSingleItems (0.21 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/resource/result.go

    	sources            []Visitor
    	singleItemImplied  bool
    	targetsSingleItems bool
    
    	mapper       *mapper
    	ignoreErrors []utilerrors.Matcher
    
    	// populated by a call to Infos
    	info []*Info
    }
    
    // withError allows a fluent style for internal result code.
    func (r *Result) withError(err error) *Result {
    	r.err = err
    	return r
    }
    
    // TargetsSingleItems returns true if any of the builder arguments pointed
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 23:00:24 UTC 2019
    - 7.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/resource/builder.go

    	}
    	return &Result{err: missingResourceError}
    }
    
    func (b *Builder) visitBySelector() *Result {
    	result := &Result{
    		targetsSingleItems: false,
    	}
    
    	if len(b.names) != 0 {
    		return result.withError(fmt.Errorf("name cannot be provided when a selector is specified"))
    	}
    	if len(b.resourceTuples) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 10:17:56 UTC 2023
    - 37.2K bytes
    - Viewed (0)
Back to top