util

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareStrings added in v0.5.1

func CompareStrings(src, dst []string) ([]string, []string)

CompareStrings compares two string slices

func IsExist added in v0.6.1

func IsExist(name string) bool

IsExist returns whether the given file / directory exists or not

func IsSecretFile added in v0.3.2

func IsSecretFile(filename string) bool

IsSecretFile returns whether the given file is secret file or not

func ListYAMLFiles added in v0.3.2

func ListYAMLFiles(dirname string) ([]string, error)

ListYAMLFiles parses and executes function recursively

func NamespaceFromPath added in v0.3.2

func NamespaceFromPath(path, basedir string) (string, error)

NamespaceFromPath returns namespace from the given path

func ScanLines added in v0.5.0

func ScanLines(r io.Reader) []string

ScanLines reads text stream and return

func ScanNoecho added in v0.5.0

func ScanNoecho(key string) string

ScanNoecho reads password without printing password text in console

func WriteFile

func WriteFile(filename string, body []byte) error

WriteFile writes body to file

func WriteFileWithoutSection

func WriteFileWithoutSection(filename string, body []byte) error

WriteFileWithoutSection writes body to file keeping preserved section

Types

This section is empty.

Jump to

Keyboard shortcuts

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