Documentation ¶
Index ¶
- func AggregatedWebServices() []*restful.WebService
- func DeleteAction(gr *GenericResource, ws *restful.WebService) *restful.RouteBuilder
- func GetAction(gr *GenericResource, ws *restful.WebService) *restful.RouteBuilder
- func GetAll(gr *GenericResource, ws *restful.WebService) *restful.RouteBuilder
- func GetNamespacedAll(gr *GenericResource, ws *restful.WebService) *restful.RouteBuilder
- func GroupVersionBasePath(gvr schema.GroupVersion) string
- func MetaRequired(definitions map[string]common.OpenAPIDefinition)
- func NameParam(ws *restful.WebService) *restful.Parameter
- func NamespaceParam(ws *restful.WebService) *restful.Parameter
- func NewGenericResource(ws *restful.WebService, resource string, objPointer runtime.Object, ...)
- func NewGroupVersionWebService(gv schema.GroupVersion) *restful.WebService
- func Noop(*restful.Request, *restful.Response)
- func PatchAction(gr *GenericResource, ws *restful.WebService) *restful.RouteBuilder
- func PostAction(gr *GenericResource, ws *restful.WebService) *restful.RouteBuilder
- func PutAction(gr *GenericResource, ws *restful.WebService) *restful.RouteBuilder
- func ResourceBasePath(resource string, namespaced bool) string
- func ResourcePath(resource string, namespaced bool) string
- func SetDefinitions(definitions map[string]common.OpenAPIDefinition) map[string]common.OpenAPIDefinition
- type Action
- type DefinitionsChain
- type DefinitionsFunc
- type GenericResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AggregatedWebServices ¶
func AggregatedWebServices() []*restful.WebService
func DeleteAction ¶
func DeleteAction(gr *GenericResource, ws *restful.WebService) *restful.RouteBuilder
func GetAction ¶
func GetAction(gr *GenericResource, ws *restful.WebService) *restful.RouteBuilder
func GetAll ¶
func GetAll(gr *GenericResource, ws *restful.WebService) *restful.RouteBuilder
func GetNamespacedAll ¶
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 NamespaceParam ¶
func NamespaceParam(ws *restful.WebService) *restful.Parameter
func NewGenericResource ¶
func NewGroupVersionWebService ¶
func NewGroupVersionWebService(gv schema.GroupVersion) *restful.WebService
func PatchAction ¶
func PatchAction(gr *GenericResource, ws *restful.WebService) *restful.RouteBuilder
func PostAction ¶
func PostAction(gr *GenericResource, ws *restful.WebService) *restful.RouteBuilder
func PutAction ¶
func PutAction(gr *GenericResource, ws *restful.WebService) *restful.RouteBuilder
func ResourceBasePath ¶
func ResourcePath ¶
func SetDefinitions ¶
func SetDefinitions(definitions map[string]common.OpenAPIDefinition) map[string]common.OpenAPIDefinition
Types ¶
type Action ¶
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 ¶
type GenericResource struct {
// contains filtered or unexported fields
}
func (*GenericResource) Build ¶
func (gr *GenericResource) Build()
Click to show internal directories.
Click to hide internal directories.