Documentation ¶
Index ¶
- Variables
- func CreateRequest(METHOD string, URL string) *http.Request
- func GetBaseURL() string
- func GetEndpoint(Kwargs map[string]interface{}) string
- func HandleRequest(METHOD string, Kwargs map[string]interface{}) ([]byte, error)
- func Init(traceHandle io.Writer, infoHandle io.Writer, warningHandle io.Writer, ...)
- func ListBuilds(job_name string) (res [][]string)
- func ListJobs() (res [][]string)
- func PrepareUrl(url string) string
- func TableBuilds(jobs [][]string)
- func TableJobs(jobs [][]string)
- func YAMLBuild(build BuildResponse)
- func YAMLJob(job JobResponse)
- func YAMLNode(node Computer)
- func YAMLNodes(nodes NodesResponse)
- type AssignedLabels
- type BuildL
- type BuildListResponse
- type BuildResponse
- type Computer
- type Executors
- type HudsonNodeMonitorsClockMonitor
- type HudsonNodeMonitorsDiskSpaceMonitor
- type HudsonNodeMonitorsResponseTimeMonitor
- type HudsonNodeMonitorsSwapSpaceMonitor
- type HudsonNodeMonitorsTemporarySpaceMonitor
- type JenkinsClient
- type JobL
- type JobListResponse
- type JobRawResponse
- type JobResponse
- type Kwargs
- type LoadStatistics
- type MonitorData
- type NodesResponse
- type YAMLConfig
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetBaseURL ¶
func GetBaseURL() string
func GetEndpoint ¶
func HandleRequest ¶
func ListBuilds ¶
func PrepareUrl ¶
func TableBuilds ¶
func TableBuilds(jobs [][]string)
func YAMLBuild ¶
func YAMLBuild(build BuildResponse)
func YAMLJob ¶
func YAMLJob(job JobResponse)
func YAMLNodes ¶ added in v1.3.6
func YAMLNodes(nodes NodesResponse)
Types ¶
type AssignedLabels ¶ added in v1.3.6
type AssignedLabels struct {
Name string `yaml:"name"`
}
type BuildListResponse ¶
type BuildListResponse struct {
Builds []BuildL `yaml:"builds"`
}
type BuildResponse ¶
type BuildResponse struct { ID string `yaml:"id"` Number int `yaml:"number"` Timestamp int64 `yaml:"timestamp"` Result string `yaml:"result"` URL string `yaml:"url"` EstimatedDuration int `yaml:"estimatedDuration"` Duration int `yaml:"duration"` Description interface{} `yaml:"description"` FullDisplayName string `yaml:"fullDisplayName"` Building bool `yaml:"building"` DisplayName string `yaml:"displayName"` Executor interface{} `yaml:"executor"` KeepLog bool `yaml:"keepLog"` QueueID int `yaml:"queueId"` }
func GetBuild ¶
func GetBuild(job_name string, build_name string) (obj BuildResponse)
type Computer ¶ added in v1.3.6
type Computer struct { Class string `yaml:"_class"` Actions []interface{} `yaml:"actions"` AssignedLabels []AssignedLabels `yaml:"assignedLabels"` Description string `yaml:"description"` DisplayName string `yaml:"displayName"` Executors []Executors `yaml:"executors"` Icon string `yaml:"icon"` IconClassName string `yaml:"iconClassName"` Idle bool `yaml:"idle"` JnlpAgent bool `yaml:"jnlpAgent"` LaunchSupported bool `yaml:"launchSupported"` LoadStatistics LoadStatistics `yaml:"loadStatistics"` ManualLaunchAllowed bool `yaml:"manualLaunchAllowed"` MonitorData MonitorData `yaml:"monitorData"` NumExecutors int `yaml:"numExecutors"` Offline bool `yaml:"offline"` OfflineCause interface{} `yaml:"offlineCause"` OfflineCauseReason string `yaml:"offlineCauseReason"` OneOffExecutors []interface{} `yaml:"oneOffExecutors"` TemporarilyOffline bool `yaml:"temporarilyOffline"` }
type HudsonNodeMonitorsClockMonitor ¶ added in v1.3.6
type HudsonNodeMonitorsDiskSpaceMonitor ¶ added in v1.3.6
type HudsonNodeMonitorsResponseTimeMonitor ¶ added in v1.3.6
type HudsonNodeMonitorsSwapSpaceMonitor ¶ added in v1.3.6
type HudsonNodeMonitorsTemporarySpaceMonitor ¶ added in v1.3.6
type JenkinsClient ¶
type JenkinsClient struct { Name string `yaml:"name"` URL string `yaml:"url"` Username string `yaml:"username"` Token string `yaml:"token"` }
func GetClient ¶
func GetClient() JenkinsClient
type JobListResponse ¶
type JobListResponse struct {
Jobs []JobL `yaml:"jobs"`
}
type JobRawResponse ¶
type JobRawResponse struct { Class string `yaml:"_class"` Description string `yaml:"description"` FullName string `yaml:"fullName"` Name string `yaml:"name"` URL string `yaml:"url"` Buildable bool `yaml:"buildable"` Builds []struct { Class string `yaml:"_class"` Number int `yaml:"number"` URL string `yaml:"url"` } `yaml:"builds"` Color string `yaml:"color"` HealthReport []struct { Description string `yaml:"description"` Score int `yaml:"score"` } `yaml:"healthReport"` InQueue bool `yaml:"inQueue"` NextBuildNumber int `yaml:"nextBuildNumber"` ConcurrentBuild bool `yaml:"concurrentBuild"` ResumeBlocked bool `yaml:"resumeBlocked"` }
type JobResponse ¶
type JobResponse struct { FullName string `yaml:"fullName"` Name string `yaml:"name"` Description string `yaml:"description"` URL string `yaml:"url"` Buildable bool `yaml:"buildable"` Color string `yaml:"color"` Builds int `yaml:"builds"` LastHealthReport struct { Description string `yaml:"description"` Score int `yaml:"score"` } `yaml:"healthReport"` InQueue bool `yaml:"inQueue"` NextBuildNumber int `yaml:"nextBuildNumber"` ConcurrentBuild bool `yaml:"concurrentBuild"` ResumeBlocked bool `yaml:"resumeBlocked"` }
func GetJob ¶
func GetJob(job_name string) (out_obj JobResponse)
type LoadStatistics ¶ added in v1.3.6
type LoadStatistics struct {
Class string `yaml:"_class"`
}
type MonitorData ¶ added in v1.3.6
type MonitorData struct { HudsonNodeMonitorsSwapSpaceMonitor HudsonNodeMonitorsSwapSpaceMonitor `yaml:"hudson.node_monitors.SwapSpaceMonitor"` HudsonNodeMonitorsTemporarySpaceMonitor HudsonNodeMonitorsTemporarySpaceMonitor `yaml:"hudson.node_monitors.TemporarySpaceMonitor"` HudsonNodeMonitorsDiskSpaceMonitor HudsonNodeMonitorsDiskSpaceMonitor `yaml:"hudson.node_monitors.DiskSpaceMonitor"` HudsonNodeMonitorsArchitectureMonitor string `yaml:"hudson.node_monitors.ArchitectureMonitor"` HudsonNodeMonitorsResponseTimeMonitor HudsonNodeMonitorsResponseTimeMonitor `yaml:"hudson.node_monitors.ResponseTimeMonitor"` HudsonNodeMonitorsClockMonitor HudsonNodeMonitorsClockMonitor `yaml:"hudson.node_monitors.ClockMonitor"` }
type NodesResponse ¶ added in v1.3.6
type NodesResponse struct { BusyExecutors int `yaml:"busyExecutors"` Computer []Computer `yaml:"computer"` DisplayName string `yaml:"displayName"` TotalExecutors int `yaml:"totalExecutors"` }
func ListNodes ¶ added in v1.3.6
func ListNodes() (obj NodesResponse)
type YAMLConfig ¶
type YAMLConfig struct { Contexts []JenkinsClient // contains filtered or unexported fields }
func (YAMLConfig) GetCurrent ¶
func (config YAMLConfig) GetCurrent() JenkinsClient
Source Files ¶
Click to show internal directories.
Click to hide internal directories.