Documentation
¶
Overview ¶
Package artifacts implements the business logic for fetching and downloading CircleCI job artifacts, at either the job or pipeline level.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface {
GetPipelineWorkflows(ctx context.Context, pipelineID string) ([]apiclient.PipelineWorkflowSummary, error)
GetWorkflowJobs(ctx context.Context, workflowID string) ([]apiclient.WorkflowJob, error)
GetJobArtifacts(ctx context.Context, projectSlug string, jobNumber int64) ([]apiclient.Artifact, error)
DownloadArtifact(ctx context.Context, artifactURL string, dst io.Writer) error
}
Client is the subset of apiclient.Client methods we need.
type Entry ¶
type Entry struct {
JobName string `json:"job_name"`
JobNumber int64 `json:"job_number"`
Path string `json:"path"`
URL string `json:"url"`
NodeIndex int `json:"node_index"`
}
Entry is a single artifact with the job context it came from.
Click to show internal directories.
Click to hide internal directories.