runtime

package
v0.0.0-...-be065d1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiRootPath = "/kapis"
)
View Source
const MimeJsonPatchJson = "application/json-patch+json"
View Source
const MimeMergePatchJson = "application/merge-patch+json"
View Source
const MimeMultipartFormData = "multipart/form-data"

Variables

View Source
var Container = restful.NewContainer()

container holds all webservice of apiserver

Functions

func NewWebService

func NewWebService(gv schema.GroupVersion) *restful.WebService

Types

type ContainerBuilder

type ContainerBuilder []func(c *restful.Container) error

func NewContainerBuilder

func NewContainerBuilder(funcs ...func(*restful.Container) error) ContainerBuilder

func (*ContainerBuilder) AddToContainer

func (cb *ContainerBuilder) AddToContainer(c *restful.Container) error

func (*ContainerBuilder) Register

func (cb *ContainerBuilder) Register(funcs ...func(*restful.Container) error)

Jump to

Keyboard shortcuts

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