Documentation ¶
Index ¶
- func CloneNamespace(c *gin.Context)
- func DisplayConfigMap(c *gin.Context)
- func DisplayDeployments(c *gin.Context)
- func DisplaySecrets(c *gin.Context)
- func GetDeployments(c *gin.Context)
- func GetNS(c *gin.Context)
- func UpdateConfigMap(c *gin.Context)
- func UpdateDeploymentImage(c *gin.Context)
- func UpdateSecret(c *gin.Context)
- type ConfigMapPatchRequestBody
- type DeploymentPatchRequestBody
- type NSClonerRequestBody
- type SecretPatchRequestBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneNamespace ¶
@Summary Clone a namespace @Description Clone a namespace and its objects to a new namespace @Accept json @Produce json @Param body body NSClonerRequestBody true "Namespace clone request body" @Success 200 {object} string @Router /namespaces/:namespace/cloneNamespace [post]
func DisplayConfigMap ¶
@Summary Display config maps for a specific namespace @Description Display all config maps in the specified namespace @Produce json @Param namespace path string true "Namespace name" @Success 200 {object} string @Router /namespaces/:namespace/configmaps/display [get]
func DisplayDeployments ¶
@Summary Display deployments for a specific namespace @Description Display all deployments in the specified namespace @Produce json @Param namespace path string true "Namespace name" @Success 200 {object} string @Router /namespaces/:namespace/deployments/display [get]
func DisplaySecrets ¶
@Summary Display secrets for a specific namespace @Description Display all secrets in the specified namespace @Produce json @Param namespace path string true "Namespace name" @Success 200 {object} string @Router /namespaces/:namespace/secrets/display [get]
func GetDeployments ¶
@Summary Get deployments for a specific namespace @Description Get all deployments in the specified namespace @Produce json @Param namespace path string true "Namespace name" @Success 200 {array} string @Router /namespaces/:namespace/deployments [get]
func GetNS ¶
GetNS godoc @Summary Get all namespaces @Description Get all namespaces in the cluster @Produce json @Success 200 {array} string @Router /namespaces [get]
func UpdateConfigMap ¶
@Summary Update a config map @Description Update a config map in a specific namespace @Accept json @Produce json @Param body body ConfigMapPatchRequestBody true "ConfigMap Update Request Body" @Success 200 {object} string @Router /configmaps/:configmap [post]
func UpdateDeploymentImage ¶
@Summary Update deployment image @Description Update the image of a deployment in a specific namespace @Accept json @Produce json @Param body body DeploymentPatchRequestBody true "Deployment Image Set Request Body" @Success 200 {object} string @Router /deployments/:deployment [post]
func UpdateSecret ¶
@Summary Update a secret @Description Update a secret in a specific namespace @Accept json @Produce json @Param body body SecretPatchRequestBody true "Secret Update Request Body" @Param secretPatchRequestBody body SecretPatchRequestBody true "Secret patch request body" @Success 200 {object} string @Router /secrets/:secret [post]
Types ¶
type NSClonerRequestBody ¶
type NSClonerRequestBody struct { //SourceNamespace string `json:"sourceNamespace"` TargetNamespace string `json:"targetNamespace"` }