service

package
v1.21.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 20 Imported by: 52

Documentation

Overview

Package service provides the Registry interface and its RESTStorage implementation for storing Service api objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeClusterIPs added in v1.20.0

func NormalizeClusterIPs(oldSvc, newSvc *api.Service)

NormalizeClusterIPs adjust clusterIPs based on ClusterIP. This must not consider any other fields.

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

type Strategy interface {
	rest.RESTCreateUpdateStrategy
}

func NewServiceStatusStrategy added in v1.19.0

func NewServiceStatusStrategy(strategy Strategy) Strategy

NewServiceStatusStrategy creates a status strategy for the provided base strategy.

func StrategyForServiceCIDRs added in v1.19.0

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

StrategyForServiceCIDRs returns the appropriate service strategy for the given configuration.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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