mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-25 06:20:21 +08:00
move getCronWorkflowColumns to types.go
This commit is contained in:
@@ -629,13 +629,3 @@ func (c *Client) GetCronWorkflowStatisticsForTemplates(workflowTemplates ...*Wor
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
func getCronWorkflowColumns(extraColumns ...string) []string {
|
||||
results := []string{"cw.id", "cw.created_at", "cw.uid", "cw.name", "cw.workflow_template_version_id", "cw.manifest", "cw.namespace"}
|
||||
|
||||
for _, str := range extraColumns {
|
||||
results = append(results, str)
|
||||
}
|
||||
|
||||
return results
|
||||
}
|
||||
|
||||
12
pkg/types.go
12
pkg/types.go
@@ -666,6 +666,18 @@ func getWorkflowExecutionColumns(alias string, destination string, extraColumns
|
||||
return formatColumnSelect(columns, alias, destination, extraColumns...)
|
||||
}
|
||||
|
||||
// returns all of the columns for cronWorkflow modified by alias, destination.
|
||||
// see formatColumnSelect
|
||||
func getCronWorkflowColumns(extraColumns ...string) []string {
|
||||
results := []string{"cw.id", "cw.created_at", "cw.uid", "cw.name", "cw.workflow_template_version_id", "cw.manifest", "cw.namespace"}
|
||||
|
||||
for _, str := range extraColumns {
|
||||
results = append(results, str)
|
||||
}
|
||||
|
||||
return results
|
||||
}
|
||||
|
||||
func LabelsToMapping(labels ...*Label) map[string]string {
|
||||
result := make(map[string]string)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user