Documentation ¶
Index ¶
- Constants
- Variables
- func ClusterResourceBasePath(gvr schema.GroupVersionResource) string
- func ClusterResourcePath(gvr schema.GroupVersionResource) string
- func ComposeAPIDefinitions() []*restful.WebService
- func GroupBasePath(gvr schema.GroupVersion) string
- func GroupVersionBasePath(gvr schema.GroupVersion) string
- func NameParam(ws *restful.WebService) *restful.Parameter
- func NamespaceParam(ws *restful.WebService) *restful.Parameter
- func NamespacedResourceBasePath(gvr schema.GroupVersionResource) string
- func NamespacedResourcePath(gvr schema.GroupVersionResource) string
- func PortForwardPortParameter(ws *restful.WebService) *restful.Parameter
- func PortForwardProtocolParameter(ws *restful.WebService) *restful.Parameter
- func SubResourcePath(subResource string) string
Constants ¶
View Source
const ( NamespaceParamName = "namespace" NameParamName = "name" )
View Source
const ( PortParamName = "port" PortPath = "/{port:[0-9]+}" ProtocolParamName = "protocol" ProtocolPath = "/{protocol:tcp|udp}" )
Variables ¶
View Source
var Validator = openapi.CreateOpenAPIValidator(ComposeAPIDefinitions())
Functions ¶
func ClusterResourceBasePath ¶
func ClusterResourceBasePath(gvr schema.GroupVersionResource) string
func ClusterResourcePath ¶
func ClusterResourcePath(gvr schema.GroupVersionResource) string
func ComposeAPIDefinitions ¶
func ComposeAPIDefinitions() []*restful.WebService
func GroupBasePath ¶
func GroupBasePath(gvr schema.GroupVersion) string
func GroupVersionBasePath ¶
func GroupVersionBasePath(gvr schema.GroupVersion) string
func NamespaceParam ¶
func NamespaceParam(ws *restful.WebService) *restful.Parameter
func NamespacedResourceBasePath ¶
func NamespacedResourceBasePath(gvr schema.GroupVersionResource) string
func NamespacedResourcePath ¶
func NamespacedResourcePath(gvr schema.GroupVersionResource) string
func PortForwardPortParameter ¶
func PortForwardPortParameter(ws *restful.WebService) *restful.Parameter
func PortForwardProtocolParameter ¶
func PortForwardProtocolParameter(ws *restful.WebService) *restful.Parameter
func SubResourcePath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.