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 UnstructuredBuilder
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 UnstructuredBuilder ¶ added in v0.3.0
type UnstructuredBuilder struct {
// contains filtered or unexported fields
}
func NewUnstructuredBuilder ¶ added in v0.3.0
func NewUnstructuredBuilder(rawYaml string, inst *cosmov1alpha1.Instance) *UnstructuredBuilder
func (*UnstructuredBuilder) Build ¶ added in v0.3.0
func (t *UnstructuredBuilder) Build() ([]unstructured.Unstructured, error)
func (*UnstructuredBuilder) ReplaceCustomVars ¶ added in v0.3.0
func (t *UnstructuredBuilder) ReplaceCustomVars() *UnstructuredBuilder
func (*UnstructuredBuilder) ReplaceDefaultVars ¶ added in v0.3.0
func (t *UnstructuredBuilder) ReplaceDefaultVars() *UnstructuredBuilder
Click to show internal directories.
Click to hide internal directories.