resourceversion

package
v0.36.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 2 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareResourceVersion

func CompareResourceVersion(a, b string) (int, error)

CompareResourceVersion runs a comparison between two ResourceVersions. This only has semantic meaning when the comparison is done on two objects of the same resource. The return values are:

-1: If RV a < RV b
 0: If RV a == RV b
+1: If RV a > RV b

The function will return an error if the resource version is not a properly formatted positive integer, but has no restriction on length. A properly formatted integer will not contain leading zeros or non integer characters. Zero is also considered an invalid value as it is used as a special value in list/watch events and will never be a live resource version.

Types

type InvalidResourceVersion

type InvalidResourceVersion struct {
	// contains filtered or unexported fields
}

func (InvalidResourceVersion) Error

func (i InvalidResourceVersion) Error() string

Jump to

Keyboard shortcuts

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