controllers

package
v0.0.0-...-78d0a72 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

generated code - do not edit

generated code - do not edit

generated code - do not edit

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(r *gin.Engine)

Types

type Controller

type Controller struct {

	// Map_BackRepos is the map to the backRepo instance according to the stack instance path
	Map_BackRepos map[string]*probe_orm.BackRepoStruct
	// contains filtered or unexported fields
}

A Controller is the handler of all API REST calls matching the stack model It forwards API requests to the stack instance identified by the Name parameters in the request the stack instance is the BackRepo instance

func GetController

func GetController() *Controller

func (*Controller) AddBackRepo

func (controller *Controller) AddBackRepo(backRepo *probe_orm.BackRepoStruct, stackPath string)

func (*Controller) DeleteProbe2

func (controller *Controller) DeleteProbe2(c *gin.Context)

DeleteProbe2

swagger:route DELETE /probe2s/{ID} probe2s deleteProbe2

Delete a probe2

default: genericError

200: probe2DBResponse

func (*Controller) GetLastCommitFromBackNb

func (controller *Controller) GetLastCommitFromBackNb(c *gin.Context)

swagger:route GET /commitfrombacknb backrepo GetLastCommitFromBackNb

func (*Controller) GetLastPushFromFrontNb

func (controller *Controller) GetLastPushFromFrontNb(c *gin.Context)

swagger:route GET /pushfromfrontnb backrepo GetLastPushFromFrontNb

func (*Controller) GetProbe2

func (controller *Controller) GetProbe2(c *gin.Context)

GetProbe2

swagger:route GET /probe2s/{ID} probe2s getProbe2

Gets the details for a probe2.

Responses: default: genericError

200: probe2DBResponse

func (*Controller) GetProbe2s

func (controller *Controller) GetProbe2s(c *gin.Context)

GetProbe2s

swagger:route GET /probe2s probe2s getProbe2s

Get all probe2s

Responses: default: genericError

200: probe2DBResponse

func (*Controller) PostProbe2

func (controller *Controller) PostProbe2(c *gin.Context)

PostProbe2

swagger:route POST /probe2s probe2s postProbe2

Creates a probe2

Consumes:
- application/json

Produces:
- application/json

Responses:
  200: nodeDBResponse

func (*Controller) UpdateProbe2

func (controller *Controller) UpdateProbe2(c *gin.Context)

UpdateProbe2

swagger:route PATCH /probe2s/{ID} probe2s updateProbe2

Update a probe2

Responses: default: genericError

200: probe2DBResponse

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 Probe2ID

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

An Probe2ID parameter model.

This is used for operations that want the ID of an order in the path swagger:parameters getProbe2 updateProbe2 deleteProbe2

type Probe2Input

type Probe2Input struct {
	// The Probe2 to submit or modify
	// in: body
	Probe2 *orm.Probe2API
}

Probe2Input is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postProbe2 updateProbe2

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