Documentation ¶
Index ¶
- Variables
- func GetEnvDuration(key string, def time.Duration) time.Duration
- func GetEnvInt(key string, def int) int
- func GetEnvStringArr(key string, def []string) []string
- func GetFuncName(i interface{}) string
- func GetSourceUID(cluster, namespace, pipelineName, stepName, sourceName string) string
- func IgnoreAlreadyExists(err error) error
- func IgnoreConflict(err error) error
- func IgnoreContainerNotFound(err error) error
- func IgnoreExist(err error) error
- func IgnoreNotFound(err error) error
- func IgnorePermission(err error) error
- func IsPrint(x string) bool
- func MustHash(v interface{}) string
- func MustJSON(in interface{}) string
- func MustUnJSON(v interface{}, in interface{})
- func NewLogger() logr.Logger
- func NotEqual(a, b interface{}) (notEqual bool, patch string)
- func Printable(x string) string
- func RandString() string
- func ReadFile(filename string) (*unstructured.UnstructuredList, error)
- func Resource(kind string) string
- func SplitYAML(v interface{}) (*unstructured.UnstructuredList, error)
- type FileInfoUnstructuredList
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Version semver.Version
)
Functions ¶
func GetEnvStringArr ¶ added in v0.0.89
func GetFuncName ¶ added in v0.0.56
func GetFuncName(i interface{}) string
func GetSourceUID ¶ added in v0.0.95
func IgnoreAlreadyExists ¶
func IgnoreConflict ¶
func IgnoreContainerNotFound ¶
func IgnoreExist ¶
func IgnoreNotFound ¶
func IgnorePermission ¶
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 RandString ¶ added in v0.0.30
func RandString() string
func ReadFile ¶
func ReadFile(filename string) (*unstructured.UnstructuredList, error)
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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.