clustergroupmember

package
v1.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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) Destroy added in v1.12.0

func (r *REST) Destroy()

func (*REST) Get

func (r *REST) Get(ctx context.Context, name string, options runtime.Object) (runtime.Object, error)

func (*REST) NamespaceScoped

func (r *REST) NamespaceScoped() bool

func (*REST) New

func (r *REST) New() runtime.Object

func (*REST) NewGetOptions added in v1.6.0

func (r *REST) NewGetOptions() (runtime.Object, bool, string)

NewGetOptions returns the default options for Get, so options object is never nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL