const ApplicationJson = "application/json"
const HeaderContentType = "Content-Type"
func IsValidRenderedTask(template *v1alpha1.Template) bool
func RenderWorkflowTaskTemplate(request RequestForm) (*v1alpha1.Template, error)
CommandFlags could be parsed from flags of curl command line.
type CommandFlags struct { Method string `json:"method"` URL string `json:"url"` Header Header `json:"header"` Body string `json:"body"` FollowLocation bool `json:"followLocation"` JsonContent bool `json:"jsonContent"` }
type Commands []string
Header is copied from http.Header, for speed up swagger_spec code generator without --parseDependency
type Header map[string][]string
RequestForm should contain all the fields shown on frontend
type RequestForm struct { CommandFlags Name string `json:"name"` }
func ParseWorkflowTaskTemplate(template *v1alpha1.Template) (*RequestForm, error)