Documentation ¶
Index ¶
- func GetK8sFilesToTransform(filePath string) ([]string, error)
- func GetK8sObjectsFromFile(filepath string) ([]*unstructured.Unstructured, error)
- type HCLFile
- func (f *HCLFile) AddK8sObjectToResourceBlockContentFile(o *unstructured.Unstructured, pathToK8sFile string) error
- func (f *HCLFile) AddK8sObjectToResourceBlockContentInline(o *unstructured.Unstructured) error
- func (f *HCLFile) GetFileBytes() []byte
- func (f *HCLFile) GetFileRootBody() *hclwrite.Body
- func (hF *HCLFile) WriteToFile(path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetK8sFilesToTransform ¶
func GetK8sObjectsFromFile ¶
func GetK8sObjectsFromFile(filepath string) ([]*unstructured.Unstructured, error)
Types ¶
type HCLFile ¶
type HCLFile struct {
// contains filtered or unexported fields
}
func NewHCLFile ¶
func NewHCLFile() *HCLFile
func (*HCLFile) AddK8sObjectToResourceBlockContentFile ¶
func (f *HCLFile) AddK8sObjectToResourceBlockContentFile(o *unstructured.Unstructured, pathToK8sFile string) error
func (*HCLFile) AddK8sObjectToResourceBlockContentInline ¶
func (f *HCLFile) AddK8sObjectToResourceBlockContentInline(o *unstructured.Unstructured) error
func (*HCLFile) GetFileBytes ¶
func (*HCLFile) GetFileRootBody ¶
func (*HCLFile) WriteToFile ¶
Click to show internal directories.
Click to hide internal directories.