handlers

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package router Soutions-Service

Soutions-Service is service for managing user solutions.

 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 ActivateTemplate

func ActivateTemplate(ctx *gin.Context)

swagger:operation POST /templates/{template}/activate Templates ActivateTemplate Activate template.

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

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

responses:

'202':
  description: solution activated
default:
  $ref: '#/responses/error'

func AddTemplate

func AddTemplate(ctx *gin.Context)

swagger:operation POST /templates Templates AddTemplate Add template.

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

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

responses:

'201':
  description: solution added
default:
  $ref: '#/responses/error'

func DeactivateTemplate

func DeactivateTemplate(ctx *gin.Context)

swagger:operation POST /templates/{template}/deactivate Templates DeactivateTemplate Deactivate template.

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

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

responses:

'202':
  description: solution deactivated
default:
  $ref: '#/responses/error'

func DeleteNamespaceSolutions

func DeleteNamespaceSolutions(ctx *gin.Context)

swagger:operation DELETE /namespaces/{namespace}/solutions Solutions DeleteNamespaceSolutions Delete all namespace solutions.

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

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

responses:

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

func DeleteSolution

func DeleteSolution(ctx *gin.Context)

swagger:operation DELETE /namespaces/{namespace}/solutions/{solution} Solutions DeleteSolution Delete solution.

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

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

responses:

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

func DeleteSolutions

func DeleteSolutions(ctx *gin.Context)

swagger:operation DELETE /solutions Solutions DeleteSolutions Delete user solution.

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

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

responses:

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

func GetNamespaceSolutions

func GetNamespaceSolutions(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/solutions Solutions GetNamespaceSolutions Get running namespace solutions list.

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

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

responses:

'200':
  description: running namespace solutions list
  schema:
    $ref: '#/definitions/SolutionsList'
default:
  $ref: '#/responses/error'

func GetSolution

func GetSolution(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/solutions/{solution} Solutions GetSolution Get running solution.

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

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

responses:

'200':
  description: running solution
  schema:
    $ref: '#/definitions/SolutionsList'
default:
  $ref: '#/responses/error'

func GetSolutionsDeployments

func GetSolutionsDeployments(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/solutions/{solution}/deployments Solutions GetSolutionsDeployments Get solution deployments.

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

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

responses:

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

func GetSolutionsList

func GetSolutionsList(ctx *gin.Context)

swagger:operation GET /solutions Solutions GetSolutionsList Get running solutions list.

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

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

responses:

'200':
  description: running solutions list
  schema:
    $ref: '#/definitions/SolutionsList'
default:
  $ref: '#/responses/error'

func GetSolutionsServices

func GetSolutionsServices(ctx *gin.Context)

swagger:operation GET /namespaces/{namespace}/solutions/{solution}/services Solutions GetSolutionsServices Get solution services.

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

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

responses:

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

func GetTemplatesEnv

func GetTemplatesEnv(ctx *gin.Context)

swagger:operation GET /templates/{template}/env Templates GetTemplatesEnv Get solution templates environment variables.

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

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

responses:

'200':
  description: available solution envs
  schema:
    $ref: '#/definitions/SolutionEnv'
default:
  $ref: '#/responses/error'

func GetTemplatesList

func GetTemplatesList(ctx *gin.Context)

swagger:operation GET /templates Templates GetTemplatesList Get solutions templates list.

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

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

responses:

'200':
  description: available solutions
  schema:
    $ref: '#/definitions/SolutionsTemplatesList'
default:
  $ref: '#/responses/error'

func GetTemplatesResources

func GetTemplatesResources(ctx *gin.Context)

swagger:operation GET /templates/{template}/resources Templates GetTemplatesResources Get solution templates resources.

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

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

responses:

'200':
  description: available solution resources
  schema:
    $ref: '#/definitions/SolutionResources'
default:
  $ref: '#/responses/error'

func RunSolution

func RunSolution(ctx *gin.Context)

swagger:operation POST /namespaces/{namespace}/solutions Solutions RunSolution Run solution.

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

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

responses:

'202':
  description: solution created
  schema:
    $ref: '#/definitions/RunSolutionResponse'
default:
  $ref: '#/responses/error'

func UpdateTemplate

func UpdateTemplate(ctx *gin.Context)

swagger:operation PUT /templates/{template} Templates UpdateTemplate Update template.

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

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

responses:

'202':
  description: solution updated
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