Documentation ¶
Index ¶
Constants ¶
View Source
const (
VariableWorkspace = "workspace"
)
Variables ¶
This section is empty.
Functions ¶
func NewCatalogSubstitutionRegistry ¶
func NewCatalogSubstitutionRegistry(vars []CatalogVariable) substitutions.Registry[string]
Types ¶
type CatalogVariable ¶
type CatalogVariable interface {
GetSubstitutionPlan() SubstitutionPlan
}
CatalogVariable allows dynamically to replace variables represented with `{{VAR_NAME}}` string.
type CustomCatalogVariable ¶
type CustomCatalogVariable struct {
Plan SubstitutionPlan
}
CustomCatalogVariable is a variable that can be created on the fly. Just specify the plan of what should be replaced with what data, it implements CatalogVariable.
func (CustomCatalogVariable) GetSubstitutionPlan ¶
func (c CustomCatalogVariable) GetSubstitutionPlan() SubstitutionPlan
type SubstitutionPlan ¶
SubstitutionPlan defines an intent to replace `from` with `to`.
Click to show internal directories.
Click to hide internal directories.