hclfile

package
v0.0.2-0...-12a1c74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetK8sFilesToTransform

func GetK8sFilesToTransform(filePath string) ([]string, error)

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 (f *HCLFile) GetFileBytes() []byte

func (*HCLFile) GetFileRootBody

func (f *HCLFile) GetFileRootBody() *hclwrite.Body

func (*HCLFile) WriteToFile

func (hF *HCLFile) WriteToFile(path string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL