Documentation
¶
Index ¶
- func ConvertDeployment(deployment *GitLabDeployment) types.Deployment
- 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) GetProjectDeployments(ctx context.Context, projectId int64, opt GetProjectDeploymentsOptions) ([]*GitLabDeployment, 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 GetProjectDeploymentsOptions
- type GitLabDeployment
- type GitLabEnvironment
- 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 ConvertDeployment ¶ added in v0.14.0
func ConvertDeployment(deployment *GitLabDeployment) types.Deployment
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) GetProjectDeployments ¶ added in v0.14.0
func (c *Client) GetProjectDeployments(ctx context.Context, projectId int64, opt GetProjectDeploymentsOptions) ([]*GitLabDeployment, error)
func (*Client) ListGroupProjects ¶
func (*Client) ListNamespaceProjects ¶
type GetProjectDeploymentsOptions ¶ added in v0.14.0
type GitLabDeployment ¶ added in v0.14.0
type GitLabDeployment struct {
ID int `json:"id"`
IID int `json:"iid"`
Ref string `json:"ref"`
SHA string `json:"sha"`
Status string `json:"status"`
CreatedAt *time.Time `json:"created_at"`
UpdatedAt *time.Time `json:"updated_at"`
User *struct {
ID int `json:"id"`
Name string `json:"name"`
Username string `json:"username"`
} `json:"user"`
Environment *struct {
ID int `json:"id"`
Name string `json:"name"`
} `json:"environment"`
Deployable struct {
ID int `json:"id"`
Name string `json:"name"`
Pipeline struct {
ID int `json:"id"`
IID int `json:"iid"`
ProjectID int `json:"project_id"`
} `json:"pipeline"`
WebURL string `json:"web_url"`
} `json:"deployable"`
// contains filtered or unexported fields
}
type GitLabEnvironment ¶ added in v0.14.0
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.