v1

package
v0.0.0-...-f0fce53 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppController

type AppController struct {
	controller.BaseController
}

func NewAppController

func NewAppController() AppController

func (*AppController) DeleteApp

func (c *AppController) DeleteApp(ctx *gin.Context)

@summary 删除单个应用 @tags App @produce json @accept json @param namespace path string true "命名空间" default(default) @param name path string true "应用名称" @success 200 {object} controller.Response{Data=v1.App} @failure 500 {object} controller.Response @router /api/v1/namespaces/{namespace}/apps/{name} [delete]

func (*AppController) GetApp

func (c *AppController) GetApp(ctx *gin.Context)

@summary 获取单个应用 @tags App @produce json @accept json @param namespace path string true "命名空间" default(default) @param name path string true "应用名称" @success 200 {object} controller.Response{Data=v1.App} @failure 500 {object} controller.Response @router /api/v1/namespaces/{namespace}/apps/{name} [get]

func (*AppController) GetApps

func (c *AppController) GetApps(ctx *gin.Context)

@summary 获取所有应用 @tags App @produce json @accept json @param namespace path string true "命名空间" default(default) @param category query string false "应用分类" Enums(thirdParty,customize,hostPlugin,algorithmPlugin) @success 200 {object} controller.Response{Data=[]v1.App} @failure 500 {object} controller.Response @router /api/v1/namespaces/{namespace}/apps [get]

func (*AppController) PostApp

func (c *AppController) PostApp(ctx *gin.Context)

@summary 创建单个应用 @tags App @produce json @accept json @param namespace path string true "命名空间" default(default) @param body body v1.App true "应用信息" @success 200 {object} controller.Response{Data=v1.App} @failure 500 {object} controller.Response @router /api/v1/namespaces/{namespace}/apps [post]

func (*AppController) PutApp

func (c *AppController) PutApp(ctx *gin.Context)

@summary 更新单个应用 @tags App @produce json @accept json @param namespace path string true "命名空间" default(default) @param name path string true "应用名称" @param body body v1.App true "应用信息" @success 200 {object} controller.Response{Data=v1.App} @failure 500 {object} controller.Response @router /api/v1/namespaces/{namespace}/apps/{name} [put]

type AppInstanceController

type AppInstanceController struct {
	controller.BaseController
}

func NewAppInstanceController

func NewAppInstanceController() AppInstanceController

func (*AppInstanceController) DeleteAppInstance

func (c *AppInstanceController) DeleteAppInstance(ctx *gin.Context)

@summary 删除单个应用实例 @tags AppInstance @produce json @accept json @param namespace path string true "命名空间" default(default) @param name path string true "应用实例名称" @success 200 {object} controller.Response{Data=v1.AppInstance} @failure 500 {object} controller.Response @router /api/v1/namespaces/{namespace}/appinstances/{name} [delete]

func (*AppInstanceController) GetAppInstance

func (c *AppInstanceController) GetAppInstance(ctx *gin.Context)

@summary 获取单个应用实例 @tags AppInstance @produce json @accept json @param namespace path string true "命名空间" default(default) @param name path string true "应用实例名称" @success 200 {object} controller.Response{Data=v1.AppInstance} @failure 500 {object} controller.Response @router /api/v1/namespaces/{namespace}/appinstances/{name} [get]

func (*AppInstanceController) GetAppInstances

func (c *AppInstanceController) GetAppInstances(ctx *gin.Context)

@summary 获取所有应用实例 @tags AppInstance @produce json @accept json @param namespace path string true "命名空间" default(default) @param category query string false "应用分类" Enums(thirdParty,customize,hostPlugin,algorithmPlugin) @success 200 {object} controller.Response{Data=[]v1.AppInstance} @failure 500 {object} controller.Response @router /api/v1/namespaces/{namespace}/appinstances [get]

func (*AppInstanceController) PostAppInstance

func (c *AppInstanceController) PostAppInstance(ctx *gin.Context)

@summary 创建单个应用实例 @tags AppInstance @produce json @accept json @param namespace path string true "命名空间" default(default) @param body body v1.AppInstance true "应用实例信息" @success 200 {object} controller.Response{Data=v1.AppInstance} @failure 500 {object} controller.Response @router /api/v1/namespaces/{namespace}/appinstances [post]

func (*AppInstanceController) PutAppInstance

func (c *AppInstanceController) PutAppInstance(ctx *gin.Context)

@summary 更新单个应用实例 @tags AppInstance @produce json @accept json @param namespace path string true "命名空间" default(default) @param name path string true "应用实例名称" @param body body v1.AppInstance true "应用实例信息" @success 200 {object} controller.Response{Data=v1.AppInstance} @failure 500 {object} controller.Response @router /api/v1/namespaces/{namespace}/appinstances/{name} [put]

type AuditController

type AuditController struct {
	controller.BaseController
}

func NewAuditController

func NewAuditController() AuditController

func (*AuditController) DeleteAudit

func (c *AuditController) DeleteAudit(ctx *gin.Context)

@summary 删除单个审计 @tags Audit @produce json @accept json @param name path string true "审计名称" @success 200 {object} controller.Response{Data=v1.Audit} @failure 500 {object} controller.Response @router /api/v1/audits/{name} [delete]

func (*AuditController) GetAudit

func (c *AuditController) GetAudit(ctx *gin.Context)

@summary 获取单个审计 @tags Audit @produce json @accept json @param name path string true "审计名称" @success 200 {object} controller.Response{Data=v1.Audit} @failure 500 {object} controller.Response @router /api/v1/audits/{name} [get]

func (*AuditController) GetAudits

func (c *AuditController) GetAudits(ctx *gin.Context)

@summary 获取所有审计 @tags Audit @produce json @accept json @param beginTime query integer false "起始时间" @param endTime query integer false "结束时间" @param resourceKind query string false "资源类别" Enums(app,appInstance,audit,event,host,job,configMap,k8sconfig) @param resourceNamespace query string false "资源命名空间" @param resourceName query string false "资源标识名称" @param sourceIP query string false "来源地址" @success 200 {object} controller.Response{Data=[]v1.Audit} @failure 500 {object} controller.Response @router /api/v1/audits [get]

func (*AuditController) PostAudit

func (c *AuditController) PostAudit(ctx *gin.Context)

@summary 创建单个审计 @tags Audit @produce json @accept json @param body body v1.Audit true "审计信息" @success 200 {object} controller.Response{Data=v1.Audit} @failure 500 {object} controller.Response @router /api/v1/audits [post]

func (*AuditController) PutAudit

func (c *AuditController) PutAudit(ctx *gin.Context)

@summary 更新单个审计 @tags Audit @produce json @accept json @param name path string true "审计名称" @param body body v1.Audit true "审计信息" @success 200 {object} controller.Response{Data=v1.Audit} @failure 500 {object} controller.Response @router /api/v1/audits/{name} [put]

type ConfigMapController

type ConfigMapController struct {
	controller.BaseController
}

func NewConfigMapController

func NewConfigMapController() ConfigMapController

func (*ConfigMapController) DeleteConfigMap

func (c *ConfigMapController) DeleteConfigMap(ctx *gin.Context)

@summary 删除单个配置字典 @tags ConfigMap @produce json @accept json @param namespace path string true "命名空间" default(default) @param name path string true "配置字典名称" @success 200 {object} controller.Response{Data=v1.ConfigMap} @failure 500 {object} controller.Response @router /api/v1/namespaces/{namespace}/configmaps/{name} [delete]

func (*ConfigMapController) GetConfigMap

func (c *ConfigMapController) GetConfigMap(ctx *gin.Context)

@summary 获取单个配置字典 @tags ConfigMap @produce json @accept json @param namespace path string true "命名空间" default(default) @param name path string true "配置字典名称" @success 200 {object} controller.Response{Data=v1.ConfigMap} @failure 500 {object} controller.Response @router /api/v1/namespaces/{namespace}/configmaps/{name} [get]

func (*ConfigMapController) GetConfigMaps

func (c *ConfigMapController) GetConfigMaps(ctx *gin.Context)

@summary 获取所有配置字典 @tags ConfigMap @produce json @accept json @param namespace path string true "命名空间" default(default) @success 200 {object} controller.Response{Data=[]v1.ConfigMap} @failure 500 {object} controller.Response @router /api/v1/namespaces/{namespace}/configmaps [get]

func (*ConfigMapController) PostConfigMap

func (c *ConfigMapController) PostConfigMap(ctx *gin.Context)

@summary 创建单个配置字典 @tags ConfigMap @produce json @accept json @param namespace path string true "命名空间" default(default) @param body body v1.ConfigMap true "配置字典信息" @success 200 {object} controller.Response{Data=v1.ConfigMap} @failure 500 {object} controller.Response @router /api/v1/namespaces/{namespace}/configmaps [post]

func (*ConfigMapController) PutConfigMap

func (c *ConfigMapController) PutConfigMap(ctx *gin.Context)

@summary 更新单个配置字典 @tags ConfigMap @produce json @accept json @param namespace path string true "命名空间" default(default) @param name path string true "配置字典名称" @param body body v1.ConfigMap true "配置字典信息" @success 200 {object} controller.Response{Data=v1.ConfigMap} @failure 500 {object} controller.Response @router /api/v1/namespaces/{namespace}/configmaps/{name} [put]

type EventController

type EventController struct {
	controller.BaseController
}

func NewEventController

func NewEventController() EventController

func (*EventController) DeleteEvent

func (c *EventController) DeleteEvent(ctx *gin.Context)

@summary 删除单个事件 @tags Event @produce json @accept json @param name path string true "事件名称" @success 200 {object} controller.Response{Data=v1.Event} @failure 500 {object} controller.Response @router /api/v1/events/{name} [delete]

func (*EventController) GetEvent

func (c *EventController) GetEvent(ctx *gin.Context)

@summary 获取单个事件 @tags Event @produce json @accept json @param name path string true "事件名称" @success 200 {object} controller.Response{Data=v1.Event} @failure 500 {object} controller.Response @router /api/v1/events/{name} [get]

func (*EventController) GetEvents

func (c *EventController) GetEvents(ctx *gin.Context)

@summary 获取所有事件 @tags Event @produce json @accept json @param beginTime query integer false "起始时间" @param endTime query integer false "结束时间" @param resourceKind query string false "资源类别" Enums(appInstance,host,k8sconfig) @param resourceNamespace query string false "资源命名空间" @param resourceName query string false "资源标识名称" @param action query string false "行为" Enums(Install,Configure,Uninstall,HealthCheck,Label,Connect,Initial) @success 200 {object} controller.Response{Data=[]v1.Event} @failure 500 {object} controller.Response @router /api/v1/events [get]

func (*EventController) PostEvent

func (c *EventController) PostEvent(ctx *gin.Context)

@summary 创建单个事件 @tags Event @produce json @accept json @param body body v1.Event true "事件信息" @success 200 {object} controller.Response{Data=v1.Event} @failure 500 {object} controller.Response @router /api/v1/events [post]

func (*EventController) PutEvent

func (c *EventController) PutEvent(ctx *gin.Context)

@summary 更新单个事件 @tags Event @produce json @accept json @param name path string true "事件名称" @param body body v1.Event true "事件信息" @success 200 {object} controller.Response{Data=v1.Event} @failure 500 {object} controller.Response @router /api/v1/events/{name} [put]

type GPUController

type GPUController struct {
	controller.BaseController
}

func NewGPUController

func NewGPUController() GPUController

func (*GPUController) DeleteGPU

func (c *GPUController) DeleteGPU(ctx *gin.Context)

@summary 删除单个显卡 @tags GPU @produce json @accept json @param name path string true "显卡名称" @success 200 {object} controller.Response{Data=v1.GPU} @failure 500 {object} controller.Response @router /api/v1/gpus/{name} [delete]

func (*GPUController) GetGPU

func (c *GPUController) GetGPU(ctx *gin.Context)

@summary 获取单个显卡 @tags GPU @produce json @accept json @param name path string true "显卡名称" @success 200 {object} controller.Response{Data=v1.GPU} @failure 500 {object} controller.Response @router /api/v1/gpus/{name} [get]

func (*GPUController) GetGPUs

func (c *GPUController) GetGPUs(ctx *gin.Context)

@summary 获取所有显卡 @tags GPU @produce json @accept json @param category query string false "显卡分类" Enums(thirdParty,customize,hostPlugin,algorithmPlugin,algorithmInstance) @success 200 {object} controller.Response{Data=[]v1.GPU} @failure 500 {object} controller.Response @router /api/v1/gpus [get]

func (*GPUController) PostGPU

func (c *GPUController) PostGPU(ctx *gin.Context)

@summary 创建单个显卡 @tags GPU @produce json @accept json @param body body v1.GPU true "显卡信息" @success 200 {object} controller.Response{Data=v1.GPU} @failure 500 {object} controller.Response @router /api/v1/gpus [post]

func (*GPUController) PutGPU

func (c *GPUController) PutGPU(ctx *gin.Context)

@summary 更新单个显卡 @tags GPU @produce json @accept json @param name path string true "显卡名称" @param body body v1.GPU true "显卡信息" @success 200 {object} controller.Response{Data=v1.GPU} @failure 500 {object} controller.Response @router /api/v1/gpus/{name} [put]

type HostController

type HostController struct {
	controller.BaseController
}

func NewHostController

func NewHostController() HostController

func (*HostController) DeleteHost

func (c *HostController) DeleteHost(ctx *gin.Context)

@summary 删除单个主机 @tags Host @produce json @accept json @param name path string true "主机名称" @success 200 {object} controller.Response{Data=v1.Host} @failure 500 {object} controller.Response @router /api/v1/hosts/{name} [delete]

func (*HostController) GetHost

func (c *HostController) GetHost(ctx *gin.Context)

@summary 获取单个主机 @tags Host @produce json @accept json @param name path string true "主机名称" @success 200 {object} controller.Response{Data=v1.Host} @failure 500 {object} controller.Response @router /api/v1/hosts/{name} [get]

func (*HostController) GetHosts

func (c *HostController) GetHosts(ctx *gin.Context)

@summary 获取所有主机 @tags Host @produce json @accept json @success 200 {object} controller.Response{Data=[]v1.Host} @failure 500 {object} controller.Response @router /api/v1/hosts [get]

func (*HostController) PostHost

func (c *HostController) PostHost(ctx *gin.Context)

@summary 创建单个主机 @tags Host @produce json @accept json @param body body v1.Host true "主机信息" @success 200 {object} controller.Response{Data=v1.Host} @failure 500 {object} controller.Response @router /api/v1/hosts [post]

func (*HostController) PutHost

func (c *HostController) PutHost(ctx *gin.Context)

@summary 更新单个主机 @tags Host @produce json @accept json @param name path string true "主机名称" @param body body v1.Host true "主机信息" @success 200 {object} controller.Response{Data=v1.Host} @failure 500 {object} controller.Response @router /api/v1/hosts/{name} [put]

type JobController

type JobController struct {
	controller.BaseController
}

func NewJobController

func NewJobController() JobController

func (*JobController) DeleteJob

func (c *JobController) DeleteJob(ctx *gin.Context)

@summary 删除单个任务 @tags Job @produce json @accept json @param name path string true "任务名称" @success 200 {object} controller.Response{Data=v1.Job} @failure 500 {object} controller.Response @router /api/v1/jobs/{name} [delete]

func (*JobController) GetJob

func (c *JobController) GetJob(ctx *gin.Context)

@summary 获取单个任务 @tags Job @produce json @accept json @param name path string true "任务名称" @success 200 {object} controller.Response{Data=v1.Job} @failure 500 {object} controller.Response @router /api/v1/jobs/{name} [get]

func (*JobController) GetJobLog

func (c *JobController) GetJobLog(ctx *gin.Context)

@summary 获取单个任务的运行日志 @tags Job @produce json @accept json @param name path string true "任务名称" @param watch query boolean false "开启侦听模式" @param download query boolean false "下载日志文件" @success 200 {object} controller.Response{Data=v1.Job} @failure 500 {object} controller.Response @router /api/v1/jobs/{name}/log [get]

func (*JobController) GetJobs

func (c *JobController) GetJobs(ctx *gin.Context)

@summary 获取所有任务 @tags Job @produce json @accept json @success 200 {object} controller.Response{Data=[]v1.Job} @failure 500 {object} controller.Response @router /api/v1/jobs [get]

func (*JobController) PostJob

func (c *JobController) PostJob(ctx *gin.Context)

@summary 创建单个任务 @tags Job @produce json @accept json @param body body v1.Job true "任务信息" @success 200 {object} controller.Response{Data=v1.Job} @failure 500 {object} controller.Response @router /api/v1/jobs [post]

func (*JobController) PutJob

func (c *JobController) PutJob(ctx *gin.Context)

@summary 更新单个任务 @tags Job @produce json @accept json @param name path string true "任务名称" @param body body v1.Job true "任务信息" @success 200 {object} controller.Response{Data=v1.Job} @failure 500 {object} controller.Response @router /api/v1/jobs/{name} [put]

type K8sConfigController

type K8sConfigController struct {
	controller.BaseController
}

func NewK8sConfigController

func NewK8sConfigController() K8sConfigController

func (*K8sConfigController) DeleteK8sClusterConfig

func (c *K8sConfigController) DeleteK8sClusterConfig(ctx *gin.Context)

@summary 删除单个k8s集群配置 @tags K8sConfig @produce json @accept json @param namespace path string true "命名空间" @param name path string true "集群名称" @success 200 {object} controller.Response{Data=v1.K8sConfig} @failure 500 {object} controller.Response @Router /api/v1/namespaces/{namespace}/k8sconfig/{name} [delete]

func (*K8sConfigController) GetK8ClusterConfig

func (c *K8sConfigController) GetK8ClusterConfig(ctx *gin.Context)

@Summary 获取单个k8s集群配置 @tags K8sConfig @Produce json @Accept json @param namespace path string true "命名空间" default(default) @param name path string true "集群名称" @success 200 {object} controller.Response{Data=v1.K8sConfig} @Failure 500 {object} controller.Response @Router /api/v1/namespaces/{namespace}/k8sconfig/{name} [get]

func (*K8sConfigController) GetK8ClusterConfigs

func (c *K8sConfigController) GetK8ClusterConfigs(ctx *gin.Context)

@summary 获取所有k8s集群 @tags K8sConfig @produce json @accept json @param namespace path string true "命名空间" default(default) @success 200 {object} controller.Response{Data=[]v1.K8sConfig} @failure 500 {object} controller.Response @router /api/v1/namespaces/{namespace}/k8sconfig [get]

func (*K8sConfigController) PostK8ClusterConfig

func (c *K8sConfigController) PostK8ClusterConfig(ctx *gin.Context)

@Summary 创建单个k8s集群配置 @tags K8sConfig @Produce json @Accept json @param namespace path string true "命名空间" default(default) @Param body body v1.K8sConfig true "k8s集群信息" @Success 200 {object} controller.Response{Data=v1.K8sConfig} @Failure 500 {object} controller.Response @Router /api/v1/namespaces/{namespace}/k8sconfig [post]

func (*K8sConfigController) PutK8ClusterConfig

func (c *K8sConfigController) PutK8ClusterConfig(ctx *gin.Context)

@Summary 更新单个k8s集群配置 @tags K8sConfig @Produce json @Accept json @param namespace path string true "命名空间" default(default) @param name path string true "集群名称" @Param body body v1.K8sConfig true "k8s集群信息" @Success 200 {object} controller.Response{Data=v1.K8sConfig} @Failure 500 {object} controller.Response @Router /api/v1/namespaces/{namespace}/k8sconfig/{name} [put]

type NamespaceController

type NamespaceController struct {
	controller.BaseController
}

func NewNamespaceController

func NewNamespaceController() NamespaceController

func (*NamespaceController) DeleteNamespace

func (c *NamespaceController) DeleteNamespace(ctx *gin.Context)

@summary 删除单个命名空间 @tags Namespace @produce json @accept json @param name path string true "命名空间名称" @success 200 {object} controller.Response{Data=v1.Namespace} @failure 500 {object} controller.Response @router /api/v1/namespaces/{name} [delete]

func (*NamespaceController) GetNamespace

func (c *NamespaceController) GetNamespace(ctx *gin.Context)

@summary 获取单个命名空间 @tags Namespace @produce json @accept json @param name path string true "命名空间名称" @success 200 {object} controller.Response{Data=v1.Namespace} @failure 500 {object} controller.Response @router /api/v1/namespaces/{name} [get]

func (*NamespaceController) GetNamespaces

func (c *NamespaceController) GetNamespaces(ctx *gin.Context)

@summary 获取所有命名空间 @tags Namespace @produce json @accept json @success 200 {object} controller.Response{Data=[]v1.Namespace} @failure 500 {object} controller.Response @router /api/v1/namespaces [get]

func (*NamespaceController) PostNamespace

func (c *NamespaceController) PostNamespace(ctx *gin.Context)

@summary 创建单个命名空间 @tags Namespace @produce json @accept json @param body body v1.Namespace true "命名空间信息" @success 200 {object} controller.Response{Data=v1.Namespace} @failure 500 {object} controller.Response @router /api/v1/namespaces [post]

func (*NamespaceController) PutNamespace

func (c *NamespaceController) PutNamespace(ctx *gin.Context)

@summary 更新单个命名空间 @tags Namespace @produce json @accept json @param name path string true "命名空间名称" @param body body v1.Namespace true "命名空间信息" @success 200 {object} controller.Response{Data=v1.Namespace} @failure 500 {object} controller.Response @router /api/v1/namespaces/{name} [put]

type PkgController

type PkgController struct {
	controller.BaseController
}

func NewPkgController

func NewPkgController() PkgController

func (*PkgController) DeletePkg

func (c *PkgController) DeletePkg(ctx *gin.Context)

@summary 删除单个部署包 @tags Pkg @produce json @accept json @param name path string true "部署包名称" @success 200 {object} controller.Response{Data=v1.Pkg} @failure 500 {object} controller.Response @router /api/v1/pkgs/{name} [delete]

func (*PkgController) GetPkg

func (c *PkgController) GetPkg(ctx *gin.Context)

@summary 获取单个部署包 @tags Pkg @produce json @accept json @param name path string true "部署包名称" @success 200 {object} controller.Response{Data=v1.Pkg} @failure 500 {object} controller.Response @router /api/v1/pkgs/{name} [get]

func (*PkgController) GetPkgs

func (c *PkgController) GetPkgs(ctx *gin.Context)

@summary 获取所有部署包 @tags Pkg @produce json @accept json @success 200 {object} controller.Response{Data=[]v1.Pkg} @failure 500 {object} controller.Response @router /api/v1/pkgs [get]

func (*PkgController) PostPkg

func (c *PkgController) PostPkg(ctx *gin.Context)

@summary 创建单个部署包 @tags Pkg @produce json @accept json @param body body v1.Pkg true "部署包信息" @success 200 {object} controller.Response{Data=v1.Pkg} @failure 500 {object} controller.Response @router /api/v1/pkgs [post]

func (*PkgController) PutPkg

func (c *PkgController) PutPkg(ctx *gin.Context)

@summary 更新单个部署包 @tags Pkg @produce json @accept json @param name path string true "部署包名称" @param body body v1.Pkg true "部署包信息" @success 200 {object} controller.Response{Data=v1.Pkg} @failure 500 {object} controller.Response @router /api/v1/pkgs/{name} [put]

type ProjectController

type ProjectController struct {
	controller.BaseController
}

func NewProjectController

func NewProjectController() ProjectController

func (*ProjectController) DeleteProject

func (c *ProjectController) DeleteProject(ctx *gin.Context)

@summary 删除单个项目空间 @tags Project @produce json @accept json @param name path string true "项目空间名称" @success 200 {object} controller.Response{Data=v1.Project} @failure 500 {object} controller.Response @router /api/v1/project/{name} [delete]

func (*ProjectController) GetProject

func (c *ProjectController) GetProject(ctx *gin.Context)

@summary 获取单个项目空间 @tags Project @produce json @accept json @param name path string true "项目空间名称" @success 200 {object} controller.Response{Data=v1.Project} @failure 500 {object} controller.Response @router /api/v1/project/{name} [get]

func (*ProjectController) GetProjects

func (c *ProjectController) GetProjects(ctx *gin.Context)

@summary 获取所有项目空间 @tags Project @produce json @accept json @success 200 {object} controller.Response{Data=[]v1.Project} @failure 500 {object} controller.Response @router /api/v1/project [get]

func (*ProjectController) PostProject

func (c *ProjectController) PostProject(ctx *gin.Context)

@summary 创建单个项目空间 @tags Project @produce json @accept json @param body body v1.Project true "项目空间信息" @success 200 {object} controller.Response{Data=v1.Project} @failure 500 {object} controller.Response @router /api/v1/project [post]

func (*ProjectController) PutProject

func (c *ProjectController) PutProject(ctx *gin.Context)

@summary 更新单个项目空间 @tags Project @produce json @accept json @param name path string true "项目空间名称" @param body body v1.Project true "项目空间信息" @success 200 {object} controller.Response{Data=v1.Project} @failure 500 {object} controller.Response @router /api/v1/project/{name} [put]

type RevisionController

type RevisionController struct {
	controller.BaseController
}

func NewRevisionController

func NewRevisionController() RevisionController

func (*RevisionController) DeleteRevision

func (c *RevisionController) DeleteRevision(ctx *gin.Context)

@summary 删除单个修订历史 @tags Revision @produce json @accept json @param name path string true "修订历史名称" @success 200 {object} controller.Response{Data=v1.Revision} @failure 500 {object} controller.Response @router /api/v1/revisions/{name} [delete]

func (*RevisionController) GetRevision

func (c *RevisionController) GetRevision(ctx *gin.Context)

@summary 获取单个修订历史 @tags Revision @produce json @accept json @param name path string true "修订历史名称" @success 200 {object} controller.Response{Data=v1.Revision} @failure 500 {object} controller.Response @router /api/v1/revisions/{name} [get]

func (*RevisionController) GetRevisions

func (c *RevisionController) GetRevisions(ctx *gin.Context)

@summary 获取所有修订历史 @tags Revision @produce json @accept json @success 200 {object} controller.Response{Data=[]v1.Revision} @failure 500 {object} controller.Response @router /api/v1/revisions [get]

func (*RevisionController) PostRevision

func (c *RevisionController) PostRevision(ctx *gin.Context)

@summary 创建单个修订历史 @tags Revision @produce json @accept json @param body body v1.Revision true "修订历史信息" @success 200 {object} controller.Response{Data=v1.Revision} @failure 500 {object} controller.Response @router /api/v1/revisions [post]

func (*RevisionController) PutRevision

func (c *RevisionController) PutRevision(ctx *gin.Context)

@summary 更新单个修订历史 @tags Revision @produce json @accept json @param name path string true "修订历史名称" @param body body v1.Revision true "修订历史信息" @success 200 {object} controller.Response{Data=v1.Revision} @failure 500 {object} controller.Response @router /api/v1/revisions/{name} [put]

Jump to

Keyboard shortcuts

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