network

package
v0.0.0-...-5447720 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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

type RemoteJobStateResponse struct {
	StatusCode  int
	RemoteState string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL