server

package
v0.0.0-...-7b9449e Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 24 Imported by: 7

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

Types

type APIGroupFunc

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

type Config

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

type Server

type Server struct {
	Config           *server.RecommendedConfig
	GenericAPIServer *server.GenericAPIServer
	// contains filtered or unexported fields
}

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