Documentation ¶
Index ¶
- Constants
- func Create(c *gin.Context)
- func Delete(c *gin.Context)
- func Get(c *gin.Context)
- func GetDetail(c *gin.Context)
- func GetNocalhostConfigTemplate(c *gin.Context)
- func GetSpaceDetail(c *gin.Context)
- func ListPermitted(c *gin.Context)
- func PluginGet(c *gin.Context)
- func PublicSwitch(c *gin.Context)
- func Update(c *gin.Context)
- func UpdateApplicationInstall(c *gin.Context)
- type AppPublicSwitchRequest
- type ApplicationJsonContext
- type ApplicationListQuery
- type CreateAppRequest
- type UpdateApplicationInstallRequest
Constants ¶
const ( HelmGit = "helmGit" HelmRepo = "helmRepo" // same as ManifestGit Manifest = "rawManifest" ManifestGit = "rawManifestGit" ManifestLocal = "rawManifestLocal" HelmLocal = "helmLocal" KustomizeGit = "kustomizeGit" KustomizeLocal = "kustomizeLocal" // source SourceGit = "git" SourceHelmRepo = "helm_repo" SourceLocal = "local" // install type ITRawManifest = "rawManifest" ITHelmChart = "helm_chart" ITRawManifestLocal = "rawManifestLocal" ITHelmLocal = "helmLocal" ITKustomize = "kustomize" ITKustomizeLocal = "kustomizeLocal" )
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create Create Application @Summary Create Application @Description Create Application @Tags Application @Accept json @Produce json @param Authorization header string true "Authorization" @Param CreateAppRequest body applications.CreateAppRequest true "The application info" @Success 200 {object} model.ApplicationModel @Router /v1/application [post]
func Delete ¶
Create Delete Application @Summary Delete Application @Description The user deletes the application, and also deletes the configured development space in the application @Tags Application @Accept json @Produce json @param Authorization header string true "Authorization" @Param id path uint64 true "Application ID" @Success 200 {object} api.Response "{"code":0,"message":"OK","data":null}" @Router /v1/application/{id} [delete]
func Get ¶
Create Get Application @Summary Get Application @Description Get Application @Tags Application @Accept json @Produce json @param Authorization header string true "Authorization" @Success 200 {object} api.Response "{"code":0,"message":"OK","data": [{"id":1,"context":"application info","status":"1"}]}" @Router /v1/application [get]
func GetDetail ¶
Create Get Application Detail @Summary Get Application Detail @Description Get Application Detail @Tags Application @Accept json @Produce json @param Authorization header string true "Authorization" @Param id path string true "Application ID" @Success 200 {object} model.ApplicationModel @Router /v1/application/{id} [get]
func GetNocalhostConfigTemplate ¶
GetNocalhostConfigTemplate get nocalhost config template @Summary get nocalhost config template @Description get nocalhost config template @Tags Application @Accept json @Produce json @param Authorization header string true "Authorization" @Success 200 {object} api.Response "{"code":0,"message":"OK","data":{"template":""}}" @Router /v1/nocalhost/templates [get]
func GetSpaceDetail ¶
@Summary Get authorized details of the application (obsolete) @Description Get authorized details of the application (obsolete) @Tags Application @Accept json @Produce json @param Authorization header string true "Authorization" @Param clusterId path string true "Cluster ID" @Param id path string true "Application ID" @Success 200 {object} model.ClusterUserModel "" @Router /v1/application/{id}/cluster/{clusterId} [get]
func ListPermitted ¶
list permitted applications (for normal user)
func PluginGet ¶
Create Plug-in access to applications (including installation status) @Summary Plug-in access to applications (including installation status) @Description Plug-in access to applications (including installation status) @Tags Plug-in @Accept json @Produce json @param Authorization header string true "Authorization" @Success 200 {object} model.PluginApplicationModel @Router /v1/plugin/dev_space [get]
func PublicSwitch ¶
func Update ¶
Create Edit application @Summary Edit application @Description Edit application @Tags Application @Accept json @Produce json @param Authorization header string true "Authorization" @Param id path uint64 true "Application ID" @Param CreateAppRequest body applications.CreateAppRequest true "The application info" @Success 200 {object} model.ApplicationModel @Router /v1/application/{id} [put]
func UpdateApplicationInstall ¶
Create Plug-in Update app installation status @Summary Plug-in Update app installation status @Description Plug-in Update app installation status @Tags Plug-in @Accept json @Produce json @param Authorization header string true "Authorization" @Param id path uint64 true "Application ID" @Param spaceId path uint64 true "DevSpace ID" @Param CreateAppRequest body applications.UpdateApplicationInstallRequest true "The application update info" @Success 200 {object} api.Response "{"code":0,"message":"OK","data":null}" @Router /v1/plugin/application/{id}/dev_space/{spaceId}/plugin_sync [put]
Types ¶
type AppPublicSwitchRequest ¶
type AppPublicSwitchRequest struct {
Public *uint8 `json:"public" binding:"required"`
}
type ApplicationJsonContext ¶
type ApplicationJsonContext struct { ApplicationName string `json:"application_name" validate:"required"` ApplicationURL string `json:"application_url" validate:"required"` ApplicationSource string `json:"source" validate:"required,oneof='git' 'helm_repo' 'local'"` ApplicationInstallType string `` /* 132-byte string literal not displayed */ ApplicationSourceDir []string `json:"resource_dir" validate:"required"` NocalhostRawConfig string `json:"nocalhost_config_raw"` NocalhostConfigPath string `json:"nocalhost_config_path"` }
Application context struct
type ApplicationListQuery ¶
type ApplicationListQuery struct {
UserId *uint64 `form:"user_id"`
}
type CreateAppRequest ¶
type UpdateApplicationInstallRequest ¶
type UpdateApplicationInstallRequest struct {
Status *uint64 `json:"status" binding:"required"`
}