Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironmentVariable ¶
type EnvironmentVariable struct {
// contains filtered or unexported fields
}
EnvironmentVariable is a variable that has a value from an environment variable.
func (*EnvironmentVariable) Name ¶
func (v *EnvironmentVariable) Name() string
Name returns the name of the variable.
type LiteralVariable ¶
type LiteralVariable struct {
// contains filtered or unexported fields
}
LiteralVariable is a variable that has a literal value.
func (*LiteralVariable) Name ¶
func (v *LiteralVariable) Name() string
Name returns the name of the variable.
type TemplateVariable ¶
type TemplateVariable struct {
// contains filtered or unexported fields
}
TemplateVariable is a variable that has a value from a template.
func (*TemplateVariable) Name ¶
func (v *TemplateVariable) Name() string
Name returns the name of the variable.
type Variable ¶
type Variable interface {
// Name returns the name of the variable.
Name() string
// Value returns the value of the variable.
Value(ctx context.Context) (any, error)
}
Variable is a variable that can be used in a template.
func NewEnvironmentVariable ¶
NewEnvironmentVariable creates a new environment variable.
func NewLiteralVariable ¶
NewLiteralVariable creates a new literal variable.
func NewTemplateVariable ¶
NewTemplateVariable creates a new template variable.
Click to show internal directories.
Click to hide internal directories.