pipeline

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExitCodeOK        int = iota //0
	ExitCodeError     int = iota //1
	ExitCodeFileError int = iota //2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BrowseOption

type BrowseOption struct {
	Browse bool `short:"b" long:"browse" description:"Browse issue."`
}

type ListOption

type ListOption struct {
	Num     int    `short:"n" long:"num" value-name:"<num>" default:"20" default-mask:"20" description:"Limit the number of pipeline to output."`
	Sort    string `` /* 134-byte string literal not displayed */
	Scope   string `short:"c" long:"scope" description:"The scope of pipelines, one of: running, pending, finished, branches, tags"`
	States  string `short:"t" long:"states" description:" The status of pipelines, one of: running, pending, success, failed, canceled, skipped"`
	OrderBy string `short:"o" long:"orderby" default:"id" default-mask:"id" description:"Order pipelines by id, status, ref, or user_id"`
}

type MethodFactory

type MethodFactory interface {
	CreateMethod(opt Option, pInfo *gitutil.GitLabProjectInfo, iid int, factory lab.APIClientFactory) internal.Method
}

type MockMethodFactory

type MockMethodFactory struct{}

func (*MockMethodFactory) CreateMethod

func (c *MockMethodFactory) CreateMethod(opt Option, pInfo *gitutil.GitLabProjectInfo, iid int, factory lab.APIClientFactory) internal.Method

type Option

type Option struct {
	ProjectProfileOption *internal.ProjectProfileOption `group:"Project, Profile Options"`
	ListOption           *ListOption                    `group:"List Options"`
	BrowseOption         *BrowseOption                  `group:"Brwose Options"`
}

type PipelineCommand

type PipelineCommand struct {
	UI              ui.Ui
	RemoteCollecter gitutil.Collecter
	MethodFactory   MethodFactory
}

func (*PipelineCommand) Help

func (c *PipelineCommand) Help() string

func (*PipelineCommand) Run

func (c *PipelineCommand) Run(args []string) int

func (*PipelineCommand) Synopsis

func (c *PipelineCommand) Synopsis() string

type PipelineMethodFacotry

type PipelineMethodFacotry struct{}

func (*PipelineMethodFacotry) CreateMethod

func (c *PipelineMethodFacotry) CreateMethod(opt Option, pInfo *gitutil.GitLabProjectInfo, iid int, factory lab.APIClientFactory) internal.Method

Jump to

Keyboard shortcuts

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