server

package
v0.0.0-...-52cadad Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConfigRequired = errors.New("rest config is required")

Functions

This section is empty.

Types

type Controllers

type Controllers struct {
	K8s    kubernetes.Interface
	Router *router.Router
}

func NewController

func NewController(cfg *rest.Config) (*Controllers, error)

func (*Controllers) Start

func (c *Controllers) Start(ctx context.Context) error

type Options

type Options struct {
	// Controllers If the controllers are passed in the caller must also start the controllers
	Controllers     *Controllers
	ClientFactory   *client.Factory
	AccessSetLookup accesscontrol.AccessSetLookup
	AuthMiddleware  auth.Middleware
	Next            http.Handler
	Router          router.RouterFunc
	ServerVersion   string
}

type Server

type Server struct {
	http.Handler

	ClientFactory   *client.Factory
	SchemaFactory   schema.Factory
	RESTConfig      *rest.Config
	BaseSchemas     *types.APISchemas
	AccessSetLookup accesscontrol.AccessSetLookup
	APIServer       *handler.Server
	Version         string
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, restConfig *rest.Config, opts *Options) (*Server, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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