Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Branch ¶
type Branch struct { BranchID uint `json:"branchId"` ProjectID uint `json:"projectId"` Name string `json:"name"` Default bool `json:"default"` TokenID uint `json:"tokenId"` }
Branch specifies fields when adding a new branch to a project.
type BranchModule ¶
BranchModule holds deprecated endpoint handlers for /branch
func (BranchModule) GetBranchHandler ¶
func (m BranchModule) GetBranchHandler(c *gin.Context)
GetBranchHandler godoc @deprecated @id oldGetBranch @summary Get a branch by ID @description This endpoint has not been implemented! @description Deprecated since v4.3.0. Planned for removal in v6.0.0. @description Added in v0.2.0. @tags branch @param branchId path uint true "branch ID" minimum(0) @success 501 "Not Implemented" @router /branch/{branchId} [get]
func (BranchModule) Register ¶
func (m BranchModule) Register(g *gin.RouterGroup)
Register adds all deprecated endpoints to a given Gin router group.
type BuildModule ¶
BuildModule holds deprecated endpoint handlers for /build
func (BuildModule) Register ¶
func (m BuildModule) Register(g *gin.RouterGroup)
Register adds all deprecated endpoints to a given Gin router group.
type PaginatedBuilds ¶
type PaginatedBuilds struct { Builds []response.Build `json:"builds"` TotalCount int64 `json:"totalCount"` }
PaginatedBuilds is a list of builds as well as an explicit total count field.
type ProjectModule ¶
ProjectModule holds deprecated endpoint handlers for /project
func (ProjectModule) Register ¶
func (m ProjectModule) Register(g *gin.RouterGroup)
Register adds all deprecated endpoints to a given Gin router group.
type ProjectSearch ¶
type ProjectSearch struct { Name string `json:"name"` GroupName string `json:"groupName"` Description string `json:"description"` AvatarURL string `json:"avatarUrl"` TokenID uint `json:"tokenId" minimum:"0" extensions:"x-nullable"` ProviderID uint `json:"providerId" minimum:"0" extensions:"x-nullable"` BuildDefinition string `json:"buildDefinition"` GitURL string `json:"gitUrl"` }
ProjectSearch holds values used in verbatim searches for projects using the deprecated endpoint
POST /projects/search
type ProjectUpdate ¶
type ProjectUpdate struct { ProjectID uint `json:"projectId"` Name string `json:"name" validate:"required" binding:"required"` GroupName string `json:"groupName"` Description string `json:"description"` AvatarURL string `json:"avatarUrl"` TokenID uint `json:"tokenId" extensions:"x-nullable"` ProviderID uint `json:"providerId" extensions:"x-nullable"` BuildDefinition string `json:"buildDefinition"` GitURL string `json:"gitUrl"` }
ProjectUpdate specifies fields when creating a new token using the deprecated endpoint
PUT /project
type ProviderModule ¶
ProviderModule holds deprecated endpoint handlers for /provider
func (ProviderModule) Register ¶
func (m ProviderModule) Register(g *gin.RouterGroup)
Register adds all deprecated endpoints to a given Gin router group.
type ProviderUpdate ¶
type ProviderUpdate struct { ProviderID uint `json:"providerId"` Name request.ProviderName `json:"name" enums:"azuredevops,gitlab,github" validate:"required" binding:"required"` URL string `json:"url" validate:"required" binding:"required"` TokenID uint `json:"tokenId"` }
ProviderUpdate specifies fields when updating a provider in the deprecated endpoint
PUT /provider
type Token ¶
type Token struct { Token string `json:"token" format:"password" validate:"required"` UserName string `json:"userName" validate:"required"` ProviderID uint `json:"providerId"` }
Token specifies fields when creating a new token using the deprecated endpoint
PUT /token
type TokenModule ¶
TokenModule holds deprecated endpoint handlers for /token
func (TokenModule) Register ¶
func (m TokenModule) Register(g *gin.RouterGroup)
Register adds all deprecated endpoints to a given Gin router group.