(namespace string, group string)
| 14 | func (gi PaginatedGroupStates) Len() int { return len(gi) } |
| 15 | |
| 16 | func GetRuleGroupNextToken(namespace string, group string) string { |
| 17 | h := sha1.New() |
| 18 | h.Write([]byte(namespace + ";" + group)) |
| 19 | return hex.EncodeToString(h.Sum(nil)) |
| 20 | } |
| 21 | |
| 22 | // generatePage function takes in a sorted list of groups and returns a page of groups and the next token which can be |
| 23 | // used to in subsequent requests. The # of groups per page is at most equal to maxRuleGroups. If the total passed in |