Documentation ¶
Index ¶
- func AppendVolumeIfNotExists(slice []v1.Volume, volume v1.Volume) []v1.Volume
- func Bool(b bool) *bool
- func ContainsString(slice []string, s string) bool
- func Filter(origin map[string]string, predicate func(string) bool) map[string]string
- func FirstNonNilError(objects []error) error
- func Includes(slice []string, value string) bool
- func IncludesArg(slice []string, arg string) bool
- func IsGPUEnabled(requirements v1.ResourceRequirements) bool
- func RemoveString(slice []string, s string) (result []string)
- func UInt64(u uint64) *uint64
- func Union(maps ...map[string]string) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendVolumeIfNotExists ¶ added in v0.4.0
func ContainsString ¶ added in v0.5.0
Helper functions to check and remove string from a slice of strings.
func FirstNonNilError ¶ added in v0.5.0
FirstNonNilError returns the first non nil interface in the slice
func IncludesArg ¶ added in v0.5.1
func IsGPUEnabled ¶ added in v0.5.0
func IsGPUEnabled(requirements v1.ResourceRequirements) bool
func RemoveString ¶ added in v0.5.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.