Documentation ¶
Index ¶
- func Bool(b bool, err error) bool
- func Bytes(b []byte, err error) []byte
- func Check(b bool, err error)
- func Duration(d time.Duration, err error) time.Duration
- func GroupVersion(gv schema.GroupVersion, err error) schema.GroupVersion
- func Int(i int, err error) int
- func Module(m *ast.Module, err error) *ast.Module
- func Must(err error)
- func String(s string, err error) string
- func StringSlice(s []string, err error) []string
- func Unstructured(u *unstructured.Unstructured, err error) *unstructured.Unstructured
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
Check panics if b is false. This is similar to Bool, but intended for use by runtime checks, rather than by functions that return (bool, error).
func GroupVersion ¶
func GroupVersion(gv schema.GroupVersion, err error) schema.GroupVersion
GroupVersion panics if the error is set, otherwise returns b.
func StringSlice ¶
StringSlice panics if the error is set, otherwise returns s.
func Unstructured ¶
func Unstructured(u *unstructured.Unstructured, err error) *unstructured.Unstructured
Unstructured ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.