rest

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggregatedWebServices

func AggregatedWebServices() []*restful.WebService

func DeleteAction added in v1.4.0

func DeleteAction(gr *GenericResource, ws *restful.WebService) *restful.RouteBuilder

func GetAction added in v1.4.0

func GetAll added in v1.4.0

func GetNamespacedAll added in v1.4.0

func GetNamespacedAll(gr *GenericResource, ws *restful.WebService) *restful.RouteBuilder

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 NewGenericResource added in v1.4.0

func NewGenericResource(ws *restful.WebService, resource string, objPointer runtime.Object, objKind string, objListPointer runtime.Object, namespaced bool, actions []Action)

func NewGroupVersionWebService

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

func Noop

func PatchAction added in v1.4.0

func PatchAction(gr *GenericResource, ws *restful.WebService) *restful.RouteBuilder

func PostAction added in v1.4.0

func PutAction added in v1.4.0

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 Action added in v1.4.0

type Action func(gr *GenericResource, ws *restful.WebService) *restful.RouteBuilder

type DefinitionsChain

type DefinitionsChain []DefinitionsFunc

type DefinitionsFunc

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

type GenericResource added in v1.4.0

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

func (*GenericResource) Build added in v1.4.0

func (gr *GenericResource) Build()

Jump to

Keyboard shortcuts

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