controllers

package
v0.0.0-...-1806229 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

generated by stacks/gong/go/models/controller_file.go

generated by stacks/gong/go/models/controller_file.go

generated by stacks/gong/go/models/controller_file.go

generated by stacks/gong/go/models/controller_file.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteChartConfiguration

func DeleteChartConfiguration(c *gin.Context)

DeleteChartConfiguration

swagger:route DELETE /chartconfigurations/{ID} chartconfigurations deleteChartConfiguration

Delete a chartconfiguration

default: genericError

200: chartconfigurationDBResponse

func DeleteDataPoint

func DeleteDataPoint(c *gin.Context)

DeleteDataPoint

swagger:route DELETE /datapoints/{ID} datapoints deleteDataPoint

Delete a datapoint

default: genericError

200: datapointDBResponse

func DeleteDataset

func DeleteDataset(c *gin.Context)

DeleteDataset

swagger:route DELETE /datasets/{ID} datasets deleteDataset

Delete a dataset

default: genericError

200: datasetDBResponse

func DeleteLabel

func DeleteLabel(c *gin.Context)

DeleteLabel

swagger:route DELETE /labels/{ID} labels deleteLabel

Delete a label

default: genericError

200: labelDBResponse

func GetChartConfiguration

func GetChartConfiguration(c *gin.Context)

GetChartConfiguration

swagger:route GET /chartconfigurations/{ID} chartconfigurations getChartConfiguration

Gets the details for a chartconfiguration.

Responses: default: genericError

200: chartconfigurationDBResponse

func GetChartConfigurations

func GetChartConfigurations(c *gin.Context)

GetChartConfigurations

swagger:route GET /chartconfigurations chartconfigurations getChartConfigurations

Get all chartconfigurations

Responses: default: genericError

200: chartconfigurationDBResponse

func GetDataPoint

func GetDataPoint(c *gin.Context)

GetDataPoint

swagger:route GET /datapoints/{ID} datapoints getDataPoint

Gets the details for a datapoint.

Responses: default: genericError

200: datapointDBResponse

func GetDataPoints

func GetDataPoints(c *gin.Context)

GetDataPoints

swagger:route GET /datapoints datapoints getDataPoints

Get all datapoints

Responses: default: genericError

200: datapointDBResponse

func GetDataset

func GetDataset(c *gin.Context)

GetDataset

swagger:route GET /datasets/{ID} datasets getDataset

Gets the details for a dataset.

Responses: default: genericError

200: datasetDBResponse

func GetDatasets

func GetDatasets(c *gin.Context)

GetDatasets

swagger:route GET /datasets datasets getDatasets

Get all datasets

Responses: default: genericError

200: datasetDBResponse

func GetLabel

func GetLabel(c *gin.Context)

GetLabel

swagger:route GET /labels/{ID} labels getLabel

Gets the details for a label.

Responses: default: genericError

200: labelDBResponse

func GetLabels

func GetLabels(c *gin.Context)

GetLabels

swagger:route GET /labels labels getLabels

Get all labels

Responses: default: genericError

200: labelDBResponse

func GetLastCommitFromBackNb

func GetLastCommitFromBackNb(c *gin.Context)

swagger:route GET /commitfrombacknb backrepo GetLastCommitFromBackNb

func GetLastPushFromFrontNb

func GetLastPushFromFrontNb(c *gin.Context)

swagger:route GET /pushfromfrontnb backrepo GetLastPushFromFrontNb

func PostChartConfiguration

func PostChartConfiguration(c *gin.Context)

PostChartConfiguration

swagger:route POST /chartconfigurations chartconfigurations postChartConfiguration

Creates a chartconfiguration

Consumes:
- application/json

Produces:
- application/json

Responses:
  200: nodeDBResponse

func PostDataPoint

func PostDataPoint(c *gin.Context)

PostDataPoint

swagger:route POST /datapoints datapoints postDataPoint

Creates a datapoint

Consumes:
- application/json

Produces:
- application/json

Responses:
  200: nodeDBResponse

func PostDataset

func PostDataset(c *gin.Context)

PostDataset

swagger:route POST /datasets datasets postDataset

Creates a dataset

Consumes:
- application/json

Produces:
- application/json

Responses:
  200: nodeDBResponse

func PostLabel

func PostLabel(c *gin.Context)

PostLabel

swagger:route POST /labels labels postLabel

Creates a label

Consumes:
- application/json

Produces:
- application/json

Responses:
  200: nodeDBResponse

func RegisterControllers

func RegisterControllers(r *gin.Engine)

RegisterControllers register controllers

func UpdateChartConfiguration

func UpdateChartConfiguration(c *gin.Context)

UpdateChartConfiguration

swagger:route PATCH /chartconfigurations/{ID} chartconfigurations updateChartConfiguration

Update a chartconfiguration

Responses: default: genericError

200: chartconfigurationDBResponse

func UpdateDataPoint

func UpdateDataPoint(c *gin.Context)

UpdateDataPoint

swagger:route PATCH /datapoints/{ID} datapoints updateDataPoint

Update a datapoint

Responses: default: genericError

200: datapointDBResponse

func UpdateDataset

func UpdateDataset(c *gin.Context)

UpdateDataset

swagger:route PATCH /datasets/{ID} datasets updateDataset

Update a dataset

Responses: default: genericError

200: datasetDBResponse

func UpdateLabel

func UpdateLabel(c *gin.Context)

UpdateLabel

swagger:route PATCH /labels/{ID} labels updateLabel

Update a label

Responses: default: genericError

200: labelDBResponse

Types

type ChartConfigurationID

type ChartConfigurationID struct {
	// The ID of the order
	//
	// in: path
	// required: true
	ID int64
}

An ChartConfigurationID parameter model.

This is used for operations that want the ID of an order in the path swagger:parameters getChartConfiguration updateChartConfiguration deleteChartConfiguration

type ChartConfigurationInput

type ChartConfigurationInput struct {
	// The ChartConfiguration to submit or modify
	// in: body
	ChartConfiguration *orm.ChartConfigurationAPI
}

ChartConfigurationInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postChartConfiguration updateChartConfiguration

type DataPointID

type DataPointID struct {
	// The ID of the order
	//
	// in: path
	// required: true
	ID int64
}

An DataPointID parameter model.

This is used for operations that want the ID of an order in the path swagger:parameters getDataPoint updateDataPoint deleteDataPoint

type DataPointInput

type DataPointInput struct {
	// The DataPoint to submit or modify
	// in: body
	DataPoint *orm.DataPointAPI
}

DataPointInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postDataPoint updateDataPoint

type DatasetID

type DatasetID struct {
	// The ID of the order
	//
	// in: path
	// required: true
	ID int64
}

An DatasetID parameter model.

This is used for operations that want the ID of an order in the path swagger:parameters getDataset updateDataset deleteDataset

type DatasetInput

type DatasetInput struct {
	// The Dataset to submit or modify
	// in: body
	Dataset *orm.DatasetAPI
}

DatasetInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postDataset updateDataset

type GenericError

type GenericError struct {
	// in: body
	Body struct {
		Code    int32  `json:"code"`
		Message string `json:"message"`
	} `json:"body"`
}

A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures.

swagger:response genericError

type LabelID

type LabelID struct {
	// The ID of the order
	//
	// in: path
	// required: true
	ID int64
}

An LabelID parameter model.

This is used for operations that want the ID of an order in the path swagger:parameters getLabel updateLabel deleteLabel

type LabelInput

type LabelInput struct {
	// The Label to submit or modify
	// in: body
	Label *orm.LabelAPI
}

LabelInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postLabel updateLabel

type ValidationError

type ValidationError struct {
	// in: body
	Body struct {
		Code    int32  `json:"code"`
		Message string `json:"message"`
		Field   string `json:"field"`
	} `json:"body"`
}

A ValidationError is an that is generated for validation failures. It has the same fields as a generic error but adds a Field property.

swagger:response validationError

Jump to

Keyboard shortcuts

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