package resourceversion
import "k8s.io/apimachinery/pkg/util/resourceversion"
Index ¶
Functions ¶
func CompareResourceVersion ¶
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
Source Files ¶
resourceversion.go
- Version
- v0.35.1
- Published
- Dec 4, 2025
- Platform
- darwin/amd64
- Imports
- 2 packages
- Last checked
- 11 minutes ago –
Tools for package owners.