Documentation
¶
Index ¶
- func ExecTemplate(textTemplate string, data interface{}) (string, error)
- func ExecTemplateFile(filePath string, data interface{}) (string, error)
- func IgnoreNotFound(err error) error
- func MustTmpFileFromEmbedFS(fs embed.FS, path string) string
- func ToUnstructured(obj k8s.Object) (*unstructured.Unstructured, error)
- func UnstructuredRef(name string, namespace string, gvk schema.GroupVersionKind) *unstructured.Unstructured
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecTemplate ¶
ExecTemplate parses and executes textTemplate with the provided data
func ExecTemplateFile ¶
ExecTemplateFile parses and executes a template referenced by a file with the provided data
func IgnoreNotFound ¶
IgnoreNotFound returns returns no error for IsNotFound
func MustTmpFileFromEmbedFS ¶ added in v0.1.1
MustTmpFileFromEmbedFS creates a temporary file from an embedded file and returns the file path
func ToUnstructured ¶
func ToUnstructured(obj k8s.Object) (*unstructured.Unstructured, error)
ToUnstructured converts a Object to Unstructured
func UnstructuredRef ¶
func UnstructuredRef(name string, namespace string, gvk schema.GroupVersionKind) *unstructured.Unstructured
UnstructuredRef returns an empty object with its identifying properties set
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.