kubernetes: k8s.io/kubernetes/pkg/registry/core/pod/rest Index | Files

package rest

import "k8s.io/kubernetes/pkg/registry/core/pod/rest"

Index

Package Files

log.go subresources.go

type AttachREST Uses

type AttachREST struct {
    Store       *genericregistry.Store
    KubeletConn client.ConnectionInfoGetter
}

AttachREST implements the attach subresource for a Pod

func (*AttachREST) Connect Uses

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 Uses

func (r *AttachREST) ConnectMethods() []string

ConnectMethods returns the methods supported by exec

func (*AttachREST) New Uses

func (r *AttachREST) New() runtime.Object

New creates a new podAttachOptions object.

func (*AttachREST) NewConnectOptions Uses

func (r *AttachREST) NewConnectOptions() (runtime.Object, bool, string)

NewConnectOptions returns the versioned object that represents exec parameters

type ExecREST Uses

type ExecREST struct {
    Store       *genericregistry.Store
    KubeletConn client.ConnectionInfoGetter
}

ExecREST implements the exec subresource for a Pod

func (*ExecREST) Connect Uses

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 Uses

func (r *ExecREST) ConnectMethods() []string

ConnectMethods returns the methods supported by exec

func (*ExecREST) New Uses

func (r *ExecREST) New() runtime.Object

New creates a new podExecOptions object.

func (*ExecREST) NewConnectOptions Uses

func (r *ExecREST) NewConnectOptions() (runtime.Object, bool, string)

NewConnectOptions returns the versioned object that represents exec parameters

type LogREST Uses

type LogREST struct {
    KubeletConn client.ConnectionInfoGetter
    Store       *genericregistry.Store
}

LogREST implements the log endpoint for a Pod

func (*LogREST) Get Uses

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) New Uses

func (r *LogREST) New() runtime.Object

New creates a new Pod log options object

func (*LogREST) NewGetOptions Uses

func (r *LogREST) NewGetOptions() (runtime.Object, bool, string)

NewGetOptions creates a new options object

func (*LogREST) OverrideMetricsVerb Uses

func (r *LogREST) OverrideMetricsVerb(oldVerb string) (newVerb string)

OverrideMetricsVerb override the GET verb to CONNECT for pod log resource

func (*LogREST) ProducesMIMETypes Uses

func (r *LogREST) ProducesMIMETypes(verb string) []string

LogREST implements StorageMetadata

func (*LogREST) ProducesObject Uses

func (r *LogREST) ProducesObject(verb string) interface{}

LogREST implements StorageMetadata, return string as the generating object

type PortForwardREST Uses

type PortForwardREST struct {
    Store       *genericregistry.Store
    KubeletConn client.ConnectionInfoGetter
}

PortForwardREST implements the portforward subresource for a Pod

func (*PortForwardREST) Connect Uses

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 Uses

func (r *PortForwardREST) ConnectMethods() []string

ConnectMethods returns the methods supported by portforward

func (*PortForwardREST) New Uses

func (r *PortForwardREST) New() runtime.Object

New returns an empty podPortForwardOptions object

func (*PortForwardREST) NewConnectOptions Uses

func (r *PortForwardREST) NewConnectOptions() (runtime.Object, bool, string)

NewConnectOptions returns the versioned object that represents the portforward parameters

type ProxyREST Uses

type ProxyREST struct {
    Store          *genericregistry.Store
    ProxyTransport http.RoundTripper
}

ProxyREST implements the proxy subresource for a Pod

func (*ProxyREST) Connect Uses

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 Uses

func (r *ProxyREST) ConnectMethods() []string

ConnectMethods returns the list of HTTP methods that can be proxied

func (*ProxyREST) New Uses

func (r *ProxyREST) New() runtime.Object

New returns an empty podProxyOptions object.

func (*ProxyREST) NewConnectOptions Uses

func (r *ProxyREST) NewConnectOptions() (runtime.Object, bool, string)

NewConnectOptions returns versioned resource that represents proxy parameters

Package rest imports 18 packages (graph) and is imported by 3 packages. Updated 2019-07-17. Refresh now. Tools for package owners.