helper

package
v0.10.8 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStringBeforePointForKindAndName added in v0.9.14

func AddStringBeforePointForKindAndName(filePath, kind, name, point, addContent string) error

func AddStringObjectToYaml added in v0.9.14

func AddStringObjectToYaml(path string, str string) error

func AddStringToYaml added in v0.5.0

func AddStringToYaml(path string, str string) error

func AddStructToYaml added in v0.4.4

func AddStructToYaml(path string, struc interface{}) error

func CopyFolderToLocal added in v0.9.20

func CopyFolderToLocal(git *git.Client, tempDirectory, folderRelativePath string) error

func DeleteFirstResourceFromYaml added in v0.9.20

func DeleteFirstResourceFromYaml(path, apiVersion, kind, name string) error

func DeleteKindFromYaml added in v0.5.2

func DeleteKindFromYaml(path string, kind string) error

func FileExists added in v0.9.20

func FileExists(filename string) bool

func FolderEmpty added in v0.9.24

func FolderEmpty(folder string) (bool, error)

func FolderExists added in v0.9.24

func FolderExists(folder string) bool

func GetAbsPath added in v0.9.14

func GetAbsPath(pathParts ...string) (string, error)

func RecreatePath added in v0.9.20

func RecreatePath(pathParts ...string) error

func ReplacePointInclusiveFiller added in v0.9.20

func ReplacePointInclusiveFiller(filePath, point, content, filler string) error

func Run

func Run(monitor mntr.Monitor, cmd exec.Cmd) error

func RunWithOutput added in v0.9.20

func RunWithOutput(monitor mntr.Monitor, cmd exec.Cmd) ([]byte, error)

func YamlToString added in v0.7.7

func YamlToString(path string) (string, error)

func YamlToStruct

func YamlToStruct(path string, struc interface{}) error

Types

type Metadata added in v0.9.14

type Metadata struct {
	Name      string `yaml:"name"`
	Namespace string `yaml:"namespace"`
}

type Resource

type Resource struct {
	Kind       string    `yaml:"kind"`
	ApiVersion string    `yaml:"apiVersion"`
	Metadata   *Metadata `yaml:"metadata"`
}

Jump to

Keyboard shortcuts

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