view

package
v1.49.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdView

func NewCmdView(f *cmdutils.Factory) *cobra.Command

Types

type ViewJob added in v1.32.0

type ViewJob struct {
	ID           int        `json:"id"`
	Name         string     `json:"name"`
	StartedAt    *time.Time `json:"started_at"`
	FinishedAt   *time.Time `json:"finished_at"`
	ErasedAt     *time.Time `json:"erased_at"`
	Duration     float64    `json:"duration"`
	Stage        string     `json:"stage"`
	Status       string     `json:"status"`
	AllowFailure bool       `json:"allow_failure"`

	Kind ViewJobKind

	OriginalJob    *gitlab.Job
	OriginalBridge *gitlab.Bridge
}

func ViewJobFromBridge added in v1.32.0

func ViewJobFromBridge(bridge *gitlab.Bridge) *ViewJob

func ViewJobFromJob added in v1.32.0

func ViewJobFromJob(job *gitlab.Job) *ViewJob

type ViewJobKind added in v1.32.0

type ViewJobKind int64
const (
	Job ViewJobKind = iota
	Bridge
)

type ViewOpts

type ViewOpts struct {
	RefName string

	ProjectID string
	Commit    *gitlab.Commit
	CommitSHA string
	ApiClient *gitlab.Client
	Output    io.Writer

	OpenInBrowser bool
	PipelineUser  *gitlab.BasicUser
}

Jump to

Keyboard shortcuts

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