Documentation ¶
Index ¶
- type ActionInputArg
- type ActionResult
- type ActionRun
- type ActionStep
- type Artifactory
- type BuildInfo
- type Command
- type ContractCheckResult
- type ContractCheckResultDetails
- type ContractMethodsPropertiesReportDetails
- type ContractStyleGuideValidationsReportDetails
- type DeployInfo
- type EslintCheckReportDetails
- type GasUsageForDeployments
- type GasUsageForMethods
- type IssuesInfo
- type Job
- type JobDetail
- type JobDetailDecrement
- type JobDetailPage
- type JobLog
- type JobPage
- type JobStageLog
- type JobVo
- type JobVoTimeDecrement
- type MetaScanReport
- type Node
- type QueueMessage
- type RemoteAction
- type Report
- type ResultDetailType
- type SendJobError
- type Stage
- type StageDetail
- type Status
- type StatusChangeMessage
- type Step
- type Template
- type TemplateChinese
- type TemplateDetail
- type TemplateEnglish
- type TemplateVo
- type TestResult
- type UnitTestResult
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"` Deploys []DeployInfo `json:"deploys"` BuildData []BuildInfo `json:"buildData"` MetaScanData []MetaScanReport `json:"metaScanData"` }
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"` SolcVersion string `json:"solcVersion"` Context []ContractCheckResultDetails[T] `json:"context"` Total int `json:"total"` }
func NewContractCheckResult ¶
func NewContractCheckResult[T ResultDetailType](name string, result string, tool string, context []ContractCheckResultDetails[T], total int) ContractCheckResult[T]
type ContractCheckResultDetails ¶
type ContractCheckResultDetails[T ResultDetailType] struct { Name string `json:"name"` Issue int `json:"issue"` GasLimit string `json:"gasLimit"` 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 DeployInfo ¶ added in v1.0.3
type EslintCheckReportDetails ¶ added in v1.0.2
type GasUsageForDeployments ¶ added in v1.0.3
type GasUsageForMethods ¶ added in v1.0.3
type IssuesInfo ¶ added in v1.0.3
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 MetaScanReport ¶ added in v1.0.3
type QueueMessage ¶
func NewStartQueueMsg ¶
func NewStartQueueMsg(name, content string, id int) *QueueMessage
func NewStopQueueMsg ¶
func NewStopQueueMsg(name, content string, id int) *QueueMessage
type RemoteAction ¶
type Report ¶
type Report struct { Id int `json:"id"` Url string `json:"url"` Type int `json:"type"` // 2 合约检查,前端检查 3 openai 报告 Content string `json:"content"` }
Report 构建物报告
type ResultDetailType ¶
type ResultDetailType interface { string | []ContractStyleGuideValidationsReportDetails | []ContractMethodsPropertiesReportDetails | json.RawMessage | []EslintCheckReportDetails | []UnitTestResult | []IssuesInfo | []GasUsageForMethods | []GasUsageForDeployments }
type SendJobError ¶ added in v1.0.3
type SendJobError struct { ErrorNode string // 出错的节点是哪个,记下来,删掉它 JobName string JobID int Err error }
func (*SendJobError) Error ¶ added in v1.0.3
func (e *SendJobError) Error() string
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"` Volumes []string `yaml:"volumes" json:"volumes"` 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 ¶
type TestResult ¶ added in v1.0.3
type UnitTestResult ¶ added in v1.0.3
type UnitTestResult struct { ContractName string `json:"contractName"` TestResultList []TestResult `json:"TestResultList"` }
Click to show internal directories.
Click to hide internal directories.