handlers

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package router Kube-Importer

Resource-Service is service for importing kubernetes resources to other services.

 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 CreateMissingLimitsHandler added in v0.0.3

func CreateMissingLimitsHandler(ctx *gin.Context)

swagger:operation POST /limits Import CreateMissingLimits Create missing LimitRange and ResourceQuota in Kubernetes namespaces.

--- x-method-visibility: public responses:

'202':
  description: creation result
  schema:
    $ref: '#/definitions/ImportResponse'
default:
  $ref: '#/responses/error'

func ExportConfigMapsListHandler

func ExportConfigMapsListHandler(ctx *gin.Context)

swagger:operation GET /configmaps Export ExportConfigMapsList Export config maps.

--- x-method-visibility: public responses:

'200':
  description: export result
  schema:
    $ref: '#/definitions/ConfigMapsList'
default:
  $ref: '#/responses/error'

func ExportDeploymentsListHandler

func ExportDeploymentsListHandler(ctx *gin.Context)

swagger:operation GET /deployments Export ExportDeploymentsList Export namespaces.

--- x-method-visibility: public responses:

'200':
  description: export result
  schema:
    $ref: '#/definitions/DeploymentsList'
default:
  $ref: '#/responses/error'

func ExportIngressesListHandler

func ExportIngressesListHandler(ctx *gin.Context)

swagger:operation GET /ingresses Export ExportIngressesList Export ingresses.

--- x-method-visibility: public responses:

'200':
  description: export result
  schema:
    $ref: '#/definitions/ServiceWithParamList'
default:
  $ref: '#/responses/error'

func ExportNamespacesListHandler

func ExportNamespacesListHandler(ctx *gin.Context)

swagger:operation GET /namespaces Export ExportNamespacesList Export namespaces.

--- x-method-visibility: public responses:

'200':
  description: export result
  schema:
    $ref: '#/definitions/NamespacesList'
default:
  $ref: '#/responses/error'

func ExportServicesListHandler

func ExportServicesListHandler(ctx *gin.Context)

swagger:operation GET /services Export ExportServicesList Export services.

--- x-method-visibility: public responses:

'200':
  description: export result
  schema:
    $ref: '#/definitions/ServiceWithParamList'
default:
  $ref: '#/responses/error'

func ExportStoragesListHandler

func ExportStoragesListHandler(ctx *gin.Context)

swagger:operation GET /storages Export ExportStoragesList Export storages.

--- x-method-visibility: public responses:

'200':
  description: export result
  schema:
    $ref: '#/definitions/StorageList'
default:
  $ref: '#/responses/error'

func ExportVolumesListHandler

func ExportVolumesListHandler(ctx *gin.Context)

swagger:operation GET /volumes Export ExportVolumesList Export volumes.

--- x-method-visibility: public responses:

'200':
  description: export result
  schema:
    $ref: '#/definitions/VolumesList'
default:
  $ref: '#/responses/error'

func ImportAllHandler

func ImportAllHandler(ctx *gin.Context)

swagger:operation POST /all Import ImportAllHandler Import all resources.

--- x-method-visibility: public responses:

'202':
  description: import result
  schema:
    $ref: '#/definitions/ImportResponseTotal'
default:
  $ref: '#/responses/error'

func ImportAllWSHandler

func ImportAllWSHandler(ctx *gin.Context)

swagger:operation GET /all/ws Import ImportAllWS Import all resources with websockets response.

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

  • $ref: '#/parameters/UpgradeHeader'
  • $ref: '#/parameters/ConnectionHeader'
  • $ref: '#/parameters/SecWebSocketKeyHeader'
  • $ref: '#/parameters/SecWebsocketVersionHeader'

responses:

'101':
  description: import response
default:
  $ref: '#/responses/error'

func ImportConfigMapsListHandler

func ImportConfigMapsListHandler(ctx *gin.Context)

swagger:operation POST /configmaps Import ImportConfigMapsList Import configmaps.

--- x-method-visibility: public responses:

'202':
  description: import result
  schema:
    $ref: '#/definitions/ImportResponse'
default:
  $ref: '#/responses/error'

func ImportDeploymentsListHandler

func ImportDeploymentsListHandler(ctx *gin.Context)

swagger:operation POST /deployments Import ImportDeploymentsList Import deployments.

--- x-method-visibility: public responses:

'202':
  description: import result
  schema:
    $ref: '#/definitions/ImportResponse'
default:
  $ref: '#/responses/error'

func ImportIngressesListHandler

func ImportIngressesListHandler(ctx *gin.Context)

swagger:operation POST /ingresses Import ImportIngressesList Import ingresses.

--- x-method-visibility: public responses:

'202':
  description: import result
  schema:
    $ref: '#/definitions/ImportResponse'
default:
  $ref: '#/responses/error'

func ImportNamespacesListHandler

func ImportNamespacesListHandler(ctx *gin.Context)

swagger:operation POST /namespaces Import ImportNamespacesList Import namespaces.

--- x-method-visibility: public responses:

'202':
  description: import result
  schema:
    $ref: '#/definitions/ImportResponse'
default:
  $ref: '#/responses/error'

func ImportServicesListHandler

func ImportServicesListHandler(ctx *gin.Context)

swagger:operation POST /services Import ImportServicesList Import services.

--- x-method-visibility: public responses:

'202':
  description: import result
  schema:
    $ref: '#/definitions/ImportResponse'
default:
  $ref: '#/responses/error'

func ImportStoragesListHandler

func ImportStoragesListHandler(ctx *gin.Context)

swagger:operation POST /storages Import ImportStoragesList Import storages.

--- x-method-visibility: public responses:

'202':
  description: import result
  schema:
    $ref: '#/definitions/ImportResponse'
default:
  $ref: '#/responses/error'

func ImportVolumesListHandler

func ImportVolumesListHandler(ctx *gin.Context)

swagger:operation POST /volumes Import ImportVolumesList Import volumes.

--- x-method-visibility: public responses:

'202':
  description: import result
  schema:
    $ref: '#/definitions/ImportResponse'
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