Documentation
¶
Index ¶
- type ActionInputArg
- type ActionResult
- type ActionRun
- type ActionStep
- type Artifactory
- type Command
- type ContractCheckResult
- type ContractCheckResultDetails
- type ContractMethodsPropertiesReportDetails
- type ContractStyleGuideValidationsReportDetails
- type Job
- type JobDetail
- type JobDetailDecrement
- type JobDetailPage
- type JobLog
- type JobPage
- type JobStageLog
- type JobVo
- type JobVoTimeDecrement
- type Node
- type QueueMessage
- type RemoteAction
- type Report
- type ResultDetailType
- type Stage
- type StageDetail
- type Status
- type StatusChangeMessage
- type Step
- type Template
- type TemplateChinese
- type TemplateDetail
- type TemplateEnglish
- type TemplateVo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionInputArg ¶
type ActionResult ¶
type ActionResult struct {
CodeInfo string
Artifactorys []Artifactory `json:"artifactorys"`
Reports []Report `json:"reports"`
}
type ActionRun ¶
type ActionRun struct {
Using string `yaml:"using"`
Steps []ActionStep `yaml:"steps"`
}
type ActionStep ¶
type Artifactory ¶
Artifactory 构建物
type ContractCheckResult ¶
type ContractCheckResult[T ResultDetailType] struct { Name string `json:"name"` Result string `json:"result"` Tool string `json:"tool"` Context []ContractCheckResultDetails[T] `json:"context"` }
func NewContractCheckResult ¶
func NewContractCheckResult[T ResultDetailType](name string, result string, tool string, context []ContractCheckResultDetails[T]) ContractCheckResult[T]
type ContractCheckResultDetails ¶
type ContractCheckResultDetails[T ResultDetailType] struct { Name string `json:"name"` Issue int `json:"issue"` Message T `json:"message"` }
func NewContractCheckResultDetails ¶
func NewContractCheckResultDetails[T ResultDetailType](name string, issue int, message T) ContractCheckResultDetails[T]
type ContractMethodsPropertiesReportDetails ¶
type ContractMethodsPropertiesReportDetails struct {
Contract string `json:"contract"`
Category string `json:"category"`
Function string `json:"function"`
Visibility string `json:"visibility"`
ViewPure string `json:"view_pure"`
Returns string `json:"returns"`
Modifiers string `json:"modifiers"`
}
func NewContractMethodsPropertiesReportDetails ¶
func NewContractMethodsPropertiesReportDetails(contract, category, function, visibility, viewPure, returns, modifiers string) ContractMethodsPropertiesReportDetails
type ContractStyleGuideValidationsReportDetails ¶
type ContractStyleGuideValidationsReportDetails struct {
Line string `json:"line"`
Column string `json:"column"`
Level string `json:"level"`
OriginalText string `json:"originalText"`
Note string `json:"note"`
Tool string `json:"tool"`
}
func NewContractStyleGuideValidationsReportDetails ¶
func NewContractStyleGuideValidationsReportDetails(line, column, level, originalText, note, tool string) ContractStyleGuideValidationsReportDetails
type Job ¶
type JobDetail ¶
type JobDetail struct {
Id int `json:"id"`
Job
Status Status `json:"status"`
TriggerMode string `yaml:"triggerMode" json:"triggerMode"`
Stages []StageDetail `json:"stages"`
StartTime time.Time `yaml:"startTime" json:"startTime"`
Duration int64 `json:"duration"`
ActionResult `yaml:"actionResult" json:"actionResult"`
Output *output.Output `json:"output"`
Error string `yaml:"error,omitempty"json:"error"`
}
type JobDetailDecrement ¶
type JobDetailDecrement []JobDetail
func (JobDetailDecrement) Len ¶
func (s JobDetailDecrement) Len() int
func (JobDetailDecrement) Less ¶
func (s JobDetailDecrement) Less(i, j int) bool
func (JobDetailDecrement) Swap ¶
func (s JobDetailDecrement) Swap(i, j int)
type JobDetailPage ¶
type JobStageLog ¶
type JobVo ¶
type JobVo struct {
Version string `yaml:"version" json:"version"`
Name string `yaml:"name" json:"name"`
Stages map[string]Stage `yaml:"stages" json:"stages"`
Status Status `json:"status"`
StartTime time.Time `yaml:"startTime" json:"startTime"`
Duration int64 `json:"duration"`
TriggerMode string `yaml:"triggerMode" json:"triggerMode"`
PipelineDetailId int `json:"pipelineDetailId"`
Error string `json:"error"`
CreateTime time.Time `json:"createTime"`
}
type JobVoTimeDecrement ¶
type JobVoTimeDecrement []JobVo
func (JobVoTimeDecrement) Len ¶
func (s JobVoTimeDecrement) Len() int
func (JobVoTimeDecrement) Less ¶
func (s JobVoTimeDecrement) Less(i, j int) bool
func (JobVoTimeDecrement) Swap ¶
func (s JobVoTimeDecrement) Swap(i, j int)
type QueueMessage ¶
func NewStartQueueMsg ¶
func NewStartQueueMsg(name string, id int) QueueMessage
func NewStopQueueMsg ¶
func NewStopQueueMsg(name string, id int) QueueMessage
type RemoteAction ¶
type ResultDetailType ¶
type ResultDetailType interface {
string | []ContractStyleGuideValidationsReportDetails | []ContractMethodsPropertiesReportDetails | json.RawMessage
}
type StageDetail ¶
type StageDetail struct {
Name string `json:"name"`
Stage Stage `json:"stage"`
Status Status `json:"status"`
StartTime time.Time `json:"startTime"`
Duration int64 `json:"duration"`
}
func NewStageDetail ¶
func NewStageDetail(name string, stage Stage) StageDetail
func (*StageDetail) ToString ¶
func (s *StageDetail) ToString() string
type StatusChangeMessage ¶
func NewStatusChangeMsg ¶
func NewStatusChangeMsg(name string, id int, status Status) StatusChangeMessage
type Step ¶
type Step struct {
Name string `yaml:"name,omitempty" json:"name"`
Id string `yaml:"id,omitempty" json:"id"`
Uses string `yaml:"uses,omitempty" json:"uses"`
With map[string]string `yaml:"with,omitempty" json:"with"`
RunsOn string `yaml:"runs-on,omitempty" json:"runsOn"`
Run string `yaml:"run,omitempty" json:"run"`
Status Status `yaml:"status,omitempty" json:"status"`
StartTime time.Time `yaml:"startTime,omitempty" json:"startTime"`
Duration int64 `yaml:"duration,omitempty" json:"duration"`
}
type TemplateChinese ¶
type TemplateChinese struct {
Id int `yaml:"id,omitempty" json:"id"`
Name string `yaml:"name,omitempty" json:"name"`
DescriptionChinese string `yaml:"descriptionChinese,omitempty" json:"description"`
Tag string `yaml:"tag,omitempty" json:"tag"`
ImageName string `yaml:"imageName,omitempty" json:"imageName"`
}
type TemplateDetail ¶
type TemplateEnglish ¶
type TemplateEnglish struct {
Id int `yaml:"id,omitempty" json:"id"`
Name string `yaml:"name,omitempty" json:"name"`
DescriptionEnglish string `yaml:"descriptionEnglish,omitempty" json:"description"`
Tag string `yaml:"tag,omitempty" json:"tag"`
ImageName string `yaml:"imageName,omitempty" json:"imageName"`
}
type TemplateVo ¶
Click to show internal directories.
Click to hide internal directories.