Documentation
¶
Index ¶
- func ConvertMergeRequest(mr *gitlab.MergeRequest) *typespb.MergeRequest
- 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
- func Ptr[T any](v T) *T
- 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) GetPipelineHierarchy(ctx context.Context, projectID int64, pipelineID int64, ...) <-chan GetPipelineHierarchyResult
- 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 ListGroupProjectsOptions) ([]*typespb.Project, error)
- func (c *Client) ListJobSections(ctx context.Context, projectID int64, jobID int64) <-chan ListJobSectionsResult
- func (c *Client) ListNamespaceProjects(ctx context.Context, id interface{}, opt ListNamespaceProjectsOptions) ([]*typespb.Project, error)
- 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) ListProjectMergeRequests(ctx context.Context, id int64, opt ListProjectMergeRequestsOptions) ([]*typespb.MergeRequest, error)
- func (c *Client) ListProjectPipelines(ctx context.Context, projectID int64, opt ListProjectPipelinesOptions) <-chan ListProjectPipelinesResult
- func (c *Client) ListProjects(ctx context.Context, opt ListProjectsOptions) ([]*typespb.Project, error)
- func (c *Client) ListUserProjects(ctx context.Context, uid interface{}, opt ListProjectsOptions) ([]*typespb.Project, error)
- type ClientConfig
- type GetPipelineHierarchyOptions
- type GetPipelineHierarchyResult
- type JobLogData
- type ListGroupProjectsOptions
- type ListJobSectionsResult
- type ListNamespaceProjectsOptions
- type ListOptions
- type ListPipelineBridgesResult
- type ListPipelineJobsResult
- type ListProjectMergeRequestsOptions
- type ListProjectPipelinesOptions
- type ListProjectPipelinesResult
- type ListProjectsOptions
- 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
- type VisibilityValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertMergeRequest ¶ added in v0.8.0
func ConvertMergeRequest(mr *gitlab.MergeRequest) *typespb.MergeRequest
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) GetPipelineHierarchy ¶
func (c *Client) GetPipelineHierarchy(ctx context.Context, projectID int64, pipelineID int64, opt *GetPipelineHierarchyOptions) <-chan GetPipelineHierarchyResult
func (*Client) GetPipelineTestReport ¶
func (*Client) GetPipelineTestReportSummary ¶ added in v0.5.1
func (*Client) GetProject ¶
func (*Client) ListGroupProjects ¶ added in v0.8.0
func (*Client) ListJobSections ¶
func (*Client) ListNamespaceProjects ¶ added in v0.8.0
func (*Client) ListPipelineBridges ¶
func (*Client) ListPipelineJobs ¶
func (*Client) ListProjectMergeRequests ¶ added in v0.8.0
func (c *Client) ListProjectMergeRequests(ctx context.Context, id int64, opt ListProjectMergeRequestsOptions) ([]*typespb.MergeRequest, error)
func (*Client) ListProjectPipelines ¶
func (c *Client) ListProjectPipelines(ctx context.Context, projectID int64, opt ListProjectPipelinesOptions) <-chan ListProjectPipelinesResult
func (*Client) ListProjects ¶ added in v0.8.0
func (*Client) ListUserProjects ¶ added in v0.8.0
type ClientConfig ¶
type GetPipelineHierarchyResult ¶
type GetPipelineHierarchyResult struct { PipelineHierarchy *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 ListGroupProjectsOptions ¶ added in v0.8.0
type ListGroupProjectsOptions = gitlab.ListGroupProjectsOptions
type ListJobSectionsResult ¶
type ListNamespaceProjectsOptions ¶ added in v0.8.0
type ListNamespaceProjectsOptions struct { gitlab.ListProjectsOptions Kind string IncludeSubgroups bool }
type ListOptions ¶
type ListOptions = gitlab.ListOptions
type ListPipelineJobsResult ¶
type ListProjectMergeRequestsOptions ¶ added in v0.8.0
type ListProjectMergeRequestsOptions struct { gitlab.ListProjectMergeRequestsOptions Paginate bool }
type ListProjectPipelinesOptions ¶
type ListProjectPipelinesOptions = gitlab.ListProjectPipelinesOptions
type ListProjectPipelinesResult ¶
type ListProjectPipelinesResult struct { Pipeline *typespb.PipelineInfo Error error }
type ListProjectsOptions ¶ added in v0.8.0
type ListProjectsOptions = gitlab.ListProjectsOptions
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 ¶
type VisibilityValue ¶ added in v0.8.0
type VisibilityValue = gitlab.VisibilityValue
Click to show internal directories.
Click to hide internal directories.