forward

package
v0.0.0-...-5ee5d88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

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

func ToSelectableFields

func ToSelectableFields(pod *corev1.Pod) fields.Set

ToSelectableFields returns a field set that represents the object TODO: fields are not labels, and the validation rules for them do not apply.

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 (p *PodREST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)

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 (*PodREST) NewList

func (p *PodREST) NewList() runtime.Object

func (*PodREST) Watch

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL