MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / GetTaskName

Function GetTaskName

agent/app/task/task.go:103–105  ·  view source on GitHub ↗
(resourceName, operate, scope string)

Source from the content-addressed store, hash-verified

101)
102
103func GetTaskName(resourceName, operate, scope string) string {
104 return fmt.Sprintf("%s%s [%s]", i18n.GetMsgByKey(operate), i18n.GetMsgByKey(scope), resourceName)
105}
106
107func NewTaskWithOps(resourceName, operate, scope, taskID string, resourceID uint) (*Task, error) {
108 return NewTask(GetTaskName(resourceName, operate, scope), operate, scope, taskID, resourceID)

Callers 2

NewTaskWithOpsFunction · 0.70
ReNewTaskWithOpsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected