handlers

package
v1.0.8-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package routes Kube API

Kube API service is service for connection with Kubernetes.

 Version: 0.0.1
	Consumes:
	- application/json

	Produces:
	- application/json

swagger:meta

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfigMap

func CreateConfigMap(ctx *gin.Context)

swagger:operation POST /namespaces/{namespace}/configmaps ConfigMap CreateConfigMap Create config map.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: body in: body schema: $ref: '#/definitions/ConfigMap'

responses:

'201':
  description: config map created
  schema:
    $ref: '#/definitions/ConfigMap'
default:
  $ref: '#/responses/error'

func CreateDeployment

func CreateDeployment(ctx *gin.Context)

swagger:operation POST /namespaces/{namespace}/deployments Deployment CreateDeployment Create deployment.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: body in: body schema: $ref: '#/definitions/Deployment'

responses:

'201':
  description: deployment created
  schema:
    $ref: '#/definitions/Deployment'
default:
  $ref: '#/responses/error'

func CreateDockerSecret added in v1.0.5

func CreateDockerSecret(ctx *gin.Context)

swagger:operation POST /namespaces/{namespace}/secrets/docker Secret CreateDockerSecret Create secret.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: body in: body schema: $ref: '#/definitions/Secret'

responses:

'201':
  description: secret created
  schema:
    $ref: '#/definitions/Secret'
default:
  $ref: '#/responses/error'

func CreateEndpoint

func CreateEndpoint(ctx *gin.Context)

swagger:operation POST /namespaces/{namespace}/endpoints Endpoint CreateEndpoint Create endpoint.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: body in: body schema: $ref: '#/definitions/Endpoint'

responses:

'201':
  description: endpoint created
  schema:
    $ref: '#/definitions/Endpoint'
default:
  $ref: '#/responses/error'

func CreateIngress

func CreateIngress(ctx *gin.Context)

swagger:operation POST /namespaces/{namespace}/ingresses Ingress CreateIngress Create ingress.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: body in: body schema: $ref: '#/definitions/Ingress'

responses:

'201':
  description: ingress created
  schema:
    $ref: '#/definitions/Ingress'
default:
  $ref: '#/responses/error'

func CreateNamespace

func CreateNamespace(ctx *gin.Context)

swagger:operation POST /namespaces Namespace CreateNamespace Create namespace.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: body in: body schema: $ref: '#/definitions/Namespace'

responses:

'201':
  description: namespace created
  schema:
    $ref: '#/definitions/Namespace'
default:
  $ref: '#/responses/error'

func CreateService

func CreateService(ctx *gin.Context)

swagger:operation POST /namespaces/{namespace}/services Service CreateService Create service.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: body in: body schema: $ref: '#/definitions/ServiceWithParam'

responses:

'201':
  description: service created
  schema:
    $ref: '#/definitions/ServiceWithParam'
default:
  $ref: '#/responses/error'

func CreateTLSSecret added in v1.0.5

func CreateTLSSecret(ctx *gin.Context)

swagger:operation POST /namespaces/{namespace}/secrets/tls Secret CreateTLSSecret Create secret.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: body in: body schema: $ref: '#/definitions/Secret'

responses:

'201':
  description: secret created
  schema:
    $ref: '#/definitions/Secret'
default:
  $ref: '#/responses/error'

func CreateVolume

func CreateVolume(ctx *gin.Context)

swagger:operation POST /namespaces/{namespace}/volume Volume CreateVolume Create volume.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: body in: body schema: $ref: '#/definitions/Volume'

responses:

'201':
  description: volume created
  schema:
    $ref: '#/definitions/Volume'
default:
  $ref: '#/responses/error'

func DeleteConfigMap

func DeleteConfigMap(ctx *gin.Context)

swagger:operation DELETE /namespaces/{namespace}/configmaps/{configmap} ConfigMap DeleteConfigMap Delete config map.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: configmap in: path type: string required: true

responses:

'202':
  description: config map deleted
default:
  $ref: '#/responses/error'

func DeleteDeployment

func DeleteDeployment(ctx *gin.Context)

swagger:operation DELETE /namespaces/{namespace}/deployments/{deployment} Deployment DeleteDeployment Delete deployment.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: deployment in: path type: string required: true

responses:

'202':
  description: deployment deleted
default:
  $ref: '#/responses/error'

func DeleteDeploymentsSolution added in v1.0.5

func DeleteDeploymentsSolution(ctx *gin.Context)

swagger:operation DELETE /namespaces/{namespace}/solutiosn/{solution}deployments Deployment DeleteDeploymentsSolution Delete solution deployments.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: solution in: path type: string required: true

responses:

'202':
  description: deployments deleted
default:
  $ref: '#/responses/error'

func DeleteEndpoint

func DeleteEndpoint(ctx *gin.Context)

swagger:operation DELETE /namespaces/{namespace}/endpoints/{endpoint} Endpoint DeleteEndpoint Delete endpoint.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: endpoint in: path type: string required: true

responses:

'202':
  description: endpoint deleted
default:
  $ref: '#/responses/error'

func DeleteIngress

func DeleteIngress(ctx *gin.Context)

swagger:operation DELETE /namespaces/{namespace}/ingresses/{ingress} Ingress DeleteIngress Delete ingress.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: ingress in: path type: string required: true

responses:

'202':
  description: ingress deleted
default:
  $ref: '#/responses/error'

func DeleteNamespace

func DeleteNamespace(ctx *gin.Context)

swagger:operation DELETE /namespaces/{namespace} Namespace DeleteNamespace Delete namespace.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true

responses:

'202':
  description: namespace deleted
default:
  $ref: '#/responses/error'

func DeletePod

func DeletePod(ctx *gin.Context)

swagger:operation DELETE /namespaces/{namespace}/pods/{pod} Pod DeletePod Delete pod.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: pod in: path type: string required: true

responses:

'202':
  description: pod deleted
default:
  $ref: '#/responses/error'

func DeleteSecret

func DeleteSecret(ctx *gin.Context)

swagger:operation DELETE /namespaces/{namespace}/secrets/{secret} Secret DeleteSecret Delete secret.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: secret in: path type: string required: true

responses:

'202':
  description: secret deleted
default:
  $ref: '#/responses/error'

func DeleteService

func DeleteService(ctx *gin.Context)

swagger:operation DELETE /namespaces/{namespace}/services/{service} Service DeleteService Delete service.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: service in: path type: string required: true

responses:

'202':
  description: service deleted
default:
  $ref: '#/responses/error'

func DeleteServicesSolution added in v1.0.5

func DeleteServicesSolution(ctx *gin.Context)

swagger:operation DELETE /namespaces/{namespace}/solutions/{solution}/services Service DeleteServicesSolution Delete solution services.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: solution in: path type: string required: true

responses:

'202':
  description: services deleted
default:
  $ref: '#/responses/error'

func DeleteUserNamespaces added in v1.0.5

func DeleteUserNamespaces(ctx *gin.Context)

swagger:operation DELETE /namespaces Namespace DeleteUserNamespaces Delete user namespaces.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'

responses:

'202':
  description: namespaces deleted
default:
  $ref: '#/responses/error'

func DeleteVolume

func DeleteVolume(ctx *gin.Context)

swagger:operation DELETE /namespaces/{namespace}/volume/{volume} Volume DeleteVolume Delete volume.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: volume in: path type: string required: true

responses:

'202':
  description: volume deleted
default:
  $ref: '#/responses/error'

func Exec

func Exec(ctx *gin.Context)

func GetConfigMap

func GetConfigMap(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/configmaps/{configmap} ConfigMap GetConfigMap Get config map.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: configmap in: path type: string required: true

responses:

'200':
  description: config map
  schema:
    $ref: '#/definitions/ConfigMap'
default:
  $ref: '#/responses/error'

func GetConfigMapList

func GetConfigMapList(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/configmaps ConfigMap GetConfigMapList Get config maps list.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true

responses:

'200':
  description: config maps list
  schema:
    $ref: '#/definitions/ConfigMapsList'
default:
  $ref: '#/responses/error'

func GetDeployment

func GetDeployment(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/deployments/{deployment} Deployment GetDeployment Get deployment.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: deployment in: path type: string required: true

responses:

'200':
  description: deployment
  schema:
    $ref: '#/definitions/Deployment'
default:
  $ref: '#/responses/error'

func GetDeploymentList

func GetDeploymentList(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/deployments Deployment GetDeploymentList Get deployments list.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: owner in: query type: string required: false

responses:

'200':
  description: deployments list
  schema:
    $ref: '#/definitions/DeploymentsList'
default:
  $ref: '#/responses/error'

func GetDeploymentPodList added in v1.0.5

func GetDeploymentPodList(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/deployments/{deployment}/pods Pod GetDeploymentPodList Get deployment pods list.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: deployment in: path type: string required: true

responses:

'200':
  description: deployment pod list
  schema:
    $ref: '#/definitions/PodsList'
default:
  $ref: '#/responses/error'

func GetDeploymentSolutionList added in v1.0.5

func GetDeploymentSolutionList(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/solutions/{solution}/deployments Deployment GetDeploymentSolutionList Get solution deployments list.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: solution in: path type: string required: true

responses:

'200':
  description: deployments list
  schema:
    $ref: '#/definitions/DeploymentsList'
default:
  $ref: '#/responses/error'

func GetEndpoint

func GetEndpoint(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/endpoints/{endpoint} Endpoint GetEndpoint Get endpoint.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: endpoint in: path type: string required: true

responses:

'200':
  description: endpoint
  schema:
    $ref: '#/definitions/Endpoint'
default:
  $ref: '#/responses/error'

func GetEndpointList

func GetEndpointList(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/endpoints Endpoint GetEndpointList Get endpoints list.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true

responses:

'200':
  description: endpoints list
  schema:
    $ref: '#/definitions/EndpointsList'
default:
  $ref: '#/responses/error'

func GetIngress

func GetIngress(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/ingresses/{ingress} Ingress GetIngress Get ingresses list.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: ingress in: path type: string required: true

responses:

'200':
  description: ingresses
  schema:
    $ref: '#/definitions/Ingress'
default:
  $ref: '#/responses/error'

func GetIngressList

func GetIngressList(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/ingresses Ingress GetIngressList Get ingresses list.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true

responses:

'200':
  description: ingresses list
  schema:
    $ref: '#/definitions/IngressesList'
default:
  $ref: '#/responses/error'

func GetNamespace

func GetNamespace(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace} Namespace GetNamespace Get namespace.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true

responses:

'200':
  description: namespace
  schema:
    $ref: '#/definitions/Namespace'
default:
  $ref: '#/responses/error'

func GetNamespaceList

func GetNamespaceList(ctx *gin.Context)

swagger:operation GET /namespaces Namespace GetNamespaceList Get namespaces list.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: owner in: query type: string required: false

responses:

'200':
  description: ingresses list
  schema:
    $ref: '#/definitions/NamespacesList'
default:
  $ref: '#/responses/error'

func GetPod

func GetPod(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/pods/{pod} Pod GetPod Get pod.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: pod in: path type: string required: true

responses:

'200':
  description: pod
  schema:
    $ref: '#/definitions/Pod'
default:
  $ref: '#/responses/error'

func GetPodList

func GetPodList(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/pods Pod GetPodList Get pods list.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: owner in: query type: string required: false

responses:

'200':
  description: pod list
  schema:
    $ref: '#/definitions/PodsList'
default:
  $ref: '#/responses/error'

func GetPodLogs

func GetPodLogs(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/pods/{pod}/log Pod GetPodLogs Get pod logs.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • $ref: '#/parameters/UpgradeHeader'
  • $ref: '#/parameters/ConnectionHeader'
  • $ref: '#/parameters/SecWebSocketKeyHeader'
  • $ref: '#/parameters/SecWebsocketVersionHeader'
  • name: namespace in: path type: string required: true
  • name: pod in: path type: string required: true
  • name: follow in: query type: string required: false
  • name: tail in: query type: string required: false
  • name: container in: query type: string required: false
  • name: previous in: query type: string required: false

responses:

'101':
  description: pod logs
default:
  $ref: '#/responses/error'

func GetSecret

func GetSecret(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/secrets/{secret} Secret GetSecret Get secret.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: secret in: path type: string required: true

responses:

'200':
  description: secret
  schema:
    $ref: '#/definitions/Secret'
default:
  $ref: '#/responses/error'

func GetSecretList

func GetSecretList(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/secrets Secret GetSecretList Get TLS secrets list.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: docker in: query type: string required: false

responses:

'200':
  description: secrets list
  schema:
    $ref: '#/definitions/SecretsList'
default:
  $ref: '#/responses/error'

func GetSelectedConfigMaps

func GetSelectedConfigMaps(ctx *gin.Context)

swagger:operation GET /configmaps ConfigMap GetSelectedConfigMaps Get config maps from all user namespaces.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'

responses:

'200':
  description: config maps list from all users namespaces
  schema:
    $ref: '#/definitions/SelectedConfigMapsList'
default:
  $ref: '#/responses/error'

func GetSelectedIngresses

func GetSelectedIngresses(ctx *gin.Context)

swagger:operation GET /ingresses Ingress GetSelectedIngresses Get ingresses from all user namespaces.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'

responses:

'200':
  description: ingresses list from all users namespaces
  schema:
    $ref: '#/definitions/SelectedIngressesList'
default:
  $ref: '#/responses/error'

func GetService

func GetService(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/services/{service} Service GetService Get services list.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: service in: path type: string required: true

responses:

'200':
  description: service
  schema:
    $ref: '#/definitions/ServiceWithParam'
default:
  $ref: '#/responses/error'

func GetServiceList

func GetServiceList(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/services Service GetServiceList Get services list.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true

responses:

'200':
  description: services list
  schema:
    $ref: '#/definitions/ServicesList'
default:
  $ref: '#/responses/error'

func GetServiceSolutionList added in v1.0.5

func GetServiceSolutionList(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/solutions/{solution}/services Service GetServiceSolutionList Get solution services list.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: solution in: path type: string required: true

responses:

'200':
  description: services list
  schema:
    $ref: '#/definitions/ServicesList'
default:
  $ref: '#/responses/error'

func GetStorageList added in v1.0.6

func GetStorageList(ctx *gin.Context)

swagger:operation GET /storage Service GetStorageList Get storage list.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'

responses:

'200':
  description: storage list
  schema:
    $ref: '#/definitions/StorageList'
default:
  $ref: '#/responses/error'

func GetVolume

func GetVolume(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/volumes/{volume} Volume GetVolume Get volumes list.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: volume in: path type: string required: true

responses:

'200':
  description: volume
  schema:
    $ref: '#/definitions/Volume'
default:
  $ref: '#/responses/error'

func GetVolumeList

func GetVolumeList(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/volumes Volume GetVolumeList Get volumes list.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true

responses:

'200':
  description: volumes list
  schema:
    $ref: '#/definitions/VolumesList'
default:
  $ref: '#/responses/error'

func UpdateConfigMap

func UpdateConfigMap(ctx *gin.Context)

swagger:operation PUT /namespaces/{namespace}/configmaps/{configmap} ConfigMap UpdateConfigMap Update config map.

--- x-method-visibility: public parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: configmap in: path type: string required: true
  • name: body in: body schema: $ref: '#/definitions/ConfigMap'

responses:

'202':
  description: config map updated
  schema:
    $ref: '#/definitions/ConfigMap'
default:
  $ref: '#/responses/error'

func UpdateDeployment

func UpdateDeployment(ctx *gin.Context)

swagger:operation PUT /namespaces/{namespace}/deployments/{deployment} Deployment UpdateDeployment Update deployment.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: deployment in: path type: string required: true
  • name: body in: body schema: $ref: '#/definitions/Deployment'

responses:

'202':
  description: deployment updated
  schema:
    $ref: '#/definitions/Deployment'
default:
  $ref: '#/responses/error'

func UpdateDeploymentImage

func UpdateDeploymentImage(ctx *gin.Context)

swagger:operation PUT /namespaces/{namespace}/deployments/{deployment}/image Deployment UpdateDeploymentImage Update image in deployments container.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: deployment in: path type: string required: true
  • name: body in: body schema: $ref: '#/definitions/UpdateImage'

responses:

'202':
  description: deployment updated
  schema:
    $ref: '#/definitions/Deployment'
default:
  $ref: '#/responses/error'

func UpdateDeploymentReplicas

func UpdateDeploymentReplicas(ctx *gin.Context)

swagger:operation PUT /namespaces/{namespace}/deployments/{deployment}/replicas Deployment UpdateDeploymentReplicas Update deployments replicas count.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: deployment in: path type: string required: true
  • name: body in: body schema: $ref: '#/definitions/UpdateReplicas'

responses:

'202':
  description: deployment updated
  schema:
    $ref: '#/definitions/Deployment'
default:
  $ref: '#/responses/error'

func UpdateEndpoint

func UpdateEndpoint(ctx *gin.Context)

swagger:operation PUT /namespaces/{namespace}/endpoints/{endpoint} Endpoint UpdateEndpoint Update endpoint.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: endpoint in: path type: string required: true
  • name: body in: body schema: $ref: '#/definitions/Endpoint'

responses:

'201':
  description: endpoint updated
  schema:
    $ref: '#/definitions/Endpoint'
default:
  $ref: '#/responses/error'

func UpdateIngress

func UpdateIngress(ctx *gin.Context)

swagger:operation PUT /namespaces/{namespace}/ingresses/{ingress} Ingress UpdateIngress Update ingress.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: ingress in: path type: string required: true
  • name: body in: body schema: $ref: '#/definitions/Ingress'

responses:

'201':
  description: ingress updated
  schema:
    $ref: '#/definitions/Ingress'
default:
  $ref: '#/responses/error'

func UpdateNamespace

func UpdateNamespace(ctx *gin.Context)

swagger:operation PUT /namespaces/{namespace} Namespace UpdateNamespace Update namespace.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: body in: body schema: $ref: '#/definitions/Namespace'

responses:

'201':
  description: namespace updated
  schema:
    $ref: '#/definitions/Namespace'
default:
  $ref: '#/responses/error'

func UpdateSecret

func UpdateSecret(ctx *gin.Context)

swagger:operation PUT /namespaces/{namespace}/secrets/{secret} Secret UpdateSecret Update secret.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: secret in: path type: string required: true
  • name: docker in: query type: string required: false
  • name: body in: body schema: $ref: '#/definitions/Secret'

responses:

'202':
  description: secret updated
  schema:
    $ref: '#/definitions/Secret'
default:
  $ref: '#/responses/error'

func UpdateService

func UpdateService(ctx *gin.Context)

swagger:operation PUT /namespaces/{namespace}/services/{service} Service UpdateService Update service.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: service in: path type: string required: true
  • name: body in: body schema: $ref: '#/definitions/ServiceWithParam'

responses:

'202':
  description: service updated
  schema:
    $ref: '#/definitions/ServiceWithParam'
default:
  $ref: '#/responses/error'

func UpdateVolume

func UpdateVolume(ctx *gin.Context)

swagger:operation PUT /namespaces/{namespace}/volumes/{volume} Volume UpdateVolume Update volume.

--- x-method-visibility: private parameters:

  • $ref: '#/parameters/UserIDHeader'
  • $ref: '#/parameters/UserRoleHeader'
  • $ref: '#/parameters/UserNamespaceHeader'
  • name: namespace in: path type: string required: true
  • name: volume in: path type: string required: true
  • name: body in: body schema: $ref: '#/definitions/Volume'

responses:

'202':
  description: volume updated
  schema:
    $ref: '#/definitions/Volume'
default:
  $ref: '#/responses/error'

Types

This section is empty.

Jump to

Keyboard shortcuts

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