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

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

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 service resource

func (*ProxyREST) NewConnectOptions

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

NewConnectOptions returns versioned resource that represents proxy parameters

type Strategy

func NewServiceStatusStrategy

func NewServiceStatusStrategy(strategy Strategy) Strategy

NewServiceStatusStrategy creates a status strategy for the provided base strategy.

func StrategyForServiceCIDRs

func StrategyForServiceCIDRs(primaryCIDR net.IPNet, hasSecondary bool) (Strategy, api.IPFamily)

StrategyForServiceCIDRs returns the appropriate service strategy for the given configuration.

Source Files

doc.go proxy.go strategy.go

Directories

PathSynopsis
pkg/registry/core/service/allocator
pkg/registry/core/service/allocator/storage
pkg/registry/core/service/ipallocator
pkg/registry/core/service/ipallocator/controller
pkg/registry/core/service/ipallocator/storage
pkg/registry/core/service/portallocator
pkg/registry/core/service/portallocator/controller
pkg/registry/core/service/portallocator/storage
pkg/registry/core/service/storage
Version
v1.23.17
Published
Feb 22, 2023
Platform
js/wasm
Imports
21 packages
Last checked
15 seconds ago

Tools for package owners.