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, pageTokenStr string, listFn ListNodeStatusFn) (stats []types.NodeStatus, nextPageToken string, total int, err error)
func NewPageToken ¶
b64enc must be the base64 encoded token string, corresponding to [pageToken.Encode()]
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
Click to show internal directories.
Click to hide internal directories.