rest

package
v0.0.2-pre Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGenericNamespacedResourceRoutes

func AddGenericNamespacedResourceRoutes(ws *restful.WebService, resource string, objPointer runtime.Object, objKind string, objListPointer runtime.Object, actions ...string)

func AddGenericNonNamespacedResourceRoutes

func AddGenericNonNamespacedResourceRoutes(ws *restful.WebService, resource string, objPointer runtime.Object, objKind string, objListPointer runtime.Object, actions ...string)

func AddGenericResourceRoutes

func AddGenericResourceRoutes(ws *restful.WebService, resource string, objPointer runtime.Object, objKind string, objListPointer runtime.Object, namespaced bool, actions ...string)

func AggregatedWebServices

func AggregatedWebServices() []*restful.WebService

func GroupVersionBasePath

func GroupVersionBasePath(gvr schema.GroupVersion) string

func MetaRequired

func MetaRequired(definitions map[string]common.OpenAPIDefinition)

MetaRequired sets name, kind, and apiVersion to be required

func NameParam

func NameParam(ws *restful.WebService) *restful.Parameter

func NamespaceParam

func NamespaceParam(ws *restful.WebService) *restful.Parameter

func NewGroupVersionWebService

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

func Noop

func Noop(request *restful.Request, response *restful.Response)

func ResourceBasePath

func ResourceBasePath(resource string, namespaced bool) string

func ResourcePath

func ResourcePath(resource string, namespaced bool) string

func SetDefinitions

func SetDefinitions(definitions map[string]common.OpenAPIDefinition) map[string]common.OpenAPIDefinition

Types

type DefinitionsChain

type DefinitionsChain []DefinitionsFunc

type DefinitionsFunc

type DefinitionsFunc func(map[string]common.OpenAPIDefinition)

Jump to

Keyboard shortcuts

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