Documentation ¶
Index ¶
- type Cause
- type CauseAction
- type CenterSite
- type JenkinsCore
- type JenkinsCrumb
- type Job
- type JobBuild
- type JobClient
- func (q *JobClient) Build(jobName string) (err error)
- func (q *JobClient) GetHistory(name string) (builds []JobBuild, err error)
- func (q *JobClient) GetJob(name string) (job *Job, err error)
- func (q *JobClient) Log(jobName string, history int, start int64) (jobLog JobLog, err error)
- func (q *JobClient) Search(keyword string) (status *SearchResult, err error)
- type JobLog
- type JobQueue
- type Plugin
- type PluginList
- type PluginManager
- type QueueClient
- type QueueItem
- type SearchResult
- type SearchResultItem
- type UpdateCenter
- type UpdateCenterJob
- type UpdateCenterManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CauseAction ¶
type CauseAction struct {
Causes []Cause
}
type CenterSite ¶
type CenterSite struct { ConnectionCheckURL string `json:"connectionCheckUrl"` HasUpdates bool ID string `json:"id"` URL string `json:"url"` }
CenterSite represents the site of update center
type JenkinsCore ¶
type JenkinsCore struct { JenkinsCrumb URL string UserName string Token string Proxy string ProxyAuth string }
func (*JenkinsCore) AuthHandle ¶
func (j *JenkinsCore) AuthHandle(request *http.Request)
func (*JenkinsCore) CrumbHandle ¶
func (j *JenkinsCore) CrumbHandle(request *http.Request) error
func (*JenkinsCore) GetClient ¶ added in v0.0.10
func (j *JenkinsCore) GetClient() (client *http.Client)
func (*JenkinsCore) GetCrumb ¶
func (j *JenkinsCore) GetCrumb() (*JenkinsCrumb, error)
type JenkinsCrumb ¶
type JobClient ¶ added in v0.0.10
type JobClient struct {
JenkinsCore
}
func (*JobClient) GetHistory ¶ added in v0.0.10
type Plugin ¶
type Plugin struct { Active bool ShortName string LongName string Version string URL string HasUpdate bool Enable bool Downgradable bool Pinned bool RequiredCoreVesion string MinimumJavaVersion string SupportDynamicLoad string Deleted bool Bundled bool BackVersion string }
Plugin represent the plugin from Jenkins
type PluginList ¶
type PluginList struct {
Plugins []Plugin
}
PluginList represent a list of plugins
type PluginManager ¶
type PluginManager struct {
JenkinsCore
}
func (*PluginManager) CheckUpdate ¶
func (p *PluginManager) CheckUpdate(handle func(*http.Response))
CheckUpdate fetch the lastest plugins from update center site
func (*PluginManager) GetPlugins ¶
func (p *PluginManager) GetPlugins() (pluginList *PluginList, err error)
func (*PluginManager) InstallPlugin ¶
func (p *PluginManager) InstallPlugin(names []string) (err error)
InstallPlugin install a plugin by name
func (*PluginManager) UninstallPlugin ¶
func (p *PluginManager) UninstallPlugin(name string) (err error)
UninstallPlugin uninstall a plugin by name
type QueueClient ¶
type QueueClient struct {
JenkinsCore
}
func (*QueueClient) Get ¶
func (q *QueueClient) Get() (status *JobQueue, err error)
type SearchResult ¶ added in v0.0.10
type SearchResult struct {
Suggestions []SearchResultItem
}
type SearchResultItem ¶ added in v0.0.10
type SearchResultItem struct {
Name string
}
type UpdateCenter ¶
type UpdateCenter struct { Availables []Plugin Jobs []UpdateCenterJob RestartRequiredForCompletion bool Sites []CenterSite }
UpdateCenter represents the update center of Jenkins
type UpdateCenterJob ¶
UpdateCenterJob represents the job for updateCenter which execute a task
type UpdateCenterManager ¶
type UpdateCenterManager struct {
JenkinsCore
}
UpdateCenterManager manages the UpdateCenter
func (*UpdateCenterManager) Status ¶
func (u *UpdateCenterManager) Status() (status *UpdateCenter, err error)
Click to show internal directories.
Click to hide internal directories.