INNER CODE UNIT · Go

dummyTemplate

ovh/utask · api/api_test.go:745

func dummyTemplate() tasktemplate.TaskTemplate {
	return tasktemplate.TaskTemplate{
		Name:        "dummy-template",
		Description: "does nothing",
		TitleFormat: "this task does nothing at all",
		Inputs: []input.Input{
			{
				Name: "id",
			},
		},
		Steps: map[string]*step.Step{
			"step": {
				Action: executor.Executor{
					Type: "echo",
					Configuration: json.RawMessage(`{
						"output": {"foo":"bar"}
					}`),
				},

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…