resourceversion

package
v4.0.16 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 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

Overview

Package resourceversion is a copy of k8s.io/apimachinery/pkg/util/resourceversion, which was introduced in apimachinery v0.35.0 and so is not available in the version used by this release branch. Remove this copy and import the upstream package once the k8s dependencies are bumped to v0.35.0 or later.

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