Documentation
¶
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
Click to show internal directories.
Click to hide internal directories.