Documentation ¶
Index ¶
- func NewConfigWithImpersonate(ctx context.Context, config *restclient.Config) (*restclient.Config, error)
- func NewRequestForProxy(location *url.URL, req *http.Request, info *request.RequestInfo) (*http.Request, context.CancelFunc)
- func ToSelectableFields(pod *corev1.Pod) fields.Set
- type ForwardHandler
- type PodHandler
- type PodREST
- func (p *PodREST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (p *PodREST) Get(ctx context.Context, name string, opts *metav1.GetOptions) (runtime.Object, error)
- func (p *PodREST) Handler(requestInfo *genericapirequest.RequestInfo) (http.Handler, error)
- func (p *PodREST) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
- func (p *PodREST) NewList() runtime.Object
- func (p *PodREST) Watch(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfigWithImpersonate ¶
func NewConfigWithImpersonate(ctx context.Context, config *restclient.Config) (*restclient.Config, error)
func NewRequestForProxy ¶
func NewRequestForProxy( location *url.URL, req *http.Request, info *request.RequestInfo, ) (*http.Request, context.CancelFunc)
NewRequestForProxy returns a shallow copy of the original request with a context that may include a timeout for discovery requests
Types ¶
type ForwardHandler ¶
type ForwardHandler interface {
Handler(info *request.RequestInfo, isHPA bool) (http.Handler, error)
}
func NewForwardHandler ¶
func NewForwardHandler(config *restclient.Config) ForwardHandler
type PodHandler ¶
type PodHandler interface {
Handler(requestInfo *genericapirequest.RequestInfo) (http.Handler, error)
}
type PodREST ¶
type PodREST struct {
// contains filtered or unexported fields
}
func NewPodREST ¶
func NewPodREST( f informermanager.FederatedInformerManager, podLister cache.GenericLister, minRequestTimeout time.Duration, ) *PodREST
func (*PodREST) ConvertToTable ¶
func (*PodREST) Get ¶
func (p *PodREST) Get(ctx context.Context, name string, opts *metav1.GetOptions) (runtime.Object, error)
Get ...
func (*PodREST) Handler ¶
func (p *PodREST) Handler(requestInfo *genericapirequest.RequestInfo) (http.Handler, error)
func (*PodREST) List ¶
func (p *PodREST) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
func (*PodREST) Watch ¶
func (p *PodREST) Watch(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error)
Click to show internal directories.
Click to hide internal directories.