Documentation ¶
Index ¶
- type Client
- func (c *Client) CheckReadiness(ctx context.Context) error
- func (c *Client) Configure(cfg ClientConfig) error
- func (c *Client) GetJobLog(ctx context.Context, projectID int64, jobID int64) (*bytes.Reader, error)
- func (c *Client) GetPipeline(ctx context.Context, projectID int64, pipelineID int64) (*typespb.Pipeline, error)
- func (c *Client) GetPipelineHierarchy(ctx context.Context, projectID int64, pipelineID int64, ...) <-chan GetPipelineHierarchyResult
- func (c *Client) GetPipelineHierarchyTestReports(ctx context.Context, ph *models.PipelineHierarchy) (*PipelineTestReportData, error)
- func (c *Client) GetPipelineTestReport(ctx context.Context, projectID int64, pipelineID int64) (*PipelineTestReportData, error)
- func (c *Client) GetPipelineTestReportSummary(ctx context.Context, projectID int64, pipelineID int64) (*PipelineTestReportSummary, error)
- func (c *Client) ListJobSections(ctx context.Context, projectID int64, jobID int64) <-chan ListJobSectionsResult
- func (c *Client) ListPipelineBridges(ctx context.Context, projectID int64, pipelineID int64) <-chan ListPipelineBridgesResult
- func (c *Client) ListPipelineJobs(ctx context.Context, projectID int64, pipelineID int64) <-chan ListPipelineJobsResult
- func (c *Client) ListProjectPipelines(ctx context.Context, projectID int64, opt ListProjectPipelinesOptions) <-chan ListProjectPipelinesResult
- type ClientConfig
- type GetPipelineHierarchyOptions
- type GetPipelineHierarchyResult
- type JobLogData
- type ListJobSectionsResult
- type ListOptions
- type ListPipelineBridgesResult
- type ListPipelineJobsResult
- type ListProjectPipelinesOptions
- type ListProjectPipelinesResult
- type MetricData
- type PipelineTestReportData
- type PipelineTestReportSummary
- type PipelineTestReportSummaryTestSuite
- type PipelineTestReportSummaryTotal
- type SectionData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewGitLabClient ¶
func NewGitLabClient(cfg ClientConfig) (*Client, error)
func (*Client) Configure ¶
func (c *Client) Configure(cfg ClientConfig) error
func (*Client) GetPipeline ¶
func (*Client) GetPipelineHierarchy ¶
func (c *Client) GetPipelineHierarchy(ctx context.Context, projectID int64, pipelineID int64, opt *GetPipelineHierarchyOptions) <-chan GetPipelineHierarchyResult
func (*Client) GetPipelineHierarchyTestReports ¶
func (c *Client) GetPipelineHierarchyTestReports(ctx context.Context, ph *models.PipelineHierarchy) (*PipelineTestReportData, error)
func (*Client) GetPipelineTestReport ¶
func (*Client) GetPipelineTestReportSummary ¶ added in v0.5.1
func (*Client) ListJobSections ¶
func (*Client) ListPipelineBridges ¶
func (*Client) ListPipelineJobs ¶
func (*Client) ListProjectPipelines ¶
func (c *Client) ListProjectPipelines(ctx context.Context, projectID int64, opt ListProjectPipelinesOptions) <-chan ListProjectPipelinesResult
type ClientConfig ¶
type GetPipelineHierarchyResult ¶
type GetPipelineHierarchyResult struct { PipelineHierarchy *models.PipelineHierarchy Metrics []*typespb.Metric Error error }
type JobLogData ¶
type JobLogData struct { Sections []SectionData `json:"sections"` Metrics []*MetricData `json:"metrics"` }
func ParseJobLog ¶
func ParseJobLog(trace *bytes.Reader) (*JobLogData, error)
type ListJobSectionsResult ¶
type ListOptions ¶
type ListOptions = _gitlab.ListOptions
type ListPipelineJobsResult ¶
type ListProjectPipelinesOptions ¶
type ListProjectPipelinesOptions = _gitlab.ListProjectPipelinesOptions
type ListProjectPipelinesResult ¶
type ListProjectPipelinesResult struct { Pipeline *typespb.PipelineInfo Error error }
type MetricData ¶
type PipelineTestReportData ¶
type PipelineTestReportSummary ¶ added in v0.5.1
type PipelineTestReportSummary struct { Total *PipelineTestReportSummaryTotal `json:"total"` TestSuites []*PipelineTestReportSummaryTestSuite `json:"test_suites"` }
type PipelineTestReportSummaryTestSuite ¶ added in v0.5.1
type PipelineTestReportSummaryTestSuite struct { Name string `json:"name"` TotalTime float64 `json:"total_time"` TotalCount int `json:"total_count"` SuccessCount int `json:"success_count"` FailedCount int `json:"failed_count"` SkippedCount int `json:"skipped_count"` ErrorCount int `json:"error_count"` BuildIDs []int `json:"build_ids"` SuiteError string `json:"suite_error"` }
type PipelineTestReportSummaryTotal ¶ added in v0.5.1
type SectionData ¶
Click to show internal directories.
Click to hide internal directories.