Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResource ¶
@Summary 获取指定命名空间级别资源 @Description 例如ingress svc cm @Tags Namespace @Param cluster path string true "集群ID" @Param resources path string true "资源名称" @Param namespace path string true "命名空间名称" @Param name path string true "资源名称" @Param page query string false "当前页" @Param limit query string false "每页限制结果数" @Param labelSelector query string false "labelSelector过滤" @Param names query string false "fieldBy Metadata.name数组过滤 eg: /namespaces?names=default,kube,xiaoli" @Param name query string false "fieldBy Metadata.name基础过滤 eg: /namespaces?name=default" @Param namespace query string false "fieldBy Metadata.namespace 命名空间过滤 eg: /namespaces?namespace=dogo-system" @Param uid query string false "fieldBy Metadata.uid 过滤 eg: /namespaces?uid=abc-f6a5-4fea-9c1b-e57610115706" @Param ownerReference query string false "fieldBy Metadata.OwnerReference.uid 过滤 eg: /namespaces?ownerReference=a8a8d6cf-f6a5-4fea-9c1b-e57610115706" @Param ownerKind query string false "fieldBy Metadata.OwnerReference.ownerKind 过滤 eg: /namespaces?ownerKind=Workspace" @Param annotation query string false "fieldBy Metadata.Annotation 过滤 eg: /namespaces?annotation=enabled=true" @Param label query string false "fieldBy Metadata.Label 过滤 eg: /namespaces?label=geega.com/workspace=system-workspace" @Param sortBy query string false "字段排序,选项: name|creationTimestamp|createTime| 默认:creationTimestamp eg: ?sortBy=creationTimestamp" @Param ascending query string false "是否正序排序" @Success 200 {string} string "success" @Security ApiKeyAuth @Router /dogo-cache/cluster/{cluster}/resource/{resources}/namespace/{namespace}/{name} [get]
func ListResource ¶
@Summary 获取指定命名空间级别资源 @Description 例如ingress svc cm @Tags Namespace @Param cluster path string true "集群ID" @Param resources path string true "资源名称" @Param namespace path string true "命名空间名称" @Param page query string false "当前页" @Param limit query string false "每页限制结果数" @Param labelSelector query string false "labelSelector过滤" @Param names query string false "fieldBy Metadata.name数组过滤 eg: /namespaces?names=default,kube,xiaoli" @Param name query string false "fieldBy Metadata.name基础过滤 eg: /namespaces?name=default" @Param namespace query string false "fieldBy Metadata.namespace 命名空间过滤 eg: /namespaces?namespace=dogo-system" @Param uid query string false "fieldBy Metadata.uid 过滤 eg: /namespaces?uid=abc-f6a5-4fea-9c1b-e57610115706" @Param ownerReference query string false "fieldBy Metadata.OwnerReference.uid 过滤 eg: /namespaces?ownerReference=a8a8d6cf-f6a5-4fea-9c1b-e57610115706" @Param ownerKind query string false "fieldBy Metadata.OwnerReference.ownerKind 过滤 eg: /namespaces?ownerKind=Workspace" @Param annotation query string false "fieldBy Metadata.Annotation 过滤 eg: /namespaces?annotation=enabled=true" @Param label query string false "fieldBy Metadata.Label 过滤 eg: /namespaces?label=geega.com/workspace=system-workspace" @Param sortBy query string false "字段排序,选项: name|creationTimestamp|createTime| 默认:creationTimestamp eg: ?sortBy=creationTimestamp" @Param ascending query string false "是否正序排序" @Success 200 {string} string "success" @Security ApiKeyAuth @Router /dogo-cache/cluster/{cluster}/resource/{resources}/namespace/{namespace} [get]
Types ¶
This section is empty.