Documentation ¶
Index ¶
- func CancelWorkflowTask(header http.Header, qs url.Values, id string, name string, ...) (int, error)
- func CreateWorkflowTask(header http.Header, qs url.Values, workflowName string, body []byte, ...) ([]byte, error)
- func GetDetailedWorkflowTask(header http.Header, qs url.Values, taskID, name string, _ *zap.SugaredLogger) ([]byte, error)
- func ListDelivery(header http.Header, qs url.Values, productName string, workflowName string, ...) ([]byte, error)
- func ListWorkflowTask(header http.Header, qs url.Values, commitId string, _ *zap.SugaredLogger) ([]byte, error)
- func RestartWorkflowTask(header http.Header, qs url.Values, id string, name string, ...) (int, error)
- type ActivityCommit
- type DeliveryActivity
- type DeliveryArtifact
- type DeliveryArtifactInfo
- type WorkflowTaskDetail
- type WorkflowTaskFunctionTestReport
- type WorkflowTaskImage
- type WorkflowTaskTarget
- type WorkflowTaskTargetBuild
- type WorkflowTaskTargetRepo
- type WorkflowTaskTestReport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelWorkflowTask ¶
func CreateWorkflowTask ¶
func GetDetailedWorkflowTask ¶ added in v1.8.0
func ListDelivery ¶
func ListWorkflowTask ¶
Types ¶
type ActivityCommit ¶ added in v1.8.0
type ActivityCommit struct { Address string `json:"address"` Source string `json:"source,omitempty"` RepoOwner string `json:"repo_owner"` RepoName string `json:"repo_name"` Branch string `json:"branch"` PR int `json:"pr,omitempty"` Tag string `json:"tag,omitempty"` CommitID string `json:"commit_id,omitempty"` CommitMessage string `json:"commit_message,omitempty"` AuthorName string `json:"author_name,omitempty"` }
type DeliveryActivity ¶ added in v1.8.0
type DeliveryActivity struct { Type string `json:"type"` Content string `json:"content,omitempty"` URL string `json:"url,omitempty"` Commits []*ActivityCommit `json:"commits,omitempty"` Issues []string `json:"issues,omitempty"` Namespace string `json:"namespace,omitempty"` EnvName string `json:"env_name,omitempty"` PublishHosts []string `json:"publish_hosts,omitempty"` PublishNamespaces []string `json:"publish_namespaces,omitempty"` RemoteFileKey string `json:"remote_file_key,omitempty"` DistStorageURL string `json:"dist_storage_url,omitempty"` SrcStorageURL string `json:"src_storage_url,omitempty"` StartTime int64 `json:"start_time,omitempty"` EndTime int64 `json:"end_time,omitempty"` CreatedBy string `json:"created_by"` CreatedTime int64 `json:"created_time"` }
type DeliveryArtifact ¶ added in v1.8.0
type DeliveryArtifact struct { Name string `json:"name"` Type string `json:"type"` Source string `json:"source"` Image string `json:"image,omitempty"` ImageHash string `json:"image_hash,omitempty"` ImageTag string `json:"image_tag"` ImageDigest string `json:"image_digest,omitempty"` ImageSize int64 `json:"image_size,omitempty"` Architecture string `json:"architecture,omitempty"` Os string `json:"os,omitempty"` PackageFileLocation string `json:"package_file_location,omitempty"` PackageStorageURI string `json:"package_storage_uri,omitempty"` CreatedBy string `json:"created_by"` CreatedTime int64 `json:"created_time"` }
type DeliveryArtifactInfo ¶ added in v1.8.0
type DeliveryArtifactInfo struct { *DeliveryArtifact DeliveryActivities []*DeliveryActivity `json:"activities"` DeliveryActivitiesMap map[string][]*DeliveryActivity `json:"sortedActivities,omitempty"` }
func GetArtifactInfo ¶ added in v1.8.0
func GetArtifactInfo(header http.Header, qs url.Values, image string, _ *zap.SugaredLogger) (*DeliveryArtifactInfo, error)
type WorkflowTaskDetail ¶ added in v1.8.0
type WorkflowTaskDetail struct { WorkflowName string `json:"workflow_name"` EnvName string `json:"env_name"` Targets []*WorkflowTaskTarget `json:"targets"` Images []*WorkflowTaskImage `json:"images"` TestReports []*WorkflowTaskTestReport `json:"test_reports"` Status string `json:"status"` }
type WorkflowTaskFunctionTestReport ¶ added in v1.8.0
type WorkflowTaskImage ¶ added in v1.8.0
type WorkflowTaskTarget ¶ added in v1.8.0
type WorkflowTaskTarget struct { Name string `json:"name"` ServiceType string `json:"service_type"` Build *WorkflowTaskTargetBuild `json:"build"` }
type WorkflowTaskTargetBuild ¶ added in v1.8.0
type WorkflowTaskTargetBuild struct {
Repos []*WorkflowTaskTargetRepo `json:"repos"`
}
type WorkflowTaskTargetRepo ¶ added in v1.8.0
type WorkflowTaskTestReport ¶ added in v1.8.0
type WorkflowTaskTestReport struct { TestName string `json:"test_name"` FunctionTestReport *WorkflowTaskFunctionTestReport `json:"function_test_report"` }
Click to show internal directories.
Click to hide internal directories.