rest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2016 License: Apache-2.0, Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachREST

type AttachREST struct {
	Store       *etcdgeneric.Etcd
	KubeletConn client.ConnectionInfoGetter
}

AttachREST implements the attach subresource for a Pod

func (*AttachREST) Connect

func (r *AttachREST) Connect(ctx api.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) New

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

New creates a new Pod 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       *etcdgeneric.Etcd
	KubeletConn client.ConnectionInfoGetter
}

ExecREST implements the exec subresource for a Pod

func (*ExecREST) Connect

func (r *ExecREST) Connect(ctx api.Context, name string, opts runtime.Object, responder rest.Responder) (http.Handler, error)

Connect returns a handler for the pod exec proxy

func (*ExecREST) ConnectMethods

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

ConnectMethods returns the methods supported by exec

func (*ExecREST) New

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

New creates a new Pod object

func (*ExecREST) NewConnectOptions

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

NewConnectOptions returns the versioned object that represents exec parameters

type LogREST

type LogREST struct {
	KubeletConn client.ConnectionInfoGetter
	Store       *etcdgeneric.Etcd
}

LogREST implements the log endpoint for a Pod

func (*LogREST) Get

func (r *LogREST) Get(ctx api.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

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

New creates a new Pod log options object

func (*LogREST) NewGetOptions

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

NewGetOptions creates a new options object

type PortForwardREST

type PortForwardREST struct {
	Store       *etcdgeneric.Etcd
	KubeletConn client.ConnectionInfoGetter
}

PortForwardREST implements the portforward subresource for a Pod

func (*PortForwardREST) Connect

func (r *PortForwardREST) Connect(ctx api.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) New

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

New returns an empty pod object

func (*PortForwardREST) NewConnectOptions

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

NewConnectOptions returns nil since portforward doesn't take additional parameters

type ProxyREST

type ProxyREST struct {
	Store          *etcdgeneric.Etcd
	ProxyTransport http.RoundTripper
}

ProxyREST implements the proxy subresource for a Pod

func (*ProxyREST) Connect

func (r *ProxyREST) Connect(ctx api.Context, id string, opts runtime.Object, responder rest.Responder) (http.Handler, error)

Connect returns a handler for the pod proxy

func (*ProxyREST) ConnectMethods

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

ConnectMethods returns the list of HTTP methods that can be proxied

func (*ProxyREST) New

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

New returns an empty pod resource

func (*ProxyREST) NewConnectOptions

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

NewConnectOptions returns versioned resource that represents proxy parameters

Jump to

Keyboard shortcuts

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