deployment

package
v0.0.0-...-1af1d7c Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	*K8sClient
}

func NewDeploymentController

func NewDeploymentController(kubeConfig *K8sClient) Controller

func (*Controller) DeleteDeployment

func (dc *Controller) DeleteDeployment(ctx *gin.Context)

DeleteDeployment @Summary Delete deployment @Tags deployment @Router /apis/apps/v1/{namespace}/deployments/{name} [delete] @Param namespace path string true "Namespace" default(default) @Param name path string true "Deployment name" @response default {boolean} boolean true @Produce application/json

func (*Controller) GetDeployment

func (dc *Controller) GetDeployment(ctx *gin.Context)

GetDeployment godoc @Summary Get deployment by name. @Description Return deployment. @Tags deployment @Router /apis/apps/v1/{namespace}/deployments/{name} [get] @Param namespace path string true "Namespace" default(default) @Param name path string true "Deployment name" @Response 200 {object} GetDeploymentResponse @Produce application/json

func (*Controller) ListDeployment

func (dc *Controller) ListDeployment(ctx *gin.Context)

ListDeployment godoc @Summary Get the List of default namespace deployment. @Description Return list of deployment. @Tags deployment @Router /apis/apps/v1/{namespace}/deployments [get] @Param namespace path string true "Namespace" default(default) @Response 200 {array} ListResponse @Produce application/json

func (*Controller) ReadDeploymentScale

func (dc *Controller) ReadDeploymentScale(ctx *gin.Context)

ReadDeploymentScale @Summary Scale deployment @Tags deployment @Router /apis/apps/v1/{namespace}/deployments/{name}/scale [get] @Param namespace path string true "Namespace" default(default) @Param name path string true "Deployment name" @Response 200 {object} ScaleDeploymentResponse @Produce application/json

func (*Controller) UpdateDeploymentReplica

func (dc *Controller) UpdateDeploymentReplica(ctx *gin.Context)

UpdateDeploymentReplica @Summary Update Deployment Replica @Tags deployment @Router /apis/apps/v1/{namespace}/deployments/{name}/{replica} [put] @Param namespace path string true "Namespace" default(default) @Param name path string true "Deployment name" @Param replica path string true "Replica" @Response 200 {object} ScaleDeploymentResponse @Produce application/json

type DeleteDeploymentResponse

type DeleteDeploymentResponse struct {
	// contains filtered or unexported fields
}

type GetDeploymentResponse

type GetDeploymentResponse struct {
	v1.Deployment `json:",inline"`
}

type K8sClient

type K8sClient struct {
	Client kubernetes.Interface
}

type ListResponse

type ListResponse struct {
	v1.DeploymentList `json:",inline"`
}

type Route

type Route struct {
	// contains filtered or unexported fields
}

func NewDeploymentRoute

func NewDeploymentRoute(deploymentController Controller) Route

func (*Route) DeploymentRoute

func (r *Route) DeploymentRoute(router *gin.RouterGroup)

type ScaleDeploymentResponse

type ScaleDeploymentResponse struct {
	autoscalingv1.Scale `json:",inline"`
}

Jump to

Keyboard shortcuts

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