Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewClientWithOptions (0.16 sec)

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

    }
    
    // RequestTransform is a function that is given a chance to modify the outgoing request.
    type RequestTransform func(*rest.Request)
    
    // NewClientWithOptions wraps the provided RESTClient and invokes each transform on each
    // newly created request.
    func NewClientWithOptions(c RESTClient, transforms ...RequestTransform) RESTClient {
    	if len(transforms) == 0 {
    		return c
    	}
    	return &clientOptions{c: c, transforms: transforms}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 23:00:24 UTC 2019
    - 3.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/resource/builder.go

    	default:
    		client, err = b.clientConfigFn.withStdinUnavailable(b.stdinInUse).unstructuredClientForGroupVersion(gv)
    	}
    
    	if err != nil {
    		return nil, err
    	}
    
    	return NewClientWithOptions(client, b.requestTransforms...), nil
    }
    
    func (b *Builder) visitByResource() *Result {
    	// if b.singleItemImplied is false, this could be by default, so double-check length
    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