package etcd
import "k8s.io/kubernetes/pkg/registry/pod/etcd"
Index ¶
- type AttachREST
- func (r *AttachREST) Connect(ctx api.Context, name string, opts runtime.Object) (rest.ConnectHandler, error)
- func (r *AttachREST) ConnectMethods() []string
- func (r *AttachREST) New() runtime.Object
- func (r *AttachREST) NewConnectOptions() (runtime.Object, bool, string)
- type BindingREST
- func (r *BindingREST) Create(ctx api.Context, obj runtime.Object) (out runtime.Object, err error)
- func (r *BindingREST) New() runtime.Object
- type ExecREST
- func (r *ExecREST) Connect(ctx api.Context, name string, opts runtime.Object) (rest.ConnectHandler, error)
- func (r *ExecREST) ConnectMethods() []string
- func (r *ExecREST) New() runtime.Object
- func (r *ExecREST) NewConnectOptions() (runtime.Object, bool, string)
- type LogREST
- func (r *LogREST) Get(ctx api.Context, name string, opts runtime.Object) (runtime.Object, error)
- func (r *LogREST) New() runtime.Object
- func (r *LogREST) NewGetOptions() (runtime.Object, bool, string)
- type PodStorage
- type PortForwardREST
- func (r *PortForwardREST) Connect(ctx api.Context, name string, opts runtime.Object) (rest.ConnectHandler, error)
- func (r *PortForwardREST) ConnectMethods() []string
- func (r *PortForwardREST) New() runtime.Object
- func (r *PortForwardREST) NewConnectOptions() (runtime.Object, bool, string)
- type ProxyREST
- func (r *ProxyREST) Connect(ctx api.Context, id string, opts runtime.Object) (rest.ConnectHandler, error)
- func (r *ProxyREST) ConnectMethods() []string
- func (r *ProxyREST) New() runtime.Object
- func (r *ProxyREST) NewConnectOptions() (runtime.Object, bool, string)
- type REST
- type StatusREST
Types ¶
type AttachREST ¶
type AttachREST struct {
// contains filtered or unexported fields
}
AttachREST implements the attach subresource for a Pod TODO: move me into pod/rest - I'm generic to store type via ResourceGetter
func (*AttachREST) Connect ¶
func (r *AttachREST) Connect(ctx api.Context, name string, opts runtime.Object) (rest.ConnectHandler, 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 BindingREST ¶
type BindingREST struct {
// contains filtered or unexported fields
}
BindingREST implements the REST endpoint for binding pods to nodes when etcd is in use.
func (*BindingREST) Create ¶
Create ensures a pod is bound to a specific host.
func (*BindingREST) New ¶
func (r *BindingREST) New() runtime.Object
New creates a new binding resource
type ExecREST ¶
type ExecREST struct {
// contains filtered or unexported fields
}
ExecREST implements the exec subresource for a Pod TODO: move me into pod/rest - I'm generic to store type via ResourceGetter
func (*ExecREST) Connect ¶
func (r *ExecREST) Connect(ctx api.Context, name string, opts runtime.Object) (rest.ConnectHandler, error)
Connect returns a handler for the pod exec proxy
func (*ExecREST) ConnectMethods ¶
ConnectMethods returns the methods supported by exec
func (*ExecREST) New ¶
New creates a new Pod object
func (*ExecREST) NewConnectOptions ¶
NewConnectOptions returns the versioned object that represents exec parameters
type LogREST ¶
type LogREST struct {
// contains filtered or unexported fields
}
LogREST implements the log endpoint for a Pod TODO: move me into pod/rest - I'm generic to store type via ResourceGetter
func (*LogREST) Get ¶
Get retrieves a runtime.Object that will stream the contents of the pod log
func (*LogREST) New ¶
New creates a new Pod log options object
func (*LogREST) NewGetOptions ¶
NewGetOptions creates a new options object
type PodStorage ¶
type PodStorage struct { Pod *REST Binding *BindingREST Status *StatusREST Log *LogREST Proxy *ProxyREST Exec *ExecREST Attach *AttachREST PortForward *PortForwardREST }
PodStorage includes storage for pods and all sub resources
func NewStorage ¶
func NewStorage(s storage.Interface, useCacher bool, k client.ConnectionInfoGetter, proxyTransport http.RoundTripper) PodStorage
NewStorage returns a RESTStorage object that will work against pods.
type PortForwardREST ¶
type PortForwardREST struct {
// contains filtered or unexported fields
}
PortForwardREST implements the portforward subresource for a Pod TODO: move me into pod/rest - I'm generic to store type via ResourceGetter
func (*PortForwardREST) Connect ¶
func (r *PortForwardREST) Connect(ctx api.Context, name string, opts runtime.Object) (rest.ConnectHandler, 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 {
// contains filtered or unexported fields
}
ProxyREST implements the proxy subresource for a Pod TODO: move me into pod/rest - I'm generic to store type via ResourceGetter
func (*ProxyREST) Connect ¶
func (r *ProxyREST) Connect(ctx api.Context, id string, opts runtime.Object) (rest.ConnectHandler, 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) New ¶
New returns an empty pod resource
func (*ProxyREST) NewConnectOptions ¶
NewConnectOptions returns versioned resource that represents proxy parameters
type REST ¶
type REST struct { *etcdgeneric.Etcd // contains filtered or unexported fields }
REST implements a RESTStorage for pods against etcd
func (*REST) ResourceLocation ¶
ResourceLocation returns a pods location from its HostIP
type StatusREST ¶
type StatusREST struct {
// contains filtered or unexported fields
}
StatusREST implements the REST endpoint for changing the status of a pod.
func (*StatusREST) New ¶
func (r *StatusREST) New() runtime.Object
New creates a new pod resource
func (*StatusREST) Update ¶
Update alters the status subset of an object.
Source Files ¶
etcd.go
- Version
- v1.1.8
- Published
- Feb 23, 2016
- Platform
- js/wasm
- Imports
- 21 packages
- Last checked
- 2 minutes ago –
Tools for package owners.