Documentation ¶
Index ¶
- type AttachREST
- func (r *AttachREST) Connect(ctx context.Context, name string, opts runtime.Object, ...) (http.Handler, error)
- func (r *AttachREST) ConnectMethods() []string
- func (r *AttachREST) Destroy()
- func (r *AttachREST) New() runtime.Object
- func (r *AttachREST) NewConnectOptions() (runtime.Object, bool, string)
- type ExecREST
- type LogREST
- func (r *LogREST) Destroy()
- func (r *LogREST) Get(ctx context.Context, name string, opts runtime.Object) (runtime.Object, error)
- func (r *LogREST) New() runtime.Object
- func (r *LogREST) NewGetOptions() (runtime.Object, bool, string)
- func (r *LogREST) OverrideMetricsVerb(oldVerb string) (newVerb string)
- func (r *LogREST) ProducesMIMETypes(verb string) []string
- func (r *LogREST) ProducesObject(verb string) interface{}
- type PortForwardREST
- func (r *PortForwardREST) Connect(ctx context.Context, name string, opts runtime.Object, ...) (http.Handler, error)
- func (r *PortForwardREST) ConnectMethods() []string
- func (r *PortForwardREST) Destroy()
- func (r *PortForwardREST) New() runtime.Object
- func (r *PortForwardREST) NewConnectOptions() (runtime.Object, bool, string)
- type ProxyREST
- func (r *ProxyREST) Connect(ctx context.Context, id string, opts runtime.Object, responder rest.Responder) (http.Handler, error)
- func (r *ProxyREST) ConnectMethods() []string
- func (r *ProxyREST) Destroy()
- func (r *ProxyREST) New() runtime.Object
- func (r *ProxyREST) NewConnectOptions() (runtime.Object, bool, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachREST ¶
type AttachREST struct { Store *genericregistry.Store KubeletConn client.ConnectionInfoGetter }
AttachREST implements the attach subresource for a Pod
func (*AttachREST) Connect ¶
func (r *AttachREST) Connect(ctx context.Context, name string, opts runtime.Object, responder rest.Responder) (http.Handler, error)
Connect returns a handler for the pod exec proxy
func (*AttachREST) ConnectMethods ¶
func (r *AttachREST) ConnectMethods() []string
ConnectMethods returns the methods supported by exec
func (*AttachREST) Destroy ¶ added in v1.25.0
func (r *AttachREST) Destroy()
Destroy cleans up resources on shutdown.
func (*AttachREST) New ¶
func (r *AttachREST) New() runtime.Object
New creates a new podAttachOptions object.
func (*AttachREST) NewConnectOptions ¶
func (r *AttachREST) NewConnectOptions() (runtime.Object, bool, string)
NewConnectOptions returns the versioned object that represents exec parameters
type ExecREST ¶
type ExecREST struct { Store *genericregistry.Store KubeletConn client.ConnectionInfoGetter }
ExecREST implements the exec subresource for a Pod
func (*ExecREST) Connect ¶
func (r *ExecREST) Connect(ctx context.Context, name string, opts runtime.Object, responder rest.Responder) (http.Handler, error)
Connect returns a handler for the pod exec proxy
func (*ExecREST) ConnectMethods ¶
ConnectMethods returns the methods supported by exec
func (*ExecREST) Destroy ¶ added in v1.25.0
func (r *ExecREST) Destroy()
Destroy cleans up resources on shutdown.
type LogREST ¶
type LogREST struct { KubeletConn client.ConnectionInfoGetter Store *genericregistry.Store }
LogREST implements the log endpoint for a Pod
func (*LogREST) Destroy ¶ added in v1.25.0
func (r *LogREST) Destroy()
Destroy cleans up resources on shutdown.
func (*LogREST) Get ¶
func (r *LogREST) Get(ctx context.Context, name string, opts runtime.Object) (runtime.Object, error)
Get retrieves a runtime.Object that will stream the contents of the pod log
func (*LogREST) NewGetOptions ¶
NewGetOptions creates a new options object
func (*LogREST) OverrideMetricsVerb ¶ added in v1.8.0
OverrideMetricsVerb override the GET verb to CONNECT for pod log resource
func (*LogREST) ProducesMIMETypes ¶
ProducesMIMETypes returns a list of the MIME types the specified HTTP verb (GET, POST, DELETE, PATCH) can respond with.
func (*LogREST) ProducesObject ¶
ProducesObject returns an object the specified HTTP verb respond with. It will overwrite storage object if it is not nil. Only the type of the return object matters, the value will be ignored.
type PortForwardREST ¶
type PortForwardREST struct { Store *genericregistry.Store KubeletConn client.ConnectionInfoGetter }
PortForwardREST implements the portforward subresource for a Pod
func (*PortForwardREST) Connect ¶
func (r *PortForwardREST) Connect(ctx context.Context, name string, opts runtime.Object, responder rest.Responder) (http.Handler, error)
Connect returns a handler for the pod portforward proxy
func (*PortForwardREST) ConnectMethods ¶
func (r *PortForwardREST) ConnectMethods() []string
ConnectMethods returns the methods supported by portforward
func (*PortForwardREST) Destroy ¶ added in v1.25.0
func (r *PortForwardREST) Destroy()
Destroy cleans up resources on shutdown.
func (*PortForwardREST) New ¶
func (r *PortForwardREST) New() runtime.Object
New returns an empty podPortForwardOptions object
func (*PortForwardREST) NewConnectOptions ¶
func (r *PortForwardREST) NewConnectOptions() (runtime.Object, bool, string)
NewConnectOptions returns the versioned object that represents the portforward parameters
type ProxyREST ¶
type ProxyREST struct { Store *genericregistry.Store ProxyTransport http.RoundTripper }
ProxyREST implements the proxy subresource for a Pod
func (*ProxyREST) Connect ¶
func (r *ProxyREST) Connect(ctx context.Context, id string, opts runtime.Object, responder rest.Responder) (http.Handler, error)
Connect returns a handler for the pod proxy
func (*ProxyREST) ConnectMethods ¶
ConnectMethods returns the list of HTTP methods that can be proxied
func (*ProxyREST) Destroy ¶ added in v1.25.0
func (r *ProxyREST) Destroy()
Destroy cleans up resources on shutdown.