Documentation
¶
Index ¶
- type Actions
- type ApiBuildResponse
- type ApiResponse
- type AssignedLabels
- type ChangeSet
- type FolderInput
- type JenkinsBuild
- type JenkinsConnection
- type JenkinsJob
- type JenkinsJobProps
- type JenkinsResponse
- type Job
- type LastBuiltRevision
- type OverallLoad
- type PrimaryView
- type Revision
- type TestConnectionRequest
- type UnlabeledLoad
- type Views
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actions ¶
type Actions struct {
Class string `json:"_class,omitempty"`
LastBuiltRevision LastBuiltRevision `json:"lastBuiltRevision,omitempty"`
MercurialRevisionNumber string `json:"mercurialRevisionNumber"`
}
type ApiBuildResponse ¶
type ApiBuildResponse struct {
Class string `json:"_class"`
Number int64 `json:"number"`
Result string `json:"result"`
Actions []Actions `json:"actions"`
Duration float64 `json:"duration"`
Timestamp int64 `json:"timestamp"`
DisplayName string `json:"displayName"`
EstimatedDuration float64 `json:"estimatedDuration"`
ChangeSet ChangeSet `json:"changeSet"`
}
type ApiResponse ¶
type ApiResponse struct {
URL string `json:"url"`
Jobs []Job `json:"jobs"`
Mode string `json:"mode"`
Views []Views `json:"views"`
Class string `json:"_class"`
NodeName string `json:"nodeName"`
UseCrumbs bool `json:"useCrumbs"`
Description interface{} `json:"description"`
OverallLoad OverallLoad `json:"overallLoad"`
PrimaryView PrimaryView `json:"primaryView"`
UseSecurity bool `json:"useSecurity"`
NumExecutors int `json:"numExecutors"`
QuietingDown bool `json:"quietingDown"`
UnlabeledLoad UnlabeledLoad `json:"unlabeledLoad"`
AssignedLabels []AssignedLabels `json:"assignedLabels"`
SlaveAgentPort int `json:"slaveAgentPort"`
NodeDescription string `json:"nodeDescription"`
}
type AssignedLabels ¶
type AssignedLabels struct {
Name string `json:"name"`
}
type FolderInput ¶ added in v0.12.0
type FolderInput struct {
*helper.ListBaseNode
Path string
}
func NewFolderInput ¶ added in v0.12.0
func NewFolderInput(path string) *FolderInput
func (*FolderInput) Data ¶ added in v0.13.0
func (f *FolderInput) Data() interface{}
type JenkinsBuild ¶
type JenkinsBuild struct {
common.NoPKModel
// collected fields
ConnectionId uint64 `gorm:"primaryKey"`
JobName string `gorm:"primaryKey;type:varchar(255)"`
Duration float64 // build time
DisplayName string `gorm:"type:varchar(255)"` // "#7"
EstimatedDuration float64 // EstimatedDuration
Number int64 `gorm:"primaryKey"`
Result string // Result
Timestamp int64 // start time
StartTime time.Time // convered by timestamp
CommitSha string `gorm:"type:varchar(255)"`
}
JenkinsBuild db entity for jenkins build
func (JenkinsBuild) TableName ¶
func (JenkinsBuild) TableName() string
type JenkinsConnection ¶
type JenkinsConnection struct {
helper.RestConnection `mapstructure:",squash"`
helper.BasicAuth `mapstructure:",squash"`
}
This object conforms to what the frontend currently sends.
func (JenkinsConnection) TableName ¶ added in v0.12.0
func (JenkinsConnection) TableName() string
type JenkinsJob ¶
type JenkinsJob struct {
JenkinsJobProps
common.NoPKModel
}
JenkinsJob db entity for jenkins job
func (JenkinsJob) TableName ¶
func (JenkinsJob) TableName() string
type JenkinsJobProps ¶
type JenkinsJobProps struct {
// collected fields
ConnectionId uint64 `gorm:"primaryKey"`
Name string `gorm:"primaryKey;type:varchar(255)"`
Path string `gorm:"primaryKey;type:varchar(511)"`
Class string `gorm:"type:varchar(255)"`
Color string `gorm:"type:varchar(255)"`
Base string `gorm:"type:varchar(255)"`
}
JenkinsJobProps current used jenkins job props
type JenkinsResponse ¶
type JenkinsResponse struct {
ID int `json:"id"`
Name string `json:"name"`
JenkinsConnection
}
type LastBuiltRevision ¶
type LastBuiltRevision struct {
SHA1 string `json:"SHA1"`
}
type OverallLoad ¶
type OverallLoad struct {
}
type PrimaryView ¶
type TestConnectionRequest ¶
type UnlabeledLoad ¶
type UnlabeledLoad struct {
Class string `json:"_class"`
}
Click to show internal directories.
Click to hide internal directories.