template

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HelperApi

func HelperApi() map[string]interface{}

HelperApi gives the API available for all templates to be used.

Types

type Kind

type Kind int
const (
	KindApi Kind = iota
	KindTest
)

type Name

type Name string

func NewName

func NewName(prefix, name string) Name

func (Name) String

func (n Name) String() string

type ValidateForExecution

type ValidateForExecution func() bool

type Validator

type Validator interface {
	GetTemplateValidator(name Name, ctx interface{}) (ValidateForExecution, bool)
}

Validator is a behavior that the templates context and addons must implement to validate their execution.

Jump to

Keyboard shortcuts

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