helper

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStructToYaml added in v0.4.4

func AddStructToYaml(path string, struc interface{}) 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