util

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPrint

func IsPrint(x string) bool

func MustHash

func MustHash(v interface{}) string

func MustJSON

func MustJSON(in interface{}) string

func MustUnJSON

func MustUnJSON(v interface{}, in interface{})

MustUnJSON unmarshalls JSON or panics. v - must be []byte or string in - must be a pointer

func NotEqual

func NotEqual(a, b interface{}) bool

func Printable

func Printable(x string) string

return a printable string

func ReadFile

func ReadFile(filename string) (*unstructured.UnstructuredList, error)

func Resource

func Resource(kind string) string

func SplitYAML

func SplitYAML(v interface{}) (*unstructured.UnstructuredList, error)

Types

type FileInfoUnstructuredList

type FileInfoUnstructuredList struct {
	fs.FileInfo
	unstructured.UnstructuredList
}

func ReadDir

func ReadDir(dirname string) ([]FileInfoUnstructuredList, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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