utils

package
v0.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendVolumeIfNotExists added in v0.4.0

func AppendVolumeIfNotExists(slice []v1.Volume, volume v1.Volume) []v1.Volume

func Bool added in v0.1.1

func Bool(b bool) *bool

func ContainsString added in v0.5.0

func ContainsString(slice []string, s string) bool

Helper functions to check and remove string from a slice of strings.

func Filter

func Filter(origin map[string]string, predicate func(string) bool) map[string]string

func FirstNonNilError added in v0.5.0

func FirstNonNilError(objects []error) error

FirstNonNilError returns the first non nil interface in the slice

func Includes

func Includes(slice []string, value string) bool

func IsGPUEnabled added in v0.5.0

func IsGPUEnabled(requirements v1.ResourceRequirements) bool

func RemoveString added in v0.5.0

func RemoveString(slice []string, s string) (result []string)

func UInt64 added in v0.1.1

func UInt64(u uint64) *uint64

func Union

func Union(maps ...map[string]string) map[string]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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