applications

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
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

func Create(c *gin.Context)

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

func Delete(c *gin.Context)

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

func Get(c *gin.Context)

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

func GetDetail(c *gin.Context)

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

func GetNocalhostConfigTemplate(c *gin.Context)

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

func GetSpaceDetail(c *gin.Context)

@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

func ListPermitted(c *gin.Context)

list permitted applications (for normal user)

func PluginGet

func PluginGet(c *gin.Context)

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 PublicSwitch(c *gin.Context)

func Update

func Update(c *gin.Context)

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

func UpdateApplicationInstall(c *gin.Context)

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 CreateAppRequest struct {
	Context string `` /* 366-byte string literal not displayed */
	Status  *uint8 `json:"status" binding:"required"`
	Public  *uint8 `json:"public"`
}

type UpdateApplicationInstallRequest

type UpdateApplicationInstallRequest struct {
	Status *uint64 `json:"status" binding:"required"`
}

Jump to

Keyboard shortcuts

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