rest

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

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 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