handler

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoCreateProduct

func AutoCreateProduct(c *gin.Context)

func AutoUpdateProduct

func AutoUpdateProduct(c *gin.Context)

func CleanProductCronJob

func CleanProductCronJob(c *gin.Context)

func CreateHelmProduct added in v1.5.0

func CreateHelmProduct(c *gin.Context)

func CreateProduct

func CreateProduct(c *gin.Context)

func DeletePod

func DeletePod(c *gin.Context)

func DeleteProduct

func DeleteProduct(c *gin.Context)

func EnvShare added in v1.2.0

func EnvShare(c *gin.Context)

func EstimatedValues added in v1.6.0

func EstimatedValues(c *gin.Context)

func ExportYaml

func ExportYaml(c *gin.Context)

func GetEstimatedRenderCharts added in v1.5.0

func GetEstimatedRenderCharts(c *gin.Context)

func GetHelmChartVersions added in v1.2.0

func GetHelmChartVersions(c *gin.Context)

func GetInitProduct

func GetInitProduct(c *gin.Context)

func GetProduct

func GetProduct(c *gin.Context)

func GetProductDefaultValues added in v1.6.0

func GetProductDefaultValues(c *gin.Context)

func GetProductInfo

func GetProductInfo(c *gin.Context)

func GetProductIngress

func GetProductIngress(c *gin.Context)

func GetProductStatus added in v1.6.0

func GetProductStatus(c *gin.Context)

GetProductStatus List product status

func GetService

func GetService(c *gin.Context)

func GetServiceContainer

func GetServiceContainer(c *gin.Context)

func GetServiceRenderCharts added in v1.5.0

func GetServiceRenderCharts(c *gin.Context)

func GetYamlContent added in v1.6.0

func GetYamlContent(c *gin.Context)

func ListAvailableNamespaces

func ListAvailableNamespaces(c *gin.Context)

func ListConfigMaps

func ListConfigMaps(c *gin.Context)

func ListGroups

func ListGroups(c *gin.Context)

func ListKubeEvents

func ListKubeEvents(c *gin.Context)

func ListPodEvents

func ListPodEvents(c *gin.Context)

func ListProducts

func ListProducts(c *gin.Context)

func ListProductsRevision

func ListProductsRevision(c *gin.Context)

func ListRenderCharts

func ListRenderCharts(c *gin.Context)

func ListServicePods

func ListServicePods(c *gin.Context)

func ListWorkloads added in v1.5.0

func ListWorkloads(c *gin.Context)

func ListWorkloadsInEnv added in v1.5.0

func ListWorkloadsInEnv(c *gin.Context)

func RestartNewService

func RestartNewService(c *gin.Context)

func RestartService

func RestartService(c *gin.Context)

func RollBackConfigMap

func RollBackConfigMap(c *gin.Context)

func ScaleNewService

func ScaleNewService(c *gin.Context)

func ScaleService

func ScaleService(c *gin.Context)

func ServiceDiff

func ServiceDiff(c *gin.Context)

func UpdateConfigMap

func UpdateConfigMap(c *gin.Context)

func UpdateDeploymentContainerImage

func UpdateDeploymentContainerImage(c *gin.Context)

func UpdateHelmProductRenderset added in v1.6.0

func UpdateHelmProductRenderset(c *gin.Context)

func UpdateMultiHelmEnv added in v1.5.0

func UpdateMultiHelmEnv(c *gin.Context)

func UpdateProduct

func UpdateProduct(c *gin.Context)

func UpdateProductRecycleDay added in v1.2.0

func UpdateProductRecycleDay(c *gin.Context)

func UpdateService

func UpdateService(c *gin.Context)

func UpdateStatefulSetContainerImage

func UpdateStatefulSetContainerImage(c *gin.Context)

Types

type ChartInfoArgs

type ChartInfoArgs struct {
	ChartInfos []*template.RenderChart `json:"chart_infos"`
}

type ListServicePodsArgs

type ListServicePodsArgs struct {
	ProductName string `json:"product_name"`
	EnvName     string `json:"env_name"`
	// contains filtered or unexported fields
}

type ListWorkloadsArgs added in v1.5.0

type ListWorkloadsArgs struct {
	Namespace    string `json:"namespace"    form:"namespace"`
	ClusterID    string `json:"clusterId"    form:"clusterId"`
	WorkloadName string `json:"workloadName" form:"workloadName"`
	PerPage      int    `json:"perPage"      form:"perPage,default:20"`
	Page         int    `json:"page"         form:"page,default:1"`
}

type NamespaceResource

type NamespaceResource struct {
	Services  []*commonservice.ServiceResp `json:"services"`
	Ingresses []resource.Ingress           `json:"ingresses"`
}

type Router

type Router struct{}

func (*Router) Inject

func (*Router) Inject(router *gin.RouterGroup)

func (*Router) Policies added in v1.7.0

func (*Router) Policies() *policy.Policy

type UpdateEnvs

type UpdateEnvs struct {
	EnvNames   []string `json:"env_names"`
	UpdateType string   `json:"update_type"`
}

Jump to

Keyboard shortcuts

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