Documentation
¶
Index ¶
- func NewClient(baseURL, token string) (*gogitlab.Client, error)
- type GraphQLClient
- type JobRepo
- func (r *JobRepo) Cancel(ctx context.Context, projectID, jobID int) (*entity.Job, error)
- func (r *JobRepo) GetLog(ctx context.Context, projectID, jobID int) (io.ReadCloser, error)
- func (r *JobRepo) Play(ctx context.Context, projectID, jobID int) (*entity.Job, error)
- func (r *JobRepo) Retry(ctx context.Context, projectID, jobID int) (*entity.Job, error)
- type PipelineRepo
- type ProjectRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GraphQLClient ¶
type GraphQLClient struct {
// contains filtered or unexported fields
}
func NewGraphQLClient ¶
func NewGraphQLClient(baseURL, token string) *GraphQLClient
func (*GraphQLClient) LoadAllPipelines ¶
func (c *GraphQLClient) LoadAllPipelines(ctx context.Context, projectPaths []string, perProject int) ([]entity.Pipeline, error)
LoadAllPipelines fetches pipelines for all projects in a single GraphQL query.
type JobRepo ¶
type JobRepo struct {
// contains filtered or unexported fields
}
func NewJobRepo ¶
type PipelineRepo ¶
type PipelineRepo struct {
// contains filtered or unexported fields
}
func NewPipelineRepo ¶
func NewPipelineRepo(client *gogitlab.Client) *PipelineRepo
func (*PipelineRepo) LoadAllPipelines ¶
type ProjectRepo ¶
type ProjectRepo struct {
// contains filtered or unexported fields
}
func NewProjectRepo ¶
func NewProjectRepo(client *gogitlab.Client) *ProjectRepo
func (*ProjectRepo) ListPipelines ¶
Click to show internal directories.
Click to hide internal directories.