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 ¶
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