kubernetes

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Overview

NOTE: Some pieces of code was borrowed from: - k8s.io/apimachinery/pkg/version/helpers.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsLabelValue

func AsLabelValue(v string) string

AsLabelValue sanitizes the provided version by making it eligible to be used as a kubernetes resource's label value

func Compare

func Compare(v1, v2 string) int

Compare compares two kubernetes aware version strings

func Equals

func Equals(v1, v2 string) bool

Equals returns true if both the provided kubernetes aware versions are equal

func GreaterThan

func GreaterThan(v1, v2 string) bool

GreaterThan returns true if kubernetes aware version v1 is greater than kubernetes aware version v2

func GreaterThanOrEquals

func GreaterThanOrEquals(v1, v2 string) bool

GreaterThanOrEquals returns true if kubernetes aware version v1 is either greater than or equal to kubernetes aware version v2

func LessThan

func LessThan(v1, v2 string) bool

LessThan returns true if kubernetes aware version v1 is less than kubernetes aware version v2

func LessThanOrEquals

func LessThanOrEquals(v1, v2 string) bool

LessThanOrEquals returns true if kubernetes aware version v1 is either less than or equal to kubernetes aware version v2

func TemplateFunctions

func TemplateFunctions() template.FuncMap

TemplateFunctions exposes a few functions as go template functions

Types

This section is empty.

Jump to

Keyboard shortcuts

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