Documentation
¶
Index ¶
- func ConvertTestReport(report *gitlab.PipelineTestReport, summary *PipelineTestReportSummary, ...) (types.TestReport, []types.TestSuite, []types.TestCase, error)
- type Client
- func (c *Client) Client() *gitlab.Client
- func (c *Client) GetJobLogData(ctx context.Context, projectId int64, jobId int64) (JobLogData, error)
- func (c *Client) GetPipelineTestReport(ctx context.Context, projectID int64, pipelineID int64) (*gitlab.PipelineTestReport, *PipelineTestReportSummary, error)
- func (c *Client) GetPipelineTestReportSummary(ctx context.Context, projectID int64, pipelineID int64) (*PipelineTestReportSummary, error)
- func (c *Client) GetProject(ctx context.Context, pid interface{}) (*gitlab.Project, error)
- func (c *Client) ListGroupProjects(ctx context.Context, gid interface{}, opt gitlab.ListGroupProjectsOptions, ...) error
- func (c *Client) ListNamespaceProjects(ctx context.Context, nid interface{}, opt ListNamespaceProjectsOptions, ...) error
- func (c *Client) ListUserProjects(ctx context.Context, uid interface{}, opt gitlab.ListProjectsOptions, ...) error
- type JobLogData
- type ListNamespaceProjectsOptions
- type MetricData
- type PipelineTestReportData
- type PipelineTestReportSummary
- type PipelineTestReportSummaryTestSuite
- type PipelineTestReportSummaryTotal
- type Project
- type SectionData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertTestReport ¶
func ConvertTestReport(report *gitlab.PipelineTestReport, summary *PipelineTestReportSummary, pipeline types.Pipeline) (types.TestReport, []types.TestSuite, []types.TestCase, error)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetJobLogData ¶
func (*Client) GetPipelineTestReport ¶
func (c *Client) GetPipelineTestReport(ctx context.Context, projectID int64, pipelineID int64) (*gitlab.PipelineTestReport, *PipelineTestReportSummary, error)
func (*Client) GetPipelineTestReportSummary ¶
func (*Client) GetProject ¶
func (*Client) ListGroupProjects ¶
func (*Client) ListNamespaceProjects ¶
type JobLogData ¶
type JobLogData struct { Sections []SectionData `json:"sections"` Metrics []MetricData `json:"metrics"` }
func ParseJobLog ¶
func ParseJobLog(trace *bytes.Reader) (JobLogData, error)
type ListNamespaceProjectsOptions ¶
type ListNamespaceProjectsOptions struct { Kind string // both gitlab.ListOptions Visibility *string // only groups IncludeSubgroups *bool }
type MetricData ¶
type PipelineTestReportData ¶
type PipelineTestReportSummary ¶
type PipelineTestReportSummary struct { Total *PipelineTestReportSummaryTotal `json:"total"` TestSuites []*PipelineTestReportSummaryTestSuite `json:"test_suites"` }
type PipelineTestReportSummaryTestSuite ¶
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 SectionData ¶
Click to show internal directories.
Click to hide internal directories.