Documentation ¶
Overview ¶
Package service provides the Registry interface and its RESTStorage implementation for storing Service api objects.
Index ¶
- Variables
- 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 ¶
View Source
var StatusStrategy = serviceStatusStrategy{Strategy}
StatusStrategy wraps and exports the used svcStrategy for the storage package.
View Source
var Strategy = svcStrategy{legacyscheme.Scheme, names.SimpleNameGenerator}
Strategy is the default logic that applies when creating and updating Services objects via the REST API.
Functions ¶
This section is empty.
Types ¶
type ProxyREST ¶
type ProxyREST struct { Redirector rest.Redirector ProxyTransport http.RoundTripper }
ProxyREST implements the proxy subresource for a Service
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 service 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.
Click to show internal directories.
Click to hide internal directories.