ordercontroller

package
v1.8.13 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteCluster

func DeleteCluster() gin.HandlerFunc

Order deletion of a kubernetes cluster by a apiresourcecontracts.ResourceClusterOrderSpec in the body Will only provide clusters the identity is authorized to view

@Summary	Order deletion of a kubernetes cluster
@Schemes
@Description	Order deletion of a kubernetes cluster
@Tags			orders
@Accept			application/json
@Produce		application/json
@Param			order				body	apiresourcecontracts.ResourceClusterOrderSpec	true	"Order"
@Success		201					{string}	string
@Failure		403					{object}	rorerror.ErrorData
@Failure		400					{object}	rorerror.ErrorData
@Failure		401					{object}	rorerror.ErrorData
@Failure		500					{object}	rorerror.ErrorData
@Router			/v1/orders/cluster	[delete]
@Security		ApiKey || AccessToken

func DeleteOrder

func DeleteOrder() gin.HandlerFunc

Delete order

@Summary	Delete an order by uid
@Schemes
@Description	Delete a specific order by uid
@Tags			orders
@Accept			application/json
@Produce		application/json
@Param			uid					path	string	true	"uid"
@Success		200					{boolean}	bool
@Failure		403					{object}	rorerror.ErrorData
@Failure		400					{object}	rorerror.ErrorData
@Failure		401					{object}	rorerror.ErrorData
@Failure		500					{object}	rorerror.ErrorData
@Router			/v1/orders/{uid}	[delete]
@Security		ApiKey || AccessToken

func GetOrder

func GetOrder() gin.HandlerFunc

Get order by uid

@Summary	Get order by uid
@Schemes
@Description	Get a specific order by uid
@Tags			orders
@Accept			application/json
@Produce		application/json
@Param			uid					path	string	true	"uid"
@Success		200					{object}	apiresourcecontracts.ResourceClusterOrder
@Failure		403					{object}	rorerror.ErrorData
@Failure		400					{object}	rorerror.ErrorData
@Failure		401					{object}	rorerror.ErrorData
@Failure		500					{object}	rorerror.ErrorData
@Router			/v1/orders/{uid}	[get]
@Security		ApiKey || AccessToken

func GetOrders

func GetOrders() gin.HandlerFunc

Get orders

@Summary	Get orders
@Schemes
@Description	Get all orders
@Tags			orders
@Accept			application/json
@Produce		application/json
@Success		200			{object}	apiresourcecontracts.ResourceListClusterorders
@Failure		403			{object}	rorerror.ErrorData
@Failure		400			{object}	rorerror.ErrorData
@Failure		401			{object}	rorerror.ErrorData
@Failure		500			{object}	rorerror.ErrorData
@Router			/v1/orders	[get]
@Security		ApiKey || AccessToken

func OrderCluster

func OrderCluster() gin.HandlerFunc

Order a kubernetes cluster by a apiresourcecontracts.ResourceClusterOrderSpec in the body Will only provide clusters the identity is authorized to views

@Summary	Order a kubernetes cluster
@Schemes
@Description	Order a kubernetes cluster
@Tags			orders
@Accept			application/json
@Produce		application/json
@Param			order				body	apiresourcecontracts.ResourceClusterOrderSpec	true	"Order"
@Success		201					{string}	string
@Failure		403					{object}	rorerror.ErrorData
@Failure		400					{object}	rorerror.ErrorData
@Failure		401					{object}	rorerror.ErrorData
@Failure		500					{object}	rorerror.ErrorData
@Router			/v1/orders/cluster	[post]
@Security		ApiKey || AccessToken

Types

This section is empty.

Jump to

Keyboard shortcuts

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