ciutils

package
v1.64.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayMultiplePipelines

func DisplayMultiplePipelines(s *iostreams.IOStreams, p []*gitlab.PipelineInfo, projectID string) string

func DisplaySchedules

func DisplaySchedules(i *iostreams.IOStreams, s []*gitlab.PipelineSchedule, projectID string) string

func GetDefaultBranch

func GetDefaultBranch(f cmdutils.Factory) string

func GetJobId

func GetJobId(inputs *JobInputs, opts *JobOptions) (int, error)

func IDsFromArgs

func IDsFromArgs(args []string) ([]int, error)

IDsFromArgs parses list of IDs from space or comma-separated values

func RunTraceSha

func RunTraceSha(ctx context.Context, apiClient *gitlab.Client, w io.Writer, pid any, sha, name string) error

func TraceJob

func TraceJob(inputs *JobInputs, opts *JobOptions) error

Types

type JobInputs

type JobInputs struct {
	JobName            string
	Branch             string
	PipelineId         int
	SelectionPrompt    string
	SelectionPredicate func(s *gitlab.Job) bool
}

type JobOptions

type JobOptions struct {
	ApiClient *gitlab.Client
	Repo      glrepo.Interface
	IO        *iostreams.IOStreams
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL