Help us shape the future of Go! Take the 2026 Go Developer Survey

executor

package
v3.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 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"`
	Namespace string `json:"namespace"`
	Uid       string `json:"uid"`
}

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