service

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelWorkflowTask

func CancelWorkflowTask(header http.Header, qs url.Values, id string, name string, _ *zap.SugaredLogger) (int, error)

func CreateWorkflowTask

func CreateWorkflowTask(header http.Header, qs url.Values, workflowName string, body []byte, _ *zap.SugaredLogger) ([]byte, error)

func GetDetailedWorkflowTask added in v1.8.0

func GetDetailedWorkflowTask(header http.Header, qs url.Values, taskID, name string, _ *zap.SugaredLogger) ([]byte, error)

func ListDelivery

func ListDelivery(header http.Header, qs url.Values, productName string, workflowName string, taskId string, perPage string, page string, _ *zap.SugaredLogger) ([]byte, error)

func ListWorkflowTask

func ListWorkflowTask(header http.Header, qs url.Values, commitId string, _ *zap.SugaredLogger) ([]byte, error)

func RestartWorkflowTask

func RestartWorkflowTask(header http.Header, qs url.Values, id string, name string, _ *zap.SugaredLogger) (int, error)

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 WorkflowTaskFunctionTestReport struct {
	Tests     int    `json:"tests"`
	Successes int    `json:"successes"`
	Failures  int    `json:"failures"`
	Skips     int    `json:"skips"`
	Errors    int    `json:"errors"`
	DetailUrl string `json:"detail_url"`
}

type WorkflowTaskImage added in v1.8.0

type WorkflowTaskImage struct {
	Image        string `json:"image"`
	ServiceName  string `json:"service_name"`
	RegistryRepo string `json:"registry_repo"`
}

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 WorkflowTaskTargetRepo struct {
	RepoName string `json:"repo_name"`
	Branch   string `json:"branch"`
	Pr       int    `json:"pr"`
}

type WorkflowTaskTestReport added in v1.8.0

type WorkflowTaskTestReport struct {
	TestName           string                          `json:"test_name"`
	FunctionTestReport *WorkflowTaskFunctionTestReport `json:"function_test_report"`
}

Jump to

Keyboard shortcuts

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