executor

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 5

Documentation

Overview

Package executor The API for an executor plugin.

Schemes: http
Host: localhost
BasePath: /api/v1
Version: 0.0.1

Consumes:
- application/json

Produces:
- application/json

swagger:meta

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecuteTemplateArgs

type ExecuteTemplateArgs struct {
	// Required: true
	Workflow *Workflow `json:"workflow"`
	// Required: true
	Template *wfv1.Template `json:"template"`
}

type ExecuteTemplateReply

type ExecuteTemplateReply struct {
	Node    *wfv1.NodeResult `json:"node,omitempty"`
	Requeue *metav1.Duration `json:"requeue,omitempty"`
}

func (ExecuteTemplateReply) GetRequeue

func (r ExecuteTemplateReply) GetRequeue() time.Duration

type ExecuteTemplateRequest

type ExecuteTemplateRequest struct {
	// in: body
	// Required: true
	Body ExecuteTemplateArgs
}

swagger:parameters executeTemplate

type ExecuteTemplateResponse

type ExecuteTemplateResponse struct {
	// in: body
	Body ExecuteTemplateReply
}

swagger:response executeTemplate

type ObjectMeta

type ObjectMeta struct {
	Name string `json:"name"`
}

type TemplateExecutor

type TemplateExecutor interface {
	// swagger:route POST /template.execute executeTemplate
	//     Responses:
	//       200: executeTemplate
	ExecuteTemplate(ctx context.Context, args ExecuteTemplateArgs, reply *ExecuteTemplateReply) error
}

type Workflow

type Workflow struct {
	// Required: true
	ObjectMeta ObjectMeta `json:"metadata"`
}

Jump to

Keyboard shortcuts

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