Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPaginatedMembers ¶ added in v1.14.0
func GetPaginatedMembers(querier GroupMembershipQuerier, name string, options runtime.Object) (members []controlplane.GroupMember, ipNets []controlplane.IPNet, totalMembers, totalPages, currentPage int64, err error)
func PaginateMemberList ¶ added in v1.14.0
func PaginateMemberList(effectiveMembers *[]controlplane.GroupMember, pageInfo *controlplane.PaginationGetOptions) (int64, int64, error)
PaginateMemberList returns paginated results if meaningful options are provided. Options should never be nil. Paginated results are continuous only when there is no member change across multiple calls. Pagination is not enabled if either page number or limit = 0, in which the full member list is returned. An error is returned for invalid options, and an empty list is returned for a page number out of the pages range.
Types ¶
type GroupMembershipQuerier ¶ added in v1.14.0
type GroupMembershipQuerier interface {
GetGroupMembers(name string) (controlplane.GroupMemberSet, []controlplane.IPBlock, error)
}
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
func NewREST ¶
func NewREST(querier GroupMembershipQuerier) *REST
NewREST returns a REST object that will work against API services.
func (*REST) NamespaceScoped ¶
Click to show internal directories.
Click to hide internal directories.