Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidToken = errors.New("invalid page token") ErrOutOfRange = errors.New("out of range") )
Functions ¶
func ListNodeStatuses ¶
func ListNodeStatuses(pageSize int, pageToken string, listFn ListNodeStatusFn) (stats []types.NodeStatus, nextPageToken string, total int, err error)
Types ¶
type ListNodeStatusFn ¶
type ListNodeStatusFn = func(start, end int) (stats []types.NodeStatus, total int, err error)
if start is out of range, must return ErrOutOfRange
type PageToken ¶
PageToken is simple internal representation for coordination requests and responses in a paginated API It is inspired by the Google API Design patterns https://cloud.google.com/apis/design/design_patterns#list_pagination https://google.aip.dev/158
func NewPageToken ¶
b64enc must be the base64 encoded token string, corresponding to [PageToken.Encode()]
Click to show internal directories.
Click to hide internal directories.