package service
import "k8s.io/kubernetes/pkg/registry/core/service"
Package service provides the Registry interface and its RESTStorage implementation for storing Service api objects.
Index ¶
- Variables
- func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)
- func Matcher(label labels.Selector, field fields.Selector) pkgstorage.SelectionPredicate
- func SelectableFields(service *api.Service) fields.Set
- 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)
Variables ¶
var StatusStrategy = serviceStatusStrategy{Strategy}
StatusStrategy wraps and exports the used svcStrategy for the storage package.
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 ¶
func GetAttrs ¶
GetAttrs returns labels and fields of a given object for filtering purposes.
func Matcher ¶
func Matcher(label labels.Selector, field fields.Selector) pkgstorage.SelectionPredicate
Matcher returns a selection predicate for a given label and field selector.
func SelectableFields ¶
SelectableFields returns a field set that can be used for filter selection
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 ¶
func (r *ProxyREST) Destroy()
Destroy cleans up resources on shutdown.
func (*ProxyREST) New ¶
New returns an empty service resource
func (*ProxyREST) NewConnectOptions ¶
NewConnectOptions returns versioned resource that represents proxy parameters
Source Files ¶
doc.go proxy.go strategy.go
Directories ¶
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 25 packages
- Last checked
- 3 hours ago –
Tools for package owners.