accesslist

package
v0.0.0-...-a1881e9 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is an access list client that conforms to the following lib/services interfaces: * services.AccessLists

func NewClient

func NewClient(grpcClient accesslistv1.AccessListServiceClient) *Client

NewClient creates a new Access List client.

func (*Client) AccessRequestPromote

AccessRequestPromote promotes an access request to an access list.

func (*Client) CountAccessListMembers

func (c *Client) CountAccessListMembers(ctx context.Context, accessListName string) (users uint32, lists uint32, err error)

CountAccessListMembers will count all access list members.

func (*Client) CreateAccessListReview

func (c *Client) CreateAccessListReview(ctx context.Context, review *accesslist.Review) (*accesslist.Review, time.Time, error)

CreateAccessListReview will create a new review for an access list.

func (*Client) DeleteAccessList

func (c *Client) DeleteAccessList(ctx context.Context, name string) error

DeleteAccessList removes the specified access list resource.

func (*Client) DeleteAccessListMember

func (c *Client) DeleteAccessListMember(ctx context.Context, accessList string, memberName string) error

DeleteAccessListMember hard deletes the specified access list member resource.

func (*Client) DeleteAccessListReview

func (c *Client) DeleteAccessListReview(ctx context.Context, accessListName, reviewName string) error

DeleteAccessListReview will delete an access list review from the backend.

func (*Client) DeleteAllAccessListMembers

func (c *Client) DeleteAllAccessListMembers(ctx context.Context) error

DeleteAllAccessListMembers hard deletes all access list members.

func (*Client) DeleteAllAccessListMembersForAccessList

func (c *Client) DeleteAllAccessListMembersForAccessList(ctx context.Context, accessList string) error

DeleteAllAccessListMembersForAccessList hard deletes all access list members for an access list.

func (*Client) DeleteAllAccessListReviews

func (c *Client) DeleteAllAccessListReviews(ctx context.Context) error

DeleteAllAccessListReviews will delete all access list reviews from all access lists.

func (*Client) DeleteAllAccessLists

func (c *Client) DeleteAllAccessLists(ctx context.Context) error

DeleteAllAccessLists removes all access lists.

func (*Client) GetAccessList

func (c *Client) GetAccessList(ctx context.Context, name string) (*accesslist.AccessList, error)

GetAccessList returns the specified access list resource.

func (*Client) GetAccessListMember

func (c *Client) GetAccessListMember(ctx context.Context, accessList string, memberName string) (*accesslist.AccessListMember, error)

GetAccessListMember returns the specified access list member resource.

func (*Client) GetAccessListOwners

func (c *Client) GetAccessListOwners(ctx context.Context, accessListName string) ([]*accesslist.Owner, error)

GetAccessListOwners returns a list of all owners in an Access List, including those inherited from nested Access Lists.

Returned Owners are not validated for ownership requirements – use `IsAccessListOwner` for validation.

func (*Client) GetAccessLists

func (c *Client) GetAccessLists(ctx context.Context) ([]*accesslist.AccessList, error)

GetAccessLists returns a list of all access lists.

func (*Client) GetAccessListsToReview

func (c *Client) GetAccessListsToReview(ctx context.Context) ([]*accesslist.AccessList, error)

GetAccessListsToReview returns access lists that the user needs to review.

func (*Client) GetInheritedGrants

func (c *Client) GetInheritedGrants(ctx context.Context, accessListID string) (*accesslist.Grants, error)

GetInheritedGrants returns grants inherited by access list accessListID from parent access lists.

func (*Client) GetSuggestedAccessLists

func (c *Client) GetSuggestedAccessLists(ctx context.Context, accessRequestID string) ([]*accesslist.AccessList, error)

GetSuggestedAccessLists returns a list of access lists that are suggested for a given request.

func (*Client) ListAccessListMembers

func (c *Client) ListAccessListMembers(ctx context.Context, accessList string, pageSize int, pageToken string) (members []*accesslist.AccessListMember, nextToken string, err error)

ListAccessListMembers returns a paginated list of all access list members for an access list.

func (*Client) ListAccessListReviews

func (c *Client) ListAccessListReviews(ctx context.Context, accessList string, pageSize int, pageToken string) (reviews []*accesslist.Review, nextToken string, err error)

ListAccessListReviews will list access list reviews for a particular access list.

func (*Client) ListAccessLists

func (c *Client) ListAccessLists(ctx context.Context, pageSize int, nextToken string) ([]*accesslist.AccessList, string, error)

ListAccessLists returns a paginated list of access lists.

func (*Client) ListAllAccessListMembers

func (c *Client) ListAllAccessListMembers(ctx context.Context, pageSize int, pageToken string) (members []*accesslist.AccessListMember, nextToken string, err error)

ListAllAccessListMembers returns a paginated list of all access list members for all access lists.

func (*Client) ListAllAccessListReviews

func (c *Client) ListAllAccessListReviews(ctx context.Context, pageSize int, pageToken string) (reviews []*accesslist.Review, nextToken string, err error)

ListAllAccessListReviews will list access list reviews for all access lists. Only to be used by the cache.

func (*Client) UpdateAccessList

func (c *Client) UpdateAccessList(ctx context.Context, accessList *accesslist.AccessList) (*accesslist.AccessList, error)

UpdateAccessList updates an access list resource.

func (*Client) UpdateAccessListMember

func (c *Client) UpdateAccessListMember(ctx context.Context, member *accesslist.AccessListMember) (*accesslist.AccessListMember, error)

UpdateAccessListMember updates an access list member resource using a conditional update.

func (*Client) UpsertAccessList

func (c *Client) UpsertAccessList(ctx context.Context, accessList *accesslist.AccessList) (*accesslist.AccessList, error)

UpsertAccessList creates or updates an access list resource.

func (*Client) UpsertAccessListMember

func (c *Client) UpsertAccessListMember(ctx context.Context, member *accesslist.AccessListMember) (*accesslist.AccessListMember, error)

UpsertAccessListMember creates or updates an access list member resource.

func (*Client) UpsertAccessListWithMembers

func (c *Client) UpsertAccessListWithMembers(ctx context.Context, list *accesslist.AccessList, members []*accesslist.AccessListMember) (*accesslist.AccessList, []*accesslist.AccessListMember, error)

UpsertAccessListWithMembers creates or updates an access list resource and its members.

Jump to

Keyboard shortcuts

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