Documentation ¶
Index ¶
- type CiAPIClient
- func (n *CiAPIClient) PatchTrace(config common.RunnerConfig, jobCredentials *common.JobCredentials, ...) (int, common.UpdateState)
- func (n *CiAPIClient) ProcessJob(config common.RunnerConfig, jobCredentials *common.JobCredentials) (common.JobTrace, error)
- func (n *CiAPIClient) RequestJob(config common.RunnerConfig) (*common.JobResponse, bool)
- func (n *CiAPIClient) RequestJobResult(config common.RunnerConfig, request common.JobResultRequest)
- func (n *CiAPIClient) RequestPlugin(config common.RunnerConfig, pipeline string, stageIndex int, jobIndex int, ...) (*common.PluginResponse, bool)
- func (n *CiAPIClient) UpdateJob(config common.RunnerConfig, jobCredentials *common.JobCredentials, ...) common.UpdateState
- type RemoteJobStateResponse
- type TracePatchResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CiAPIClient ¶
type CiAPIClient struct {
// contains filtered or unexported fields
}
func NewCiAPIClient ¶
func NewCiAPIClient() *CiAPIClient
func (*CiAPIClient) PatchTrace ¶
func (n *CiAPIClient) PatchTrace(config common.RunnerConfig, jobCredentials *common.JobCredentials, content []byte, startOffset int) (int, common.UpdateState)
func (*CiAPIClient) ProcessJob ¶
func (n *CiAPIClient) ProcessJob(config common.RunnerConfig, jobCredentials *common.JobCredentials) (common.JobTrace, error)
func (*CiAPIClient) RequestJob ¶
func (n *CiAPIClient) RequestJob(config common.RunnerConfig) (*common.JobResponse, bool)
func (*CiAPIClient) RequestJobResult ¶
func (n *CiAPIClient) RequestJobResult(config common.RunnerConfig, request common.JobResultRequest)
func (*CiAPIClient) RequestPlugin ¶
func (n *CiAPIClient) RequestPlugin(config common.RunnerConfig, pipeline string, stageIndex int, jobIndex int, pluginIndex int, token string) (*common.PluginResponse, bool)
func (*CiAPIClient) UpdateJob ¶
func (n *CiAPIClient) UpdateJob(config common.RunnerConfig, jobCredentials *common.JobCredentials, jobInfo common.UpdateJobInfo) common.UpdateState
type RemoteJobStateResponse ¶
func NewRemoteJobStateResponse ¶
func NewRemoteJobStateResponse(response *http.Response) *RemoteJobStateResponse
func (*RemoteJobStateResponse) IsAborted ¶
func (r *RemoteJobStateResponse) IsAborted() bool
type TracePatchResponse ¶
type TracePatchResponse struct { *RemoteJobStateResponse RemoteRange string }
func NewTracePatchResponse ¶
func NewTracePatchResponse(response *http.Response) *TracePatchResponse
func (*TracePatchResponse) NewOffset ¶
func (p *TracePatchResponse) NewOffset() int
Click to show internal directories.
Click to hide internal directories.