Documentation ¶
Index ¶
- Constants
- Variables
- func FixupTemplateVarKey(key string) string
- func GetTemplateType(l LabelHolder) (string, bool)
- func SetTemplateType(l LabelHolder, tmplType string)
- func StringToUnstructured(str string) (*schema.GroupVersionKind, *unstructured.Unstructured, error)
- func UnstructuredToJSONBytes(obj *unstructured.Unstructured) ([]byte, error)
- func ValidCustomVars(varString string) error
- type LabelHolder
- type TemplateBuilder
Constants ¶
View Source
const ( DefaultVarsInstance = "{{INSTANCE}}" DefaultVarsNamespace = "{{NAMESPACE}}" DefaultVarsTemplate = "{{TEMPLATE}}" )
Variables ¶
View Source
var (
ErrInvalidVars = errors.New("invalid Vars string")
)
Functions ¶
func FixupTemplateVarKey ¶
func GetTemplateType ¶
func GetTemplateType(l LabelHolder) (string, bool)
func SetTemplateType ¶
func SetTemplateType(l LabelHolder, tmplType string)
func StringToUnstructured ¶
func StringToUnstructured(str string) (*schema.GroupVersionKind, *unstructured.Unstructured, error)
func UnstructuredToJSONBytes ¶
func UnstructuredToJSONBytes(obj *unstructured.Unstructured) ([]byte, error)
func ValidCustomVars ¶
Types ¶
type LabelHolder ¶
type TemplateBuilder ¶
type TemplateBuilder struct {
// contains filtered or unexported fields
}
func NewTemplateBuilder ¶
func NewTemplateBuilder(data string, inst *cosmov1alpha1.Instance) *TemplateBuilder
func (*TemplateBuilder) Build ¶
func (t *TemplateBuilder) Build() ([]unstructured.Unstructured, error)
func (*TemplateBuilder) ReplaceCustomVars ¶
func (t *TemplateBuilder) ReplaceCustomVars() *TemplateBuilder
func (*TemplateBuilder) ReplaceDefaultVars ¶
func (t *TemplateBuilder) ReplaceDefaultVars() *TemplateBuilder
Click to show internal directories.
Click to hide internal directories.