Documentation ¶
Index ¶
- func CreateFileFromRNode(targetDir string, node *yaml.RNode) error
- func CreateFileFromRObject(fp string, x runtime.Object) error
- func EnsureDir(dirName string, create bool) error
- func GetFullPath(targetDir, rp string) string
- func GetPathFromRNode(node *yaml.RNode) string
- func GetRelativePath(targetDir, fp string) string
- func ReadFile(fileName string) ([]byte, error)
- func ReadFiles(source string, recursive bool, match []string) ([]string, error)
- func ResolveAbsAndRelPaths(path string) (string, string, error)
- func ResourcesToPackageBuffer(resources map[string]string, match []string) (*kio.PackageBuffer, error)
- func UpdateFileFromRNode(targetDir, data string, node *yaml.RNode) error
- func UpdateFileFromRObject(fp string, x runtime.Object) error
- func WriteFileFromRNode(fp string, node *yaml.RNode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFullPath ¶
GetFullPath returns the path from where the binary is run used to create/update files in the filesystem
func GetPathFromRNode ¶
func GetRelativePath ¶
GetRelativePath returns the path which kioutil would return the relative path in the package, used for comparisons
func ResolveAbsAndRelPaths ¶
ResolveAbsAndRelPaths returns absolute and relative paths for input path
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.