server

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const MinkHeaderKey = "X-Mink-Server"

Variables

This section is empty.

Functions

func BuildAPIGroups

func BuildAPIGroups[T any](arg T, factories ...APIGroupFunc[T]) (result []*server.APIGroupInfo, err error)

func DefaultOpts

func DefaultOpts() *options.RecommendedOptions

func NewAuditOptions

func NewAuditOptions(policyFile, logPath string) *options.AuditOptions

func Prep

func Prep(config *Config) (*server.RecommendedConfig, error)

Types

type APIGroupFunc

type APIGroupFunc[T any] func(T) (*server.APIGroupInfo, error)

type Config

type Config struct {
	Name                         string
	Version                      string
	HTTPListenPort               int
	HTTPSListenPort              int
	LongRunningVerbs             []string
	LongRunningResources         []string
	Scheme                       *runtime.Scheme
	CodecFactory                 *serializer.CodecFactory
	DefaultOptions               *options.RecommendedOptions
	AuditConfig                  *options.AuditOptions
	SkipInClusterLookup          bool
	RemoteKubeConfigFileOptional bool
	IgnoreStartFailure           bool
	Middleware                   []func(http.Handler) http.Handler
	Authenticator                authenticator.Request
	Authorization                authorizer.Authorizer
	OpenAPIConfig                openapicommon.GetOpenAPIDefinitions
	APIGroups                    []*server.APIGroupInfo
	PostStartFunc                server.PostStartHookFunc
	SupportAPIAggregation        bool
	ReadinessCheckers            []healthz.HealthChecker
}

func (*Config) Complete

func (c *Config) Complete()

type Server

type Server struct {
	MinkConfig       *Config
	Config           *server.RecommendedConfig
	GenericAPIServer *server.GenericAPIServer
}

func New

func New(config *Config) (*Server, error)

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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