Documentation
¶
Index ¶
- func FetchProjectPipelines(ctx context.Context, glab *_gitlab.Client, pid int64, ...) ([]*_gitlab.PipelineInfo, error)
- func ListProjectMergeRequests(ctx context.Context, glab *_gitlab.Client, pid int64, ...) error
- func ListProjectPipelines(ctx context.Context, glab *_gitlab.Client, pid int64, ...) error
- func NewBridgeSpan(traceID []byte, bridge *typespb.Bridge) *tracepb.ResourceSpans
- func NewJobSpan(traceID []byte, job *typespb.Job) *tracepb.ResourceSpans
- func NewPipelineHierarchyTrace(traceID []byte, parentID []byte, ph *PipelineHierarchy) *typespb.Trace
- func NewPipelineSpan(traceID []byte, parentID []byte, pipeline *typespb.Pipeline) *tracepb.ResourceSpans
- func NewSectionSpan(traceID []byte, section *typespb.Section) *tracepb.ResourceSpans
- type Client
- func (c *Client) CheckReadiness(ctx context.Context) error
- func (c *Client) Client() *gitlab.Client
- 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) GetPipelineBridges(ctx context.Context, projectID int64, pipelineID int64) ([]*typespb.Bridge, error)
- func (c *Client) GetPipelineHierarchy(ctx context.Context, projectID int64, pipelineID int64, ...) (*GetPipelineHierarchyResult, error)
- func (c *Client) GetPipelineJobs(ctx context.Context, projectID int64, pipelineID int64) ([]*typespb.Job, 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) GetProject(ctx context.Context, id int64) (*typespb.Project, error)
- func (c *Client) ListGroupProjects(ctx context.Context, gid interface{}, opt gitlab.ListGroupProjectsOptions, ...) error
- func (c *Client) ListNamespaceProjects(ctx context.Context, id interface{}, opt ListNamespaceProjectsOptions, ...) error
- func (c *Client) ListUserProjects(ctx context.Context, uid interface{}, opt gitlab.ListProjectsOptions, ...) error
- type ClientConfig
- type GetPipelineHierarchyOptions
- type GetPipelineHierarchyResult
- type JobLogData
- type ListNamespaceProjectsOptions
- type MetricData
- type PipelineHierarchy
- func (ph *PipelineHierarchy) GetAllBridges() []*typespb.Bridge
- func (ph *PipelineHierarchy) GetAllJobs() []*typespb.Job
- func (ph *PipelineHierarchy) GetAllPipelines() []*typespb.Pipeline
- func (ph *PipelineHierarchy) GetAllSections() []*typespb.Section
- func (ph *PipelineHierarchy) GetAllTraces() []*typespb.Trace
- func (ph *PipelineHierarchy) GetTrace() *typespb.Trace
- type PipelineTestReportData
- type PipelineTestReportSummary
- type PipelineTestReportSummaryTestSuite
- type PipelineTestReportSummaryTotal
- type SectionData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchProjectPipelines ¶ added in v0.9.0
func FetchProjectPipelines(ctx context.Context, glab *_gitlab.Client, pid int64, opt _gitlab.ListProjectPipelinesOptions) ([]*_gitlab.PipelineInfo, error)
func ListProjectMergeRequests ¶ added in v0.9.0
func ListProjectPipelines ¶ added in v0.9.0
func NewBridgeSpan ¶ added in v0.8.0
func NewBridgeSpan(traceID []byte, bridge *typespb.Bridge) *tracepb.ResourceSpans
func NewJobSpan ¶ added in v0.8.0
func NewJobSpan(traceID []byte, job *typespb.Job) *tracepb.ResourceSpans
func NewPipelineHierarchyTrace ¶ added in v0.8.0
func NewPipelineHierarchyTrace(traceID []byte, parentID []byte, ph *PipelineHierarchy) *typespb.Trace
func NewPipelineSpan ¶ added in v0.8.0
func NewSectionSpan ¶ added in v0.8.0
func NewSectionSpan(traceID []byte, section *typespb.Section) *tracepb.ResourceSpans
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) GetPipelineBridges ¶ added in v0.9.0
func (*Client) GetPipelineHierarchy ¶
func (c *Client) GetPipelineHierarchy(ctx context.Context, projectID int64, pipelineID int64, opt *GetPipelineHierarchyOptions) (*GetPipelineHierarchyResult, error)
func (*Client) GetPipelineJobs ¶ added in v0.9.0
func (*Client) GetPipelineTestReport ¶
func (*Client) GetPipelineTestReportSummary ¶ added in v0.5.1
func (*Client) GetProject ¶
func (*Client) ListGroupProjects ¶ added in v0.8.0
func (*Client) ListNamespaceProjects ¶ added in v0.8.0
type ClientConfig ¶
type GetPipelineHierarchyResult ¶
type GetPipelineHierarchyResult struct { PipelineHierarchy *PipelineHierarchy Metrics []*typespb.Metric }
type JobLogData ¶
type JobLogData struct { Sections []SectionData `json:"sections"` Metrics []*MetricData `json:"metrics"` }
func ParseJobLog ¶
func ParseJobLog(trace *bytes.Reader) (*JobLogData, error)
type ListNamespaceProjectsOptions ¶ added in v0.8.0
type ListNamespaceProjectsOptions struct { Kind string // both gitlab.ListOptions Visibility *gitlab.VisibilityValue // only groups IncludeSubgroups *bool }
type MetricData ¶
type PipelineHierarchy ¶ added in v0.8.0
type PipelineHierarchy struct { Pipeline *typespb.Pipeline `json:"pipeline"` Jobs []*typespb.Job `json:"jobs"` Sections []*typespb.Section `json:"sections"` Bridges []*typespb.Bridge `json:"bridges"` DownstreamPipelines []*PipelineHierarchy `json:"downstream_pipelines"` }
func (*PipelineHierarchy) GetAllBridges ¶ added in v0.8.0
func (ph *PipelineHierarchy) GetAllBridges() []*typespb.Bridge
func (*PipelineHierarchy) GetAllJobs ¶ added in v0.8.0
func (ph *PipelineHierarchy) GetAllJobs() []*typespb.Job
func (*PipelineHierarchy) GetAllPipelines ¶ added in v0.8.0
func (ph *PipelineHierarchy) GetAllPipelines() []*typespb.Pipeline
func (*PipelineHierarchy) GetAllSections ¶ added in v0.8.0
func (ph *PipelineHierarchy) GetAllSections() []*typespb.Section
func (*PipelineHierarchy) GetAllTraces ¶ added in v0.8.0
func (ph *PipelineHierarchy) GetAllTraces() []*typespb.Trace
func (*PipelineHierarchy) GetTrace ¶ added in v0.8.0
func (ph *PipelineHierarchy) GetTrace() *typespb.Trace
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.