Documentation ¶
Index ¶
- Constants
- type BuildRequest
- type Client
- func (f *Client) AddJobToView(string, gojenkins.Job) error
- func (f *Client) BaseURL() string
- func (f *Client) Build(job gojenkins.Job, values url.Values) error
- func (f *Client) CreateCredential(string, string, string) error
- func (f *Client) CreateFolderJobWithXML(jobItemXml string, folder string, jobName string) error
- func (f *Client) CreateJob(gojenkins.JobItem, string) error
- func (f *Client) CreateJobWithXML(jobItemXml string, jobName string) error
- func (f *Client) CreateView(gojenkins.ListView) error
- func (f *Client) DeleteJob(gojenkins.Job) error
- func (f *Client) GetArtifact(gojenkins.Build, gojenkins.Artifact) ([]byte, error)
- func (f *Client) GetBuild(gojenkins.Job, int) (gojenkins.Build, error)
- func (f *Client) GetBuildConsoleOutput(gojenkins.Build) ([]byte, error)
- func (f *Client) GetBuildURL(gojenkins.Job, int) string
- func (f *Client) GetComputer(string) (gojenkins.Computer, error)
- func (f *Client) GetComputerObject() (gojenkins.ComputerObject, error)
- func (f *Client) GetComputers() ([]gojenkins.Computer, error)
- func (f *Client) GetCredential(string) (*gojenkins.Credentials, error)
- func (f *Client) GetJob(name string) (gojenkins.Job, error)
- func (f *Client) GetJobByPath(paths ...string) (gojenkins.Job, error)
- func (f *Client) GetJobConfig(string) (gojenkins.JobItem, error)
- func (f *Client) GetJobURLPath(path string) string
- func (f *Client) GetJobs() ([]gojenkins.Job, error)
- func (f *Client) GetLastBuild(gojenkins.Job) (gojenkins.Build, error)
- func (f *Client) GetLogFromURL(string, int64, *gojenkins.LogData) error
- func (f *Client) GetMultiBranchJob(string, string, string) (gojenkins.Job, error)
- func (f *Client) GetOrganizationScanResult(int, gojenkins.Job) (string, error)
- func (f *Client) GetQueue() (gojenkins.Queue, error)
- func (f *Client) IsErrNotFound(err error) bool
- func (f *Client) NewLogPoller(string, io.Writer) *gojenkins.LogPoller
- func (f *Client) Post(string, url.Values, interface{}) (err error)
- func (f *Client) QuietDown() error
- func (f *Client) Reload() error
- func (f *Client) RemoveJob(string) error
- func (f *Client) Restart() error
- func (f *Client) SafeRestart() error
- func (f *Client) SetBuildDescription(gojenkins.Build, string) error
- func (f *Client) SetHTTPClient(httpClient *http.Client)
- func (f *Client) StopBuild(gojenkins.Job, int) error
- func (f *Client) TailLog(string, io.Writer, time.Duration, time.Duration) error
- func (f *Client) TailLogFunc(string, io.Writer) gojenkins.ConditionFunc
- func (f *Client) UpdateJob(gojenkins.JobItem, string) error
- type FolderXMLJob
- type XMLJob
Constants ¶
View Source
const NotFoundMessage = "not found"
NotFoundMessage error message if something is not found
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildRequest ¶
BuildRequest for recording build requests
type Client ¶
type Client struct { Jobs []gojenkins.Job BaseURLValue string Operations []string XMLJobs []XMLJob FolderXMLJobs []FolderXMLJob BuildRequests []BuildRequest // contains filtered or unexported fields }
FakeClient a fake Jenkins client for easier testing
func (*Client) CreateFolderJobWithXML ¶
func (*Client) CreateJobWithXML ¶
func (*Client) GetArtifact ¶
func (*Client) GetBuildConsoleOutput ¶
func (*Client) GetComputerObject ¶
func (f *Client) GetComputerObject() (gojenkins.ComputerObject, error)
func (*Client) GetCredential ¶
func (f *Client) GetCredential(string) (*gojenkins.Credentials, error)
func (*Client) GetJobURLPath ¶
func (*Client) GetLogFromURL ¶
func (*Client) GetMultiBranchJob ¶
func (*Client) GetOrganizationScanResult ¶
func (*Client) IsErrNotFound ¶
func (*Client) SafeRestart ¶
func (*Client) SetBuildDescription ¶
func (*Client) SetHTTPClient ¶
func (*Client) TailLogFunc ¶
type FolderXMLJob ¶
FolderXMLJob represents a fake created folder XML Job
func (*FolderXMLJob) FullJobPath ¶
func (j *FolderXMLJob) FullJobPath() string
FullJobPath returns the full job path
Click to show internal directories.
Click to hide internal directories.