cmd

package
v0.0.0-...-51b80db Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePipeline

func CreatePipeline() *command.Command

func DeletePipeline

func DeletePipeline() *command.Command

func Execute

func Execute() error

func GetSinglePipeline

func GetSinglePipeline() *command.Command

func NewCmdCommits

func NewCmdCommits() *command.Command

func NewCmdConfig

func NewCmdConfig() *command.Command

func NewCmdConfigGetToken

func NewCmdConfigGetToken() *command.Command

func NewCmdConfigGetUser

func NewCmdConfigGetUser() *command.Command

func NewCmdGetBranches

func NewCmdGetBranches() *command.Command

func NewCmdGetProject

func NewCmdGetProject() *command.Command

func NewCmdPipeline

func NewCmdPipeline() *command.Command

func NewCmdPipelines

func NewCmdPipelines() *command.Command

func NewCmdProject

func NewCmdProject() *command.Command

func NewCmdProjects

func NewCmdProjects() *command.Command

func NewCmdVersion

func NewCmdVersion() *command.Command

func NewDockerConfig

func NewDockerConfig() *command.Command

func NewDockerImage

func NewDockerImage() *command.Command

func NewDockerImages

func NewDockerImages() *command.Command

Types

type Branch

type Branch struct {
	Commit             gitlab.Commit `json:"commit"`
	Name               string        `json:"name"`
	Protected          bool          `json:"protected"`
	Merged             bool          `json:"merged"`
	Default            bool          `json:"default"`
	CanPush            bool          `json:"can_push"`
	DevelopersCanPush  bool          `json:"developers_can_push"`
	DevelopersCanMerge bool          `json:"developers_can_merge"`
	WebURL             string        `json:"web_url"`
}

type Commit

type Commit struct {
	ID             string                 `json:"id"`
	ShortID        string                 `json:"short_id"`
	Title          string                 `json:"title"`
	AuthorName     string                 `json:"author_name"`
	AuthorEmail    string                 `json:"author_email"`
	AuthoredDate   *time.Time             `json:"authored_date"`
	CommitterName  string                 `json:"committer_name"`
	CommitterEmail string                 `json:"committer_email"`
	CommittedDate  *time.Time             `json:"committed_date"`
	CreatedAt      *time.Time             `json:"created_at"`
	Message        string                 `json:"message"`
	ParentIDs      []string               `json:"parent_ids"`
	Stats          gitlab.CommitStats     `json:"stats"`
	Status         gitlab.BuildStateValue `json:"status"`
	LastPipeline   *PipelineInfo          `json:"last_pipeline"`
	ProjectID      int                    `json:"project_id"`
	Trailers       map[string]string      `json:"trailers"`
	WebURL         string                 `json:"web_url"`
}

type Pipeline

type Pipeline struct {
	ID          int        `json:"id"`
	ProjectID   int        `json:"project_id"`
	Status      string     `json:"status"`
	Source      string     `json:"source"`
	Ref         string     `json:"ref"`
	Tag         bool       `json:"tag"`
	YamlErrors  string     `json:"yaml_errors"`
	CommittedAt *time.Time `json:"committed_at"`
	Duration    int        `json:"duration"`
	Coverage    string     `json:"coverage"`
	WebURL      string     `json:"web_url"`
	UpdatedAt   *time.Time `json:"updated-at"`
	StartedAt   *time.Time `json:"started-at"`
	CreatedAt   *time.Time `json:"created-at"`
	FinishedAt  *time.Time `json:"finished-at"`
}

type PipelineInfo

type PipelineInfo struct {
	ID        int        `json:"id"`
	ProjectID int        `json:"project_id"`
	Status    string     `json:"status"`
	Source    string     `json:"source"`
	Ref       string     `json:"ref"`
	WebURL    string     `json:"web_url"`
	UpdatedAt *time.Time `json:"updated-at"`
	CreatedAt *time.Time `json:"created-at"`
}

type Project

type Project struct {
	ID            int          `json:"id"`
	Name          string       `json:"name"`
	Description   string       `json:"description"`
	AvatarURL     string       `json:"avatar_url"`
	SSHURLToRepo  string       `json:"ssh_url_to_repo"`
	HTTPURLToRepo string       `json:"http_url_to_repo"`
	WebURL        string       `json:"web_url"`
	DefaultBranch string       `json:"default_branch"`
	Owner         *gitlab.User `json:"owner"`
}

Jump to

Keyboard shortcuts

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