helper

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 AddYamlToYaml added in v0.5.2

func AddYamlToYaml(filePath, addFilePath string) error

func DeleteKindFromYaml added in v0.5.2

func DeleteKindFromYaml(path string, kind string) error

func GetVersionFromYaml

func GetVersionFromYaml(filePath string) (string, error)

func Run

func Run(logger logging.Logger, cmd exec.Cmd) error

func StructToYaml

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

func YamlToStruct

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

Types

type Resource

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

Jump to

Keyboard shortcuts

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