Documentation
¶
Overview ¶
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
Index ¶
- func Register(r *gin.Engine)
- type ButtonID
- type ButtonInput
- type ButtonToggleID
- type ButtonToggleInput
- type Controller
- func (controller *Controller) AddBackRepo(backRepo *button_orm.BackRepoStruct, stackPath string)
- func (controller *Controller) DeleteButton(c *gin.Context)
- func (controller *Controller) DeleteButtonToggle(c *gin.Context)
- func (controller *Controller) DeleteGroup(c *gin.Context)
- func (controller *Controller) DeleteGroupToogle(c *gin.Context)
- func (controller *Controller) DeleteLayout(c *gin.Context)
- func (controller *Controller) GetButton(c *gin.Context)
- func (controller *Controller) GetButtonToggle(c *gin.Context)
- func (controller *Controller) GetButtonToggles(c *gin.Context)
- func (controller *Controller) GetButtons(c *gin.Context)
- func (controller *Controller) GetGroup(c *gin.Context)
- func (controller *Controller) GetGroupToogle(c *gin.Context)
- func (controller *Controller) GetGroupToogles(c *gin.Context)
- func (controller *Controller) GetGroups(c *gin.Context)
- func (controller *Controller) GetLastCommitFromBackNb(c *gin.Context)
- func (controller *Controller) GetLastPushFromFrontNb(c *gin.Context)
- func (controller *Controller) GetLayout(c *gin.Context)
- func (controller *Controller) GetLayouts(c *gin.Context)
- func (controller *Controller) PostButton(c *gin.Context)
- func (controller *Controller) PostButtonToggle(c *gin.Context)
- func (controller *Controller) PostGroup(c *gin.Context)
- func (controller *Controller) PostGroupToogle(c *gin.Context)
- func (controller *Controller) PostLayout(c *gin.Context)
- func (controller *Controller) UpdateButton(c *gin.Context)
- func (controller *Controller) UpdateButtonToggle(c *gin.Context)
- func (controller *Controller) UpdateGroup(c *gin.Context)
- func (controller *Controller) UpdateGroupToogle(c *gin.Context)
- func (controller *Controller) UpdateLayout(c *gin.Context)
- type GenericError
- type GroupID
- type GroupInput
- type GroupToogleID
- type GroupToogleInput
- type LayoutID
- type LayoutInput
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ButtonID ¶
type ButtonID struct {
// The ID of the order
//
// in: path
// required: true
ID int64
}
An ButtonID parameter model.
This is used for operations that want the ID of an order in the path swagger:parameters getButton updateButton deleteButton
type ButtonInput ¶
ButtonInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postButton updateButton
type ButtonToggleID ¶
type ButtonToggleID struct {
// The ID of the order
//
// in: path
// required: true
ID int64
}
An ButtonToggleID parameter model.
This is used for operations that want the ID of an order in the path swagger:parameters getButtonToggle updateButtonToggle deleteButtonToggle
type ButtonToggleInput ¶
type ButtonToggleInput struct {
// The ButtonToggle to submit or modify
// in: body
ButtonToggle *orm.ButtonToggleAPI
}
ButtonToggleInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postButtonToggle updateButtonToggle
type Controller ¶
type Controller struct {
// Map_BackRepos is the map to the backRepo instance according to the stack instance path
Map_BackRepos map[string]*button_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 *button_orm.BackRepoStruct, stackPath string)
func (*Controller) DeleteButton ¶
func (controller *Controller) DeleteButton(c *gin.Context)
DeleteButton
swagger:route DELETE /buttons/{ID} buttons deleteButton
Delete a button ¶
default: genericError
200: buttonDBResponse
func (*Controller) DeleteButtonToggle ¶
func (controller *Controller) DeleteButtonToggle(c *gin.Context)
DeleteButtonToggle
swagger:route DELETE /buttontoggles/{ID} buttontoggles deleteButtonToggle
Delete a buttontoggle ¶
default: genericError
200: buttontoggleDBResponse
func (*Controller) DeleteGroup ¶
func (controller *Controller) DeleteGroup(c *gin.Context)
DeleteGroup
swagger:route DELETE /groups/{ID} groups deleteGroup
Delete a group ¶
default: genericError
200: groupDBResponse
func (*Controller) DeleteGroupToogle ¶
func (controller *Controller) DeleteGroupToogle(c *gin.Context)
DeleteGroupToogle
swagger:route DELETE /grouptoogles/{ID} grouptoogles deleteGroupToogle
Delete a grouptoogle ¶
default: genericError
200: grouptoogleDBResponse
func (*Controller) DeleteLayout ¶
func (controller *Controller) DeleteLayout(c *gin.Context)
DeleteLayout
swagger:route DELETE /layouts/{ID} layouts deleteLayout
Delete a layout ¶
default: genericError
200: layoutDBResponse
func (*Controller) GetButton ¶
func (controller *Controller) GetButton(c *gin.Context)
GetButton
swagger:route GET /buttons/{ID} buttons getButton
Gets the details for a button.
Responses: default: genericError
200: buttonDBResponse
func (*Controller) GetButtonToggle ¶
func (controller *Controller) GetButtonToggle(c *gin.Context)
GetButtonToggle
swagger:route GET /buttontoggles/{ID} buttontoggles getButtonToggle
Gets the details for a buttontoggle.
Responses: default: genericError
200: buttontoggleDBResponse
func (*Controller) GetButtonToggles ¶
func (controller *Controller) GetButtonToggles(c *gin.Context)
GetButtonToggles
swagger:route GET /buttontoggles buttontoggles getButtonToggles
Get all buttontoggles ¶
Responses: default: genericError
200: buttontoggleDBResponse
func (*Controller) GetButtons ¶
func (controller *Controller) GetButtons(c *gin.Context)
GetButtons
swagger:route GET /buttons buttons getButtons
Get all buttons ¶
Responses: default: genericError
200: buttonDBResponse
func (*Controller) GetGroup ¶
func (controller *Controller) GetGroup(c *gin.Context)
GetGroup
swagger:route GET /groups/{ID} groups getGroup
Gets the details for a group.
Responses: default: genericError
200: groupDBResponse
func (*Controller) GetGroupToogle ¶
func (controller *Controller) GetGroupToogle(c *gin.Context)
GetGroupToogle
swagger:route GET /grouptoogles/{ID} grouptoogles getGroupToogle
Gets the details for a grouptoogle.
Responses: default: genericError
200: grouptoogleDBResponse
func (*Controller) GetGroupToogles ¶
func (controller *Controller) GetGroupToogles(c *gin.Context)
GetGroupToogles
swagger:route GET /grouptoogles grouptoogles getGroupToogles
Get all grouptoogles ¶
Responses: default: genericError
200: grouptoogleDBResponse
func (*Controller) GetGroups ¶
func (controller *Controller) GetGroups(c *gin.Context)
GetGroups
swagger:route GET /groups groups getGroups
Get all groups ¶
Responses: default: genericError
200: groupDBResponse
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) GetLayout ¶
func (controller *Controller) GetLayout(c *gin.Context)
GetLayout
swagger:route GET /layouts/{ID} layouts getLayout
Gets the details for a layout.
Responses: default: genericError
200: layoutDBResponse
func (*Controller) GetLayouts ¶
func (controller *Controller) GetLayouts(c *gin.Context)
GetLayouts
swagger:route GET /layouts layouts getLayouts
Get all layouts ¶
Responses: default: genericError
200: layoutDBResponse
func (*Controller) PostButton ¶
func (controller *Controller) PostButton(c *gin.Context)
PostButton
swagger:route POST /buttons buttons postButton
Creates a button
Consumes: - application/json Produces: - application/json Responses: 200: nodeDBResponse
func (*Controller) PostButtonToggle ¶
func (controller *Controller) PostButtonToggle(c *gin.Context)
PostButtonToggle
swagger:route POST /buttontoggles buttontoggles postButtonToggle
Creates a buttontoggle
Consumes: - application/json Produces: - application/json Responses: 200: nodeDBResponse
func (*Controller) PostGroup ¶
func (controller *Controller) PostGroup(c *gin.Context)
PostGroup
swagger:route POST /groups groups postGroup
Creates a group
Consumes: - application/json Produces: - application/json Responses: 200: nodeDBResponse
func (*Controller) PostGroupToogle ¶
func (controller *Controller) PostGroupToogle(c *gin.Context)
PostGroupToogle
swagger:route POST /grouptoogles grouptoogles postGroupToogle
Creates a grouptoogle
Consumes: - application/json Produces: - application/json Responses: 200: nodeDBResponse
func (*Controller) PostLayout ¶
func (controller *Controller) PostLayout(c *gin.Context)
PostLayout
swagger:route POST /layouts layouts postLayout
Creates a layout
Consumes: - application/json Produces: - application/json Responses: 200: nodeDBResponse
func (*Controller) UpdateButton ¶
func (controller *Controller) UpdateButton(c *gin.Context)
UpdateButton
swagger:route PATCH /buttons/{ID} buttons updateButton
Update a button ¶
Responses: default: genericError
200: buttonDBResponse
func (*Controller) UpdateButtonToggle ¶
func (controller *Controller) UpdateButtonToggle(c *gin.Context)
UpdateButtonToggle
swagger:route PATCH /buttontoggles/{ID} buttontoggles updateButtonToggle
Update a buttontoggle ¶
Responses: default: genericError
200: buttontoggleDBResponse
func (*Controller) UpdateGroup ¶
func (controller *Controller) UpdateGroup(c *gin.Context)
UpdateGroup
swagger:route PATCH /groups/{ID} groups updateGroup
Update a group ¶
Responses: default: genericError
200: groupDBResponse
func (*Controller) UpdateGroupToogle ¶
func (controller *Controller) UpdateGroupToogle(c *gin.Context)
UpdateGroupToogle
swagger:route PATCH /grouptoogles/{ID} grouptoogles updateGroupToogle
Update a grouptoogle ¶
Responses: default: genericError
200: grouptoogleDBResponse
func (*Controller) UpdateLayout ¶
func (controller *Controller) UpdateLayout(c *gin.Context)
UpdateLayout
swagger:route PATCH /layouts/{ID} layouts updateLayout
Update a layout ¶
Responses: default: genericError
200: layoutDBResponse
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 GroupID ¶
type GroupID struct {
// The ID of the order
//
// in: path
// required: true
ID int64
}
An GroupID parameter model.
This is used for operations that want the ID of an order in the path swagger:parameters getGroup updateGroup deleteGroup
type GroupInput ¶
GroupInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postGroup updateGroup
type GroupToogleID ¶
type GroupToogleID struct {
// The ID of the order
//
// in: path
// required: true
ID int64
}
An GroupToogleID parameter model.
This is used for operations that want the ID of an order in the path swagger:parameters getGroupToogle updateGroupToogle deleteGroupToogle
type GroupToogleInput ¶
type GroupToogleInput struct {
// The GroupToogle to submit or modify
// in: body
GroupToogle *orm.GroupToogleAPI
}
GroupToogleInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postGroupToogle updateGroupToogle
type LayoutID ¶
type LayoutID struct {
// The ID of the order
//
// in: path
// required: true
ID int64
}
An LayoutID parameter model.
This is used for operations that want the ID of an order in the path swagger:parameters getLayout updateLayout deleteLayout
type LayoutInput ¶
LayoutInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postLayout updateLayout
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