pipeline

package
v0.0.0-...-b63aa1a Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	//
	//任务id, 服务端自动生成
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"`
	//
	//git信息, 创建的时候传入,不能修改
	GitMeta *GitMeta `protobuf:"bytes,2,opt,name=git_meta,json=gitMeta,proto3" json:"git_meta" form:"git_meta"`
	//
	//触发者,创建的时候传入,不能修改
	Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender" form:"sender"`
	//
	//制品包信息
	Artifact *Build_Artifact `protobuf:"bytes,4,opt,name=artifact,proto3" json:"artifact" form:"artifact"`
	//
	//创建时间,创建的时候传入,不能修改
	Created int32 `protobuf:"varint,5,opt,name=created,proto3" json:"created" form:"created"`
	//
	//workflow定义
	YamlString string `protobuf:"bytes,6,opt,name=yaml_string,json=yamlString,proto3" json:"yaml_string" form:"yaml_string"`
	//
	//执行状态
	Status *BuildStatus `protobuf:"bytes,7,opt,name=status,proto3" json:"status" form:"status"`
	//
	//编号
	Number string `protobuf:"bytes,8,opt,name=number,proto3" json:"number" form:"number"`
	//
	//事件列表
	Events               []string `protobuf:"bytes,9,rep,name=events,proto3" json:"events" form:"events"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

流水线任务

func (*Build) Descriptor

func (*Build) Descriptor() ([]byte, []int)

func (*Build) GetArtifact

func (m *Build) GetArtifact() *Build_Artifact

func (*Build) GetCreated

func (m *Build) GetCreated() int32

func (*Build) GetEvents

func (m *Build) GetEvents() []string

func (*Build) GetGitMeta

func (m *Build) GetGitMeta() *GitMeta

func (*Build) GetId

func (m *Build) GetId() string

func (*Build) GetNumber

func (m *Build) GetNumber() string

func (*Build) GetSender

func (m *Build) GetSender() string

func (*Build) GetStatus

func (m *Build) GetStatus() *BuildStatus

func (*Build) GetYamlString

func (m *Build) GetYamlString() string

func (*Build) ProtoMessage

func (*Build) ProtoMessage()

func (*Build) Reset

func (m *Build) Reset()

func (*Build) String

func (m *Build) String() string

func (*Build) Validate

func (this *Build) Validate() error

func (*Build) XXX_DiscardUnknown

func (m *Build) XXX_DiscardUnknown()

func (*Build) XXX_Marshal

func (m *Build) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Build) XXX_Merge

func (m *Build) XXX_Merge(src proto.Message)

func (*Build) XXX_Size

func (m *Build) XXX_Size() int

func (*Build) XXX_Unmarshal

func (m *Build) XXX_Unmarshal(b []byte) error

type BuildStatus

type BuildStatus struct {
	//
	//构建状态
	State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state" form:"state"`
	//
	//运行的节点
	NodeName string `protobuf:"bytes,2,opt,name=nodeName,proto3" json:"nodeName" form:"nodeName"`
	//
	//开始时间
	Started int32 `protobuf:"varint,3,opt,name=started,proto3" json:"started" form:"started"`
	//
	//更新时间
	Updated int32 `protobuf:"varint,4,opt,name=updated,proto3" json:"updated" form:"updated"`
	//
	//完成时间
	Finished             int32    `protobuf:"varint,5,opt,name=finished,proto3" json:"finished" form:"finished"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

构建状态

func (*BuildStatus) Descriptor

func (*BuildStatus) Descriptor() ([]byte, []int)

func (*BuildStatus) GetFinished

func (m *BuildStatus) GetFinished() int32

func (*BuildStatus) GetNodeName

func (m *BuildStatus) GetNodeName() string

func (*BuildStatus) GetStarted

func (m *BuildStatus) GetStarted() int32

func (*BuildStatus) GetState

func (m *BuildStatus) GetState() string

func (*BuildStatus) GetUpdated

func (m *BuildStatus) GetUpdated() int32

func (*BuildStatus) ProtoMessage

func (*BuildStatus) ProtoMessage()

func (*BuildStatus) Reset

func (m *BuildStatus) Reset()

func (*BuildStatus) String

func (m *BuildStatus) String() string

func (*BuildStatus) Validate

func (this *BuildStatus) Validate() error

func (*BuildStatus) XXX_DiscardUnknown

func (m *BuildStatus) XXX_DiscardUnknown()

func (*BuildStatus) XXX_Marshal

func (m *BuildStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuildStatus) XXX_Merge

func (m *BuildStatus) XXX_Merge(src proto.Message)

func (*BuildStatus) XXX_Size

func (m *BuildStatus) XXX_Size() int

func (*BuildStatus) XXX_Unmarshal

func (m *BuildStatus) XXX_Unmarshal(b []byte) error

type Build_Artifact

type Build_Artifact struct {
	//
	//制品包名称
	PackageName string `protobuf:"bytes,1,opt,name=packageName,proto3" json:"packageName" form:"packageName"`
	//
	//版本号
	VersionName string `protobuf:"bytes,2,opt,name=versionName,proto3" json:"versionName" form:"versionName"`
	//
	//制品包上传时间
	Ctime string `protobuf:"bytes,3,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
	//
	//程序包Id
	PackageId string `protobuf:"bytes,4,opt,name=packageId,proto3" json:"packageId" form:"packageId"`
	//
	//版本Id
	VersionId            string   `protobuf:"bytes,5,opt,name=versionId,proto3" json:"versionId" form:"versionId"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Build_Artifact) Descriptor

func (*Build_Artifact) Descriptor() ([]byte, []int)

func (*Build_Artifact) GetCtime

func (m *Build_Artifact) GetCtime() string

func (*Build_Artifact) GetPackageId

func (m *Build_Artifact) GetPackageId() string

func (*Build_Artifact) GetPackageName

func (m *Build_Artifact) GetPackageName() string

func (*Build_Artifact) GetVersionId

func (m *Build_Artifact) GetVersionId() string

func (*Build_Artifact) GetVersionName

func (m *Build_Artifact) GetVersionName() string

func (*Build_Artifact) ProtoMessage

func (*Build_Artifact) ProtoMessage()

func (*Build_Artifact) Reset

func (m *Build_Artifact) Reset()

func (*Build_Artifact) String

func (m *Build_Artifact) String() string

func (*Build_Artifact) Validate

func (this *Build_Artifact) Validate() error

func (*Build_Artifact) XXX_DiscardUnknown

func (m *Build_Artifact) XXX_DiscardUnknown()

func (*Build_Artifact) XXX_Marshal

func (m *Build_Artifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Build_Artifact) XXX_Merge

func (m *Build_Artifact) XXX_Merge(src proto.Message)

func (*Build_Artifact) XXX_Size

func (m *Build_Artifact) XXX_Size() int

func (*Build_Artifact) XXX_Unmarshal

func (m *Build_Artifact) XXX_Unmarshal(b []byte) error

type GitMeta

type GitMeta struct {
	//
	//git事件
	Event string `protobuf:"bytes,1,opt,name=event,proto3" json:"event" form:"event"`
	//
	//前一个commit sha
	Before string `protobuf:"bytes,2,opt,name=before,proto3" json:"before" form:"before"`
	//
	//当前commit sha
	After string `protobuf:"bytes,3,opt,name=after,proto3" json:"after" form:"after"`
	//
	//提交者图像
	AuthorAvatar string `protobuf:"bytes,4,opt,name=author_avatar,json=authorAvatar,proto3" json:"author_avatar" form:"author_avatar"`
	//
	//提交者邮箱
	AuthorEmail string `protobuf:"bytes,5,opt,name=author_email,json=authorEmail,proto3" json:"author_email" form:"author_email"`
	//
	//提交者
	AuthorName string `protobuf:"bytes,6,opt,name=author_name,json=authorName,proto3" json:"author_name" form:"author_name"`
	//
	//提交信息
	Message string `protobuf:"bytes,7,opt,name=message,proto3" json:"message" form:"message"`
	//
	//引用
	Ref string `protobuf:"bytes,8,opt,name=ref,proto3" json:"ref" form:"ref"`
	//
	//源分支
	Source string `protobuf:"bytes,9,opt,name=source,proto3" json:"source" form:"source"`
	//
	//目标分支
	Target string `protobuf:"bytes,10,opt,name=target,proto3" json:"target" form:"target"`
	//
	//触发方式
	Trigger string `protobuf:"bytes,11,opt,name=trigger,proto3" json:"trigger" form:"trigger"`
	//
	//动作
	Action string `protobuf:"bytes,12,opt,name=action,proto3" json:"action" form:"action"`
	//
	//链接
	Link                 string   `protobuf:"bytes,13,opt,name=link,proto3" json:"link" form:"link"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

git信息

func (*GitMeta) Descriptor

func (*GitMeta) Descriptor() ([]byte, []int)

func (*GitMeta) GetAction

func (m *GitMeta) GetAction() string

func (*GitMeta) GetAfter

func (m *GitMeta) GetAfter() string

func (*GitMeta) GetAuthorAvatar

func (m *GitMeta) GetAuthorAvatar() string

func (*GitMeta) GetAuthorEmail

func (m *GitMeta) GetAuthorEmail() string

func (*GitMeta) GetAuthorName

func (m *GitMeta) GetAuthorName() string

func (*GitMeta) GetBefore

func (m *GitMeta) GetBefore() string

func (*GitMeta) GetEvent

func (m *GitMeta) GetEvent() string
func (m *GitMeta) GetLink() string

func (*GitMeta) GetMessage

func (m *GitMeta) GetMessage() string

func (*GitMeta) GetRef

func (m *GitMeta) GetRef() string

func (*GitMeta) GetSource

func (m *GitMeta) GetSource() string

func (*GitMeta) GetTarget

func (m *GitMeta) GetTarget() string

func (*GitMeta) GetTrigger

func (m *GitMeta) GetTrigger() string

func (*GitMeta) ProtoMessage

func (*GitMeta) ProtoMessage()

func (*GitMeta) Reset

func (m *GitMeta) Reset()

func (*GitMeta) String

func (m *GitMeta) String() string

func (*GitMeta) Validate

func (this *GitMeta) Validate() error

func (*GitMeta) XXX_DiscardUnknown

func (m *GitMeta) XXX_DiscardUnknown()

func (*GitMeta) XXX_Marshal

func (m *GitMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GitMeta) XXX_Merge

func (m *GitMeta) XXX_Merge(src proto.Message)

func (*GitMeta) XXX_Size

func (m *GitMeta) XXX_Size() int

func (*GitMeta) XXX_Unmarshal

func (m *GitMeta) XXX_Unmarshal(b []byte) error

type Pipeline

type Pipeline struct {
	//
	//流水线id,服务端自动生成
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"`
	//
	//流水线名称
	AliasName string `protobuf:"bytes,2,opt,name=alias_name,json=aliasName,proto3" json:"alias_name" form:"alias_name"`
	//
	//yaml文件内容
	WorkflowType string `protobuf:"bytes,3,opt,name=workflow_type,json=workflowType,proto3" json:"workflow_type" form:"workflow_type"`
	//
	//workflow yaml存放位置
	YamlPath string `protobuf:"bytes,4,opt,name=yaml_path,json=yamlPath,proto3" json:"yaml_path" form:"yaml_path"`
	//
	//workflow定义字符串
	YamlString string `protobuf:"bytes,5,opt,name=yaml_string,json=yamlString,proto3" json:"yaml_string" form:"yaml_string"`
	//
	//workflow定义url
	YamlUrl string `protobuf:"bytes,6,opt,name=yaml_url,json=yamlUrl,proto3" json:"yaml_url" form:"yaml_url"`
	//
	//timeout Minute
	StepTimeout int32 `protobuf:"varint,7,opt,name=step_timeout,json=stepTimeout,proto3" json:"step_timeout" form:"step_timeout"`
	//
	//流水线全局变量
	Variables []*Pipeline_Variables `protobuf:"bytes,8,rep,name=variables,proto3" json:"variables" form:"variables"`
	//
	//创建者, 服务端自动生成
	Creator string `protobuf:"bytes,9,opt,name=creator,proto3" json:"creator" form:"creator"`
	//
	//创建时间, 服务端自动生成
	Ctime string `protobuf:"bytes,10,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
	//
	//修改时间, 服务端自动生成
	Mtime                string   `protobuf:"bytes,11,opt,name=mtime,proto3" json:"mtime" form:"mtime"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

流水线

func (*Pipeline) Descriptor

func (*Pipeline) Descriptor() ([]byte, []int)

func (*Pipeline) GetAliasName

func (m *Pipeline) GetAliasName() string

func (*Pipeline) GetCreator

func (m *Pipeline) GetCreator() string

func (*Pipeline) GetCtime

func (m *Pipeline) GetCtime() string

func (*Pipeline) GetId

func (m *Pipeline) GetId() string

func (*Pipeline) GetMtime

func (m *Pipeline) GetMtime() string

func (*Pipeline) GetStepTimeout

func (m *Pipeline) GetStepTimeout() int32

func (*Pipeline) GetVariables

func (m *Pipeline) GetVariables() []*Pipeline_Variables

func (*Pipeline) GetWorkflowType

func (m *Pipeline) GetWorkflowType() string

func (*Pipeline) GetYamlPath

func (m *Pipeline) GetYamlPath() string

func (*Pipeline) GetYamlString

func (m *Pipeline) GetYamlString() string

func (*Pipeline) GetYamlUrl

func (m *Pipeline) GetYamlUrl() string

func (*Pipeline) ProtoMessage

func (*Pipeline) ProtoMessage()

func (*Pipeline) Reset

func (m *Pipeline) Reset()

func (*Pipeline) String

func (m *Pipeline) String() string

func (*Pipeline) Validate

func (this *Pipeline) Validate() error

func (*Pipeline) XXX_DiscardUnknown

func (m *Pipeline) XXX_DiscardUnknown()

func (*Pipeline) XXX_Marshal

func (m *Pipeline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pipeline) XXX_Merge

func (m *Pipeline) XXX_Merge(src proto.Message)

func (*Pipeline) XXX_Size

func (m *Pipeline) XXX_Size() int

func (*Pipeline) XXX_Unmarshal

func (m *Pipeline) XXX_Unmarshal(b []byte) error

type Pipeline_Variables

type Pipeline_Variables struct {
	//
	//name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//value
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value" form:"value"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Pipeline_Variables) Descriptor

func (*Pipeline_Variables) Descriptor() ([]byte, []int)

func (*Pipeline_Variables) GetName

func (m *Pipeline_Variables) GetName() string

func (*Pipeline_Variables) GetValue

func (m *Pipeline_Variables) GetValue() string

func (*Pipeline_Variables) ProtoMessage

func (*Pipeline_Variables) ProtoMessage()

func (*Pipeline_Variables) Reset

func (m *Pipeline_Variables) Reset()

func (*Pipeline_Variables) String

func (m *Pipeline_Variables) String() string

func (*Pipeline_Variables) Validate

func (this *Pipeline_Variables) Validate() error

func (*Pipeline_Variables) XXX_DiscardUnknown

func (m *Pipeline_Variables) XXX_DiscardUnknown()

func (*Pipeline_Variables) XXX_Marshal

func (m *Pipeline_Variables) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pipeline_Variables) XXX_Merge

func (m *Pipeline_Variables) XXX_Merge(src proto.Message)

func (*Pipeline_Variables) XXX_Size

func (m *Pipeline_Variables) XXX_Size() int

func (*Pipeline_Variables) XXX_Unmarshal

func (m *Pipeline_Variables) XXX_Unmarshal(b []byte) error

type ProgressLog

type ProgressLog struct {
	//
	//实时id,服务端自动生成
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"`
	//
	//监控指标
	Metrics string `protobuf:"bytes,2,opt,name=metrics,proto3" json:"metrics" form:"metrics"`
	//
	//日志
	Logs                 []string `protobuf:"bytes,3,rep,name=logs,proto3" json:"logs" form:"logs"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

实施日志

func (*ProgressLog) Descriptor

func (*ProgressLog) Descriptor() ([]byte, []int)

func (*ProgressLog) GetId

func (m *ProgressLog) GetId() string

func (*ProgressLog) GetLogs

func (m *ProgressLog) GetLogs() []string

func (*ProgressLog) GetMetrics

func (m *ProgressLog) GetMetrics() string

func (*ProgressLog) ProtoMessage

func (*ProgressLog) ProtoMessage()

func (*ProgressLog) Reset

func (m *ProgressLog) Reset()

func (*ProgressLog) String

func (m *ProgressLog) String() string

func (*ProgressLog) Validate

func (this *ProgressLog) Validate() error

func (*ProgressLog) XXX_DiscardUnknown

func (m *ProgressLog) XXX_DiscardUnknown()

func (*ProgressLog) XXX_Marshal

func (m *ProgressLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProgressLog) XXX_Merge

func (m *ProgressLog) XXX_Merge(src proto.Message)

func (*ProgressLog) XXX_Size

func (m *ProgressLog) XXX_Size() int

func (*ProgressLog) XXX_Unmarshal

func (m *ProgressLog) XXX_Unmarshal(b []byte) error

type Project

type Project struct {
	//
	//项目id,服务端自动生成
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"`
	//
	//项目名称, 默认同repo_name
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" form:"name"`
	//
	//是否收藏
	Favorite bool `protobuf:"varint,3,opt,name=favorite,proto3" json:"favorite" form:"favorite"`
	//
	//标签
	Tags []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags" form:"tags"`
	//
	//project变量
	Variables []*Project_Variables `protobuf:"bytes,5,rep,name=variables,proto3" json:"variables" form:"variables"`
	//
	//创建者,服务端自动生成
	Creator string `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator" form:"creator"`
	//
	//创建时间,服务端自动生成
	Ctime string `protobuf:"bytes,7,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
	//
	//更新时间,服务端自动生成
	Mtime string `protobuf:"bytes,8,opt,name=mtime,proto3" json:"mtime" form:"mtime"`
	//
	//git项目名称
	RepoName string `protobuf:"bytes,9,opt,name=repo_name,json=repoName,proto3" json:"repo_name" form:"repo_name"`
	//
	//git项目id
	RepoId int32 `protobuf:"varint,10,opt,name=repo_id,json=repoId,proto3" json:"repo_id" form:"repo_id"`
	//
	//带namespace的显示名称
	NameWithNamespace string `` /* 132-byte string literal not displayed */
	//
	//带namespace的项目路径
	PathWithNamespace string `` /* 132-byte string literal not displayed */
	//
	//git ssh 克隆地址
	GitSshUrl string `protobuf:"bytes,13,opt,name=git_ssh_url,json=gitSshUrl,proto3" json:"git_ssh_url" form:"git_ssh_url"`
	//
	//git http克隆地址
	GitHttpUrl string `protobuf:"bytes,14,opt,name=git_http_url,json=gitHttpUrl,proto3" json:"git_http_url" form:"git_http_url"`
	//
	//repo web url
	Link string `protobuf:"bytes,15,opt,name=link,proto3" json:"link" form:"link"`
	//
	//默认分支名称
	DefaultBranch        string   `protobuf:"bytes,16,opt,name=default_branch,json=defaultBranch,proto3" json:"default_branch" form:"default_branch"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

代码项目

func (*Project) Descriptor

func (*Project) Descriptor() ([]byte, []int)

func (*Project) GetCreator

func (m *Project) GetCreator() string

func (*Project) GetCtime

func (m *Project) GetCtime() string

func (*Project) GetDefaultBranch

func (m *Project) GetDefaultBranch() string

func (*Project) GetFavorite

func (m *Project) GetFavorite() bool

func (*Project) GetGitHttpUrl

func (m *Project) GetGitHttpUrl() string

func (*Project) GetGitSshUrl

func (m *Project) GetGitSshUrl() string

func (*Project) GetId

func (m *Project) GetId() string
func (m *Project) GetLink() string

func (*Project) GetMtime

func (m *Project) GetMtime() string

func (*Project) GetName

func (m *Project) GetName() string

func (*Project) GetNameWithNamespace

func (m *Project) GetNameWithNamespace() string

func (*Project) GetPathWithNamespace

func (m *Project) GetPathWithNamespace() string

func (*Project) GetRepoId

func (m *Project) GetRepoId() int32

func (*Project) GetRepoName

func (m *Project) GetRepoName() string

func (*Project) GetTags

func (m *Project) GetTags() []string

func (*Project) GetVariables

func (m *Project) GetVariables() []*Project_Variables

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) Reset

func (m *Project) Reset()

func (*Project) String

func (m *Project) String() string

func (*Project) Validate

func (this *Project) Validate() error

func (*Project) XXX_DiscardUnknown

func (m *Project) XXX_DiscardUnknown()

func (*Project) XXX_Marshal

func (m *Project) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Project) XXX_Merge

func (m *Project) XXX_Merge(src proto.Message)

func (*Project) XXX_Size

func (m *Project) XXX_Size() int

func (*Project) XXX_Unmarshal

func (m *Project) XXX_Unmarshal(b []byte) error

type Project_Variables

type Project_Variables struct {
	//
	//name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//value
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value" form:"value"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Project_Variables) Descriptor

func (*Project_Variables) Descriptor() ([]byte, []int)

func (*Project_Variables) GetName

func (m *Project_Variables) GetName() string

func (*Project_Variables) GetValue

func (m *Project_Variables) GetValue() string

func (*Project_Variables) ProtoMessage

func (*Project_Variables) ProtoMessage()

func (*Project_Variables) Reset

func (m *Project_Variables) Reset()

func (*Project_Variables) String

func (m *Project_Variables) String() string

func (*Project_Variables) Validate

func (this *Project_Variables) Validate() error

func (*Project_Variables) XXX_DiscardUnknown

func (m *Project_Variables) XXX_DiscardUnknown()

func (*Project_Variables) XXX_Marshal

func (m *Project_Variables) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Project_Variables) XXX_Merge

func (m *Project_Variables) XXX_Merge(src proto.Message)

func (*Project_Variables) XXX_Size

func (m *Project_Variables) XXX_Size() int

func (*Project_Variables) XXX_Unmarshal

func (m *Project_Variables) XXX_Unmarshal(b []byte) error

type Provider

type Provider struct {
	//
	//实例id,服务端自动生成
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"`
	//
	//名称, 不能修改
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" form:"name"`
	//
	//Provider类型, 目前只支持gitlab, 不能修改
	Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type" form:"type"`
	//
	//gitlab v4 api url.
	ApiUrl string `protobuf:"bytes,4,opt,name=api_url,json=apiUrl,proto3" json:"api_url" form:"api_url"`
	//
	//鉴权方式
	Auth *Provider_Auth `protobuf:"bytes,5,opt,name=auth,proto3" json:"auth" form:"auth"`
	//
	//是否为默认provider
	Default bool `protobuf:"varint,6,opt,name=default,proto3" json:"default" form:"default"`
	//
	//创建者, 服务端自动生成
	Creator string `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator" form:"creator"`
	//
	//创建时间, 服务端自动生成
	Ctime string `protobuf:"bytes,8,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
	//
	//修改时间, 服务端自动生成
	Mtime                string   `protobuf:"bytes,9,opt,name=mtime,proto3" json:"mtime" form:"mtime"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Git Provider

func (*Provider) Descriptor

func (*Provider) Descriptor() ([]byte, []int)

func (*Provider) GetApiUrl

func (m *Provider) GetApiUrl() string

func (*Provider) GetAuth

func (m *Provider) GetAuth() *Provider_Auth

func (*Provider) GetCreator

func (m *Provider) GetCreator() string

func (*Provider) GetCtime

func (m *Provider) GetCtime() string

func (*Provider) GetDefault

func (m *Provider) GetDefault() bool

func (*Provider) GetId

func (m *Provider) GetId() string

func (*Provider) GetMtime

func (m *Provider) GetMtime() string

func (*Provider) GetName

func (m *Provider) GetName() string

func (*Provider) GetType

func (m *Provider) GetType() string

func (*Provider) ProtoMessage

func (*Provider) ProtoMessage()

func (*Provider) Reset

func (m *Provider) Reset()

func (*Provider) String

func (m *Provider) String() string

func (*Provider) Validate

func (this *Provider) Validate() error

func (*Provider) XXX_DiscardUnknown

func (m *Provider) XXX_DiscardUnknown()

func (*Provider) XXX_Marshal

func (m *Provider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Provider) XXX_Merge

func (m *Provider) XXX_Merge(src proto.Message)

func (*Provider) XXX_Size

func (m *Provider) XXX_Size() int

func (*Provider) XXX_Unmarshal

func (m *Provider) XXX_Unmarshal(b []byte) error

type Provider_Auth

type Provider_Auth struct {
	//
	//鉴权方式, 目前只支持 basic
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type" form:"type"`
	//
	//gitlab personal access token. https://docs.gitlab.com/ee/api/README.html#personal-access-tokens
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token" form:"token"`
	//
	//auth2类型的app_id
	AppId string `protobuf:"bytes,3,opt,name=app_id,json=appId,proto3" json:"app_id" form:"app_id"`
	//
	//auth2类型的secret
	AppSecret string `protobuf:"bytes,4,opt,name=app_secret,json=appSecret,proto3" json:"app_secret" form:"app_secret"`
	//
	//auth2是否可以访问私有仓库
	AccessPrivateRepos   bool     `` /* 136-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Provider_Auth) Descriptor

func (*Provider_Auth) Descriptor() ([]byte, []int)

func (*Provider_Auth) GetAccessPrivateRepos

func (m *Provider_Auth) GetAccessPrivateRepos() bool

func (*Provider_Auth) GetAppId

func (m *Provider_Auth) GetAppId() string

func (*Provider_Auth) GetAppSecret

func (m *Provider_Auth) GetAppSecret() string

func (*Provider_Auth) GetToken

func (m *Provider_Auth) GetToken() string

func (*Provider_Auth) GetType

func (m *Provider_Auth) GetType() string

func (*Provider_Auth) ProtoMessage

func (*Provider_Auth) ProtoMessage()

func (*Provider_Auth) Reset

func (m *Provider_Auth) Reset()

func (*Provider_Auth) String

func (m *Provider_Auth) String() string

func (*Provider_Auth) Validate

func (this *Provider_Auth) Validate() error

func (*Provider_Auth) XXX_DiscardUnknown

func (m *Provider_Auth) XXX_DiscardUnknown()

func (*Provider_Auth) XXX_Marshal

func (m *Provider_Auth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Provider_Auth) XXX_Merge

func (m *Provider_Auth) XXX_Merge(src proto.Message)

func (*Provider_Auth) XXX_Size

func (m *Provider_Auth) XXX_Size() int

func (*Provider_Auth) XXX_Unmarshal

func (m *Provider_Auth) XXX_Unmarshal(b []byte) error

type Repository

type Repository struct {
	//
	//git项目名称
	RepoName string `protobuf:"bytes,1,opt,name=repo_name,json=repoName,proto3" json:"repo_name" form:"repo_name"`
	//
	//git项目id
	RepoId int32 `protobuf:"varint,2,opt,name=repo_id,json=repoId,proto3" json:"repo_id" form:"repo_id"`
	//
	//带namespace的显示名称
	NameWithNamespace string `` /* 131-byte string literal not displayed */
	//
	//带namespace的项目路径
	PathWithNamespace string `` /* 131-byte string literal not displayed */
	//
	//git ssh 克隆地址
	GitSshUrl string `protobuf:"bytes,5,opt,name=git_ssh_url,json=gitSshUrl,proto3" json:"git_ssh_url" form:"git_ssh_url"`
	//
	//git http克隆地址
	GitHttpUrl string `protobuf:"bytes,6,opt,name=git_http_url,json=gitHttpUrl,proto3" json:"git_http_url" form:"git_http_url"`
	//
	//repo web url
	Link string `protobuf:"bytes,7,opt,name=link,proto3" json:"link" form:"link"`
	//
	//默认分支名称
	DefaultBranch        string   `protobuf:"bytes,8,opt,name=default_branch,json=defaultBranch,proto3" json:"default_branch" form:"default_branch"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

仓库 https://developer.github.com/v3/repos/ https://docs.gitlab.com/ee/api/projects.html

func (*Repository) Descriptor

func (*Repository) Descriptor() ([]byte, []int)

func (*Repository) GetDefaultBranch

func (m *Repository) GetDefaultBranch() string

func (*Repository) GetGitHttpUrl

func (m *Repository) GetGitHttpUrl() string

func (*Repository) GetGitSshUrl

func (m *Repository) GetGitSshUrl() string
func (m *Repository) GetLink() string

func (*Repository) GetNameWithNamespace

func (m *Repository) GetNameWithNamespace() string

func (*Repository) GetPathWithNamespace

func (m *Repository) GetPathWithNamespace() string

func (*Repository) GetRepoId

func (m *Repository) GetRepoId() int32

func (*Repository) GetRepoName

func (m *Repository) GetRepoName() string

func (*Repository) ProtoMessage

func (*Repository) ProtoMessage()

func (*Repository) Reset

func (m *Repository) Reset()

func (*Repository) String

func (m *Repository) String() string

func (*Repository) Validate

func (this *Repository) Validate() error

func (*Repository) XXX_DiscardUnknown

func (m *Repository) XXX_DiscardUnknown()

func (*Repository) XXX_Marshal

func (m *Repository) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Repository) XXX_Merge

func (m *Repository) XXX_Merge(src proto.Message)

func (*Repository) XXX_Size

func (m *Repository) XXX_Size() int

func (*Repository) XXX_Unmarshal

func (m *Repository) XXX_Unmarshal(b []byte) error

type StageStatus

type StageStatus struct {
	//
	//stage状态唯一id, 服务端自动生成
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"`
	//
	//stage名称
	StageName string `protobuf:"bytes,2,opt,name=stage_name,json=stageName,proto3" json:"stage_name" form:"stage_name"`
	//
	//stage在stages中的序号
	Number int32 `protobuf:"varint,3,opt,name=number,proto3" json:"number" form:"number"`
	//
	//step是否并行
	Parallel bool `protobuf:"varint,4,opt,name=parallel,proto3" json:"parallel" form:"parallel"`
	//
	//stage状态
	State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state" form:"state"`
	//
	//steps状态
	Steps []*StageStatus_Steps `protobuf:"bytes,6,rep,name=steps,proto3" json:"steps" form:"steps"`
	//
	//创建时间
	Created int32 `protobuf:"varint,7,opt,name=created,proto3" json:"created" form:"created"`
	//
	//更新时间
	Updated              int32    `protobuf:"varint,8,opt,name=updated,proto3" json:"updated" form:"updated"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

阶段状态

func (*StageStatus) Descriptor

func (*StageStatus) Descriptor() ([]byte, []int)

func (*StageStatus) GetCreated

func (m *StageStatus) GetCreated() int32

func (*StageStatus) GetId

func (m *StageStatus) GetId() string

func (*StageStatus) GetNumber

func (m *StageStatus) GetNumber() int32

func (*StageStatus) GetParallel

func (m *StageStatus) GetParallel() bool

func (*StageStatus) GetStageName

func (m *StageStatus) GetStageName() string

func (*StageStatus) GetState

func (m *StageStatus) GetState() string

func (*StageStatus) GetSteps

func (m *StageStatus) GetSteps() []*StageStatus_Steps

func (*StageStatus) GetUpdated

func (m *StageStatus) GetUpdated() int32

func (*StageStatus) ProtoMessage

func (*StageStatus) ProtoMessage()

func (*StageStatus) Reset

func (m *StageStatus) Reset()

func (*StageStatus) String

func (m *StageStatus) String() string

func (*StageStatus) Validate

func (this *StageStatus) Validate() error

func (*StageStatus) XXX_DiscardUnknown

func (m *StageStatus) XXX_DiscardUnknown()

func (*StageStatus) XXX_Marshal

func (m *StageStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StageStatus) XXX_Merge

func (m *StageStatus) XXX_Merge(src proto.Message)

func (*StageStatus) XXX_Size

func (m *StageStatus) XXX_Size() int

func (*StageStatus) XXX_Unmarshal

func (m *StageStatus) XXX_Unmarshal(b []byte) error

type StageStatus_Steps

type StageStatus_Steps struct {
	//
	//step状态唯一id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"`
	//
	//step名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" form:"name"`
	//
	//step在steps中的序号
	Number int32 `protobuf:"varint,3,opt,name=number,proto3" json:"number" form:"number"`
	//
	//step状态
	State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state" form:"state"`
	//
	//退出码
	ExitCode int32 `protobuf:"varint,5,opt,name=exit_code,json=exitCode,proto3" json:"exit_code" form:"exit_code"`
	//
	//日志id
	LogId string `protobuf:"bytes,6,opt,name=log_id,json=logId,proto3" json:"log_id" form:"log_id"`
	//
	//step开始时间
	Started int32 `protobuf:"varint,7,opt,name=started,proto3" json:"started" form:"started"`
	//
	//step结束时间
	Finished int32 `protobuf:"varint,8,opt,name=finished,proto3" json:"finished" form:"finished"`
	//
	//step类型
	Type                 string   `protobuf:"bytes,9,opt,name=type,proto3" json:"type" form:"type"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StageStatus_Steps) Descriptor

func (*StageStatus_Steps) Descriptor() ([]byte, []int)

func (*StageStatus_Steps) GetExitCode

func (m *StageStatus_Steps) GetExitCode() int32

func (*StageStatus_Steps) GetFinished

func (m *StageStatus_Steps) GetFinished() int32

func (*StageStatus_Steps) GetId

func (m *StageStatus_Steps) GetId() string

func (*StageStatus_Steps) GetLogId

func (m *StageStatus_Steps) GetLogId() string

func (*StageStatus_Steps) GetName

func (m *StageStatus_Steps) GetName() string

func (*StageStatus_Steps) GetNumber

func (m *StageStatus_Steps) GetNumber() int32

func (*StageStatus_Steps) GetStarted

func (m *StageStatus_Steps) GetStarted() int32

func (*StageStatus_Steps) GetState

func (m *StageStatus_Steps) GetState() string

func (*StageStatus_Steps) GetType

func (m *StageStatus_Steps) GetType() string

func (*StageStatus_Steps) ProtoMessage

func (*StageStatus_Steps) ProtoMessage()

func (*StageStatus_Steps) Reset

func (m *StageStatus_Steps) Reset()

func (*StageStatus_Steps) String

func (m *StageStatus_Steps) String() string

func (*StageStatus_Steps) Validate

func (this *StageStatus_Steps) Validate() error

func (*StageStatus_Steps) XXX_DiscardUnknown

func (m *StageStatus_Steps) XXX_DiscardUnknown()

func (*StageStatus_Steps) XXX_Marshal

func (m *StageStatus_Steps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StageStatus_Steps) XXX_Merge

func (m *StageStatus_Steps) XXX_Merge(src proto.Message)

func (*StageStatus_Steps) XXX_Size

func (m *StageStatus_Steps) XXX_Size() int

func (*StageStatus_Steps) XXX_Unmarshal

func (m *StageStatus_Steps) XXX_Unmarshal(b []byte) error

type Template

type Template struct {
	//
	//模板id,服务端自动生成
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"`
	//
	//模板名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" form:"name"`
	//
	//简介
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description" form:"description"`
	//
	//yaml定义
	YamlString string `protobuf:"bytes,4,opt,name=yaml_string,json=yamlString,proto3" json:"yaml_string" form:"yaml_string"`
	//
	//模板变量列表
	Variables []*Template_Variables `protobuf:"bytes,5,rep,name=variables,proto3" json:"variables" form:"variables"`
	//
	//创建者,服务端自动生成
	Creator string `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator" form:"creator"`
	//
	//创建时间, 服务端自动生成
	Ctime string `protobuf:"bytes,7,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
	//
	//修改时间, 服务端自动生成
	Mtime                string   `protobuf:"bytes,8,opt,name=mtime,proto3" json:"mtime" form:"mtime"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

流水线模版

func (*Template) Descriptor

func (*Template) Descriptor() ([]byte, []int)

func (*Template) GetCreator

func (m *Template) GetCreator() string

func (*Template) GetCtime

func (m *Template) GetCtime() string

func (*Template) GetDescription

func (m *Template) GetDescription() string

func (*Template) GetId

func (m *Template) GetId() string

func (*Template) GetMtime

func (m *Template) GetMtime() string

func (*Template) GetName

func (m *Template) GetName() string

func (*Template) GetVariables

func (m *Template) GetVariables() []*Template_Variables

func (*Template) GetYamlString

func (m *Template) GetYamlString() string

func (*Template) ProtoMessage

func (*Template) ProtoMessage()

func (*Template) Reset

func (m *Template) Reset()

func (*Template) String

func (m *Template) String() string

func (*Template) Validate

func (this *Template) Validate() error

func (*Template) XXX_DiscardUnknown

func (m *Template) XXX_DiscardUnknown()

func (*Template) XXX_Marshal

func (m *Template) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Template) XXX_Merge

func (m *Template) XXX_Merge(src proto.Message)

func (*Template) XXX_Size

func (m *Template) XXX_Size() int

func (*Template) XXX_Unmarshal

func (m *Template) XXX_Unmarshal(b []byte) error

type Template_Variables

type Template_Variables struct {
	//
	//name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" form:"name"`
	//
	//value
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value" form:"value"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Template_Variables) Descriptor

func (*Template_Variables) Descriptor() ([]byte, []int)

func (*Template_Variables) GetName

func (m *Template_Variables) GetName() string

func (*Template_Variables) GetValue

func (m *Template_Variables) GetValue() string

func (*Template_Variables) ProtoMessage

func (*Template_Variables) ProtoMessage()

func (*Template_Variables) Reset

func (m *Template_Variables) Reset()

func (*Template_Variables) String

func (m *Template_Variables) String() string

func (*Template_Variables) Validate

func (this *Template_Variables) Validate() error

func (*Template_Variables) XXX_DiscardUnknown

func (m *Template_Variables) XXX_DiscardUnknown()

func (*Template_Variables) XXX_Marshal

func (m *Template_Variables) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Template_Variables) XXX_Merge

func (m *Template_Variables) XXX_Merge(src proto.Message)

func (*Template_Variables) XXX_Size

func (m *Template_Variables) XXX_Size() int

func (*Template_Variables) XXX_Unmarshal

func (m *Template_Variables) XXX_Unmarshal(b []byte) error

type Trigger

type Trigger struct {
	//
	//实例id,服务端自动生成
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"`
	//
	//git 事件
	Events []string `protobuf:"bytes,2,rep,name=events,proto3" json:"events" form:"events"`
	//
	//链接
	Link string `protobuf:"bytes,3,opt,name=link,proto3" json:"link" form:"link"`
	//
	//branch 正则
	BranchName string `protobuf:"bytes,4,opt,name=branch_name,json=branchName,proto3" json:"branch_name" form:"branch_name"`
	//
	//类型
	Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type" form:"type"`
	//
	//git hook id
	HookId string `protobuf:"bytes,6,opt,name=hook_id,json=hookId,proto3" json:"hook_id" form:"hook_id"`
	//
	//gitlab, github...
	Provider string `protobuf:"bytes,7,opt,name=provider,proto3" json:"provider" form:"provider"`
	//
	//创建者, 服务端自动生成
	Creator string `protobuf:"bytes,8,opt,name=creator,proto3" json:"creator" form:"creator"`
	//
	//创建时间, 服务端自动生成
	Ctime string `protobuf:"bytes,9,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
	//
	//修改时间, 服务端自动生成
	Mtime                string   `protobuf:"bytes,10,opt,name=mtime,proto3" json:"mtime" form:"mtime"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

trigger信息

func (*Trigger) Descriptor

func (*Trigger) Descriptor() ([]byte, []int)

func (*Trigger) GetBranchName

func (m *Trigger) GetBranchName() string

func (*Trigger) GetCreator

func (m *Trigger) GetCreator() string

func (*Trigger) GetCtime

func (m *Trigger) GetCtime() string

func (*Trigger) GetEvents

func (m *Trigger) GetEvents() []string

func (*Trigger) GetHookId

func (m *Trigger) GetHookId() string

func (*Trigger) GetId

func (m *Trigger) GetId() string
func (m *Trigger) GetLink() string

func (*Trigger) GetMtime

func (m *Trigger) GetMtime() string

func (*Trigger) GetProvider

func (m *Trigger) GetProvider() string

func (*Trigger) GetType

func (m *Trigger) GetType() string

func (*Trigger) ProtoMessage

func (*Trigger) ProtoMessage()

func (*Trigger) Reset

func (m *Trigger) Reset()

func (*Trigger) String

func (m *Trigger) String() string

func (*Trigger) Validate

func (this *Trigger) Validate() error

func (*Trigger) XXX_DiscardUnknown

func (m *Trigger) XXX_DiscardUnknown()

func (*Trigger) XXX_Marshal

func (m *Trigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Trigger) XXX_Merge

func (m *Trigger) XXX_Merge(src proto.Message)

func (*Trigger) XXX_Size

func (m *Trigger) XXX_Size() int

func (*Trigger) XXX_Unmarshal

func (m *Trigger) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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