Documentation ¶
Index ¶
- type HostController
- func (this *HostController) GetHostBenchMarkLogInfo()
- func (this *HostController) GetHostBenchMarkLogList()
- func (this *HostController) GetHostCmdHistoryList()
- func (this *HostController) GetHostConfigList()
- func (this *HostController) GetHostContainerConfigList()
- func (this *HostController) GetHostContainerInfoList()
- func (this *HostController) GetHostImageInfo()
- func (this *HostController) GetHostImagesList()
- func (this *HostController) GetHostInfoList()
- func (this *HostController) GetHostPodList()
- func (this *HostController) GetHostPsList()
- func (this *HostController) SetClientModule()
- type ImageController
- type K8SController
- func (this *K8SController) BindAccount()
- func (this *K8SController) GetClusters()
- func (this *K8SController) GetContainerCmdHistorys()
- func (this *K8SController) GetContainerConfig()
- func (this *K8SController) GetContainerImageInfo()
- func (this *K8SController) GetContainerInfo()
- func (this *K8SController) GetNameSpaces()
- func (this *K8SController) GetPods()
- func (this *K8SController) UnBindAccount()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostController ¶
type HostController struct {
beego.Controller
}
Asset host object api list
func (*HostController) GetHostBenchMarkLogInfo ¶
func (this *HostController) GetHostBenchMarkLogInfo()
@Title HostBenchMarkLogInfo @Description Get HostBenchMarkLog Info @Param token header string true "authToken" @Param hostId path string "" true "hostId" @Param bmlId path string "" true "benchMarkLogId" @Success 200 {object} models.Result @router /:hostId/hostbmls/:bmlId [post]
func (*HostController) GetHostBenchMarkLogList ¶
func (this *HostController) GetHostBenchMarkLogList()
@Title HostBenchMarkLog @Description Get HostBenchMarkLog List @Param token header string true "authToken" @Param hostId path string "" true "hostId" @Param body body models.BenchMarkLog false "基线日志信息" @Param from query int 0 false "from" @Param limit query int 20 false "limit" @Success 200 {object} models.Result @router /:hostId/hostbmls [post]
func (*HostController) GetHostCmdHistoryList ¶
func (this *HostController) GetHostCmdHistoryList()
@Title HostCmdHistory @Description Get HostCmdHistory List @Param token header string true "authToken" @Param hostId path string "" true "hostId" @Param body body models.CmdHistory false "主机命令历史信息" @Param from query int 0 false "from" @Param limit query int 20 false "limit" @Success 200 {object} models.Result @router /:hostId/cmdhistory [post]
func (*HostController) GetHostConfigList ¶
func (this *HostController) GetHostConfigList()
@Title GetHostConfig @Description Get HostConfig List @Param token header string true "authToken" @Param user query string "admin" true "diss api 系统的登入用户 如果用户all, 直接根据租户查询" @Param body body models.HostConfig false "主机配置信息" @Param from query int 0 false "from" @Param limit query int 20 false "limit" @Success 200 {object} models.Result @router / [post]
func (*HostController) GetHostContainerConfigList ¶
func (this *HostController) GetHostContainerConfigList()
@Title HostContainerConfig @Description Get HostContainerConfig List @Param token header string true "authToken" @Param hostName path string "" true "hostName" @Param body body models.ContainerConfig false "容器配置信息" @Param from query int 0 false "from" @Param limit query int 20 false "limit" @Success 200 {object} models.Result @router /:hostName/containers [post]
func (*HostController) GetHostContainerInfoList ¶
func (this *HostController) GetHostContainerInfoList()
@Title HostContainerInfo @Description Get HostContainer info @Param token header string true "authToken" @Param hostName path string "" true "hostName" @Param containerId path string "" true "containerId" @Success 200 {object} models.Result @router /:hostName/containers/:containerId [post]
func (*HostController) GetHostImageInfo ¶
func (this *HostController) GetHostImageInfo()
@Title HostImageInfo @Description Get HostImage Info @Param token header string true "authToken" @Param hostId path string "" true "hostId" @Param imageId path string "" true "imageId" @Success 200 {object} models.Result @router /:hostId/images/:imageId [post]
func (*HostController) GetHostImagesList ¶
func (this *HostController) GetHostImagesList()
@Title HostImage @Description Get HostImage List @Param token header string true "authToken" @Param hostId path string "" true "hostId" @Param body body models.ImageConfig false "镜像配置信息" @Param from query int 0 false "from" @Param limit query int 20 false "limit" @Success 200 {object} models.Result @router /:hostId/images [post]
func (*HostController) GetHostInfoList ¶
func (this *HostController) GetHostInfoList()
@Title GetHostInfo @Description Get HostInfo @Param token header string true "authToken" @Param hostId path string "" true "hostId" @Success 200 {object} models.Result @router /:hostId [post]
func (*HostController) GetHostPodList ¶
func (this *HostController) GetHostPodList()
@Title GetHostPod @Description Get HostPod List @Param token header string true "authToken" @Param hostName path string "" true "主机名" @Param body body models.Pod false "Pod 信息" @Param from query int 0 false "from" @Param limit query int 20 false "limit" @Success 200 {object} models.Result @router /:hostName/pods [post]
func (*HostController) GetHostPsList ¶
func (this *HostController) GetHostPsList()
@Title HostPs @Description Get HostPs List @Param token header string true "authToken" @Param hostId path string "" true "hostId" @Param body body models.HostPs false "主机进程" @Param from query int 0 false "from" @Param limit query int 20 false "limit" @Success 200 {object} models.Result @router /:hostId/ps [post]
func (*HostController) SetClientModule ¶
func (this *HostController) SetClientModule()
@Title SetClientModule @Description Set ClientModule @Param token header string true "authToken" @Param hostId path string "" true "hostId" @Param body body models.ClientModuleControl false "ClientModuleControl , 目前支持模块: DockerEvent" @Success 200 {object} models.Result @router /:hostId/setclientmodule [post]
type ImageController ¶
type ImageController struct {
beego.Controller
}
Asset image object api list
func (*ImageController) GetContainersList ¶
func (this *ImageController) GetContainersList()
@Title GetContainers @Description Get Containers List @Param token header string true "authToken" @Param body body models.ContainerConfig false "容器配置信息" @Param from query int 0 false "from" @Param limit query int 20 false "limit" @Success 200 {object} models.Result @router /containers [post]
func (*ImageController) GetImageDetail ¶
func (this *ImageController) GetImageDetail()
@Title ImageDetail @Description Get ImageDetail Info @Param token header string true "authToken" @Param body body models.ImageDetail false "镜像信息" @Success 200 {object} models.Result @router /imagedetail [post]
type K8SController ¶
type K8SController struct {
beego.Controller
}
Asset K8S object api list
func (*K8SController) BindAccount ¶
func (this *K8SController) BindAccount()
@Title BindAccount @Description BindAccount(绑定租户) @Param token header string true "authToken" @Param nsId path string "" true "nsId" @Param body body models.NameSpace true "命名空间" @Success 200 {object} models.Result @router /namespaces/:nsId/bindaccount [put]
func (*K8SController) GetClusters ¶
func (this *K8SController) GetClusters()
@Title GetClusters @Description Get ClusterOBJ List @Param token header string true "authToken" @Param user query string "admin" true "diss api 系统的登入用户 如果用户all,直接根据租户查询" @Param body body models.ClusterOBJ false "集群" @Param from query int 0 false "from" @Param limit query int 20 false "limit" @Success 200 {object} models.Result @router /clusters [post]
func (*K8SController) GetContainerCmdHistorys ¶
func (this *K8SController) GetContainerCmdHistorys()
@Title GetContainerCmdHistorys @Description Get Container CmdHistory List @Param token header string true "authToken" @Param containerId path string "" true "containerId" @Param body body models.CmdHistory false "容器命令历史" @Param from query int 0 false "from" @Param limit query int 20 false "limit" @Success 200 {object} models.Result @router /containers/:containerId/cmdhistorys [post]
func (*K8SController) GetContainerConfig ¶
func (this *K8SController) GetContainerConfig()
@Title GetContainerList @Description Get pod Container List @Param token header string true "authToken" @Param nsName path string "" true "namespaceName" @Param podId path string "" true "podId" @Param body body models.ContainerConfig false "容器配置信息" @Param from query int 0 false "from" @Param limit query int 20 false "limit" @Success 200 {object} models.Result @router /namespaces/:nsName/pods/:podId/containers [post]
func (*K8SController) GetContainerImageInfo ¶
func (this *K8SController) GetContainerImageInfo()
@Title ContainerImageInfo @Description Get ContainerImage Info (根据当前 pod 下容器的 主机名 + 镜像名获取 镜像详细信息) @Param token header string true "authToken" @Param hostName path string "" true "hostName" @Param body body models.ImageInfo false "容器详细信息" @Success 200 {object} models.Result @router /:hostName/imageinfo [post]
func (*K8SController) GetContainerInfo ¶
func (this *K8SController) GetContainerInfo()
@Title GetContainerInfo @Description Get Container Info @Param token header string true "authToken" @Param containerId path string "" true "containerId" @Success 200 {object} models.Result @router /containers/:containerId [post]
func (*K8SController) GetNameSpaces ¶
func (this *K8SController) GetNameSpaces()
@Title GetNameSpaceList @Description Get NameSpace List @Param token header string true "authToken" @Param user query string "admin" true "diss api 系统的登入用户" @Param clusterId path string "" true "clusterId" @Param body body models.NameSpace false "命名空间" @Param from query int 0 false "from" @Param limit query int 20 false "limit" @Success 200 {object} models.Result @router /clusters/:clusterId/namespaces [post]
func (*K8SController) GetPods ¶
func (this *K8SController) GetPods()
@Title GetPodList @Description Get Pod List @Param token header string true "authToken" @Param nsName path string "" true "namespaceName" @Param from query int 0 false "from" @Param limit query int 20 false "limit" @Success 200 {object} models.Result @router /namespaces/:nsName/pods [post]
func (*K8SController) UnBindAccount ¶
func (this *K8SController) UnBindAccount()
@Title UnBindAccount @Description UnBindAccount(解除绑定) @Param token header string true "authToken" @Param nsId path string "" true "nsId" @Param body body models.NameSpace true "命名空间" @Success 200 {object} models.Result @router /namespaces/:nsId/unbindaccount [delete]