controllers

package
v0.0.0-...-6873b5e Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneNamespace

func CloneNamespace(c *gin.Context)

@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

func DisplayConfigMap(c *gin.Context)

@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

func DisplayDeployments(c *gin.Context)

@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

func DisplaySecrets(c *gin.Context)

@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

func GetDeployments(c *gin.Context)

@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

func GetNS(c *gin.Context)

GetNS godoc @Summary Get all namespaces @Description Get all namespaces in the cluster @Produce json @Success 200 {array} string @Router /namespaces [get]

func UpdateConfigMap

func UpdateConfigMap(c *gin.Context)

@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

func UpdateDeploymentImage(c *gin.Context)

@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

func UpdateSecret(c *gin.Context)

@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 ConfigMapPatchRequestBody

type ConfigMapPatchRequestBody struct {
	Data      map[string]string `json:"data"`
	Namespace string            `json:"namespace"`
}

type DeploymentPatchRequestBody

type DeploymentPatchRequestBody struct {
	Image string `json:"image"`
	//Deployment string `json:"deployment"`
	Container string `json:"container"`
	Namespace string `json:"namespace"`
}

type NSClonerRequestBody

type NSClonerRequestBody struct {
	//SourceNamespace string `json:"sourceNamespace"`
	TargetNamespace string `json:"targetNamespace"`
}

type SecretPatchRequestBody

type SecretPatchRequestBody struct {
	Data      map[string]interface{} `json:"data"`
	Namespace string                 `json:"namespace"`
}

Jump to

Keyboard shortcuts

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