apiserver

package
v0.0.0-...-2350287 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultLegacyAPIPrefix is where the legacy APIs will be located.
	DefaultLegacyAPIPrefix = "/api"

	// APIGroupPrefix is where non-legacy API group will be located.
	APIGroupPrefix = "/apis"
)

Variables

This section is empty.

Functions

func NewRequestInfoResolver

func NewRequestInfoResolver(o *Options) *apirequest.RequestInfoFactory

Types

type Options

type Options struct {
	Config               *rest.Config
	SecureServingOptions *options.SecureServingOptions

	RequestInfoResolver    apirequest.RequestInfoResolver
	LegacyAPIGroupPrefixes sets.String
	LongRunningFunc        apirequest.LongRunningRequestCheck
	HandlerChainWaitGroup  *utilwaitgroup.SafeWaitGroup

	LeaderElectionName string
	UserAgentOverride  string
	SpecManager        *protomanager.SpecManager
}

Options contains everything necessary to create and run proxy.

func NewOptions

func NewOptions() *Options

func (*Options) ApplyTo

func (o *Options) ApplyTo(apiserver **server.SecureServingInfo) error

func (*Options) Validate

func (o *Options) Validate() []error

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(opts *Options) (*Proxy, error)

func (*Proxy) Start

func (p *Proxy) Start(ctx context.Context) (<-chan struct{}, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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