var ErrInvalidStartRV … var ErrEmptyStartKey … var ErrGenericInvalidKey … var ErrUnrecognizedEncodedVersion … type continueToken … // DecodeContinue transforms an encoded predicate from into a versioned struct. // TODO: return a typed error that instructs clients that they must relist func DecodeContinue(continueValue, keyPrefix string) (fromKey string, rv int64, err error) { … } // EncodeContinue returns a string representing the encoded continuation of the current query. func EncodeContinue(key, keyPrefix string, resourceVersion int64) (string, error) { … } // PrepareContinueToken prepares optional // parameters for retrieving additional results for a paginated request. // // This function sets up parameters that a client can use to fetch the remaining results // from the server if they are available. func PrepareContinueToken(keyLastItem, keyPrefix string, resourceVersion int64, itemsCount int64, hasMoreItems bool, opts ListOptions) (string, *int64, error) { … }