template

package
v1.9.11 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewViewTemplateLoader

func NewViewTemplateLoader(client client.Client, namespace string) template.Loader

NewViewTemplateLoader create a view task template loader.

func NewWorkflowStepTemplateLoader

func NewWorkflowStepTemplateLoader(client client.Client) template.Loader

NewWorkflowStepTemplateLoader create a task template loader.

func NewWorkflowStepTemplateRevisionLoader

func NewWorkflowStepTemplateRevisionLoader(rev *v1beta1.ApplicationRevision, mapper meta.RESTMapper) template.Loader

NewWorkflowStepTemplateRevisionLoader create a task template loader from ApplicationRevision.

Types

type EchoLoader

type EchoLoader struct {
}

EchoLoader will load data from input as it is.

func (*EchoLoader) LoadTemplate

func (ll *EchoLoader) LoadTemplate(_ context.Context, content string) (string, error)

LoadTemplate gets the echo content exactly what it is .

type ViewLoader

type ViewLoader struct {
	// contains filtered or unexported fields
}

ViewLoader load view task definition template.

func (*ViewLoader) LoadTemplate

func (loader *ViewLoader) LoadTemplate(ctx context.Context, name string) (string, error)

LoadTemplate gets the workflowStep definition.

type WorkflowStepLoader

type WorkflowStepLoader struct {
	// contains filtered or unexported fields
}

WorkflowStepLoader load workflowStep task definition template.

func (*WorkflowStepLoader) LoadTemplate

func (loader *WorkflowStepLoader) LoadTemplate(ctx context.Context, name string) (string, error)

LoadTemplate gets the workflowStep definition.

Jump to

Keyboard shortcuts

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