server

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCueServerToGenericAPIServer

func RegisterCueServerToGenericAPIServer(server *server.GenericAPIServer) *server.GenericAPIServer

RegisterCueServerToGenericAPIServer register cue compile path to apiserver

func RegisterCuexServerToGenericAPIServer

func RegisterCuexServerToGenericAPIServer(server *server.GenericAPIServer) *server.GenericAPIServer

RegisterCuexServerToGenericAPIServer register cuex compile path to apiserver

func RegisterGenericAPIServer

func RegisterGenericAPIServer(server *server.GenericAPIServer) *server.GenericAPIServer

RegisterGenericAPIServer register cue & cuex compile path to apiserver

Types

type CompileFn

type CompileFn func(context.Context, string) (cue.Value, error)

CompileFn function for compile

type CompileServer

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

CompileServer server for compile cue value

func NewCompileServer

func NewCompileServer(fn CompileFn) *CompileServer

NewCompileServer create CompileServer

func (*CompileServer) Handle

func (in *CompileServer) Handle(request *restful.Request, response *restful.Response)

Handle rest request

func (*CompileServer) ServeHTTP

func (in *CompileServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP .

Jump to

Keyboard shortcuts

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