simple

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessListService

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

AccessListService is a simple access list backend service for use specifically by the cache.

func NewAccessListService

func NewAccessListService(backend backend.Backend) (*AccessListService, error)

NewAccessListService creates a new AccessListService. This is a simple, cache focused backend service that doesn't perform any of the validation that the main backend service does.

func (*AccessListService) CreateAccessListReview

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

CreateAccessListReview will create a new review for an access list.

func (*AccessListService) DeleteAccessList

func (a *AccessListService) DeleteAccessList(ctx context.Context, name string) error

DeleteAccessList removes the specified access list resource.

func (*AccessListService) DeleteAccessListMember

func (a *AccessListService) DeleteAccessListMember(ctx context.Context, accessList string, memberName string) error

DeleteAccessListMember hard deletes the specified access list member resource.

func (*AccessListService) DeleteAccessListReview

func (a *AccessListService) DeleteAccessListReview(ctx context.Context, accessListName, reviewName string) error

DeleteAccessListReview will delete an access list review from the backend.

func (*AccessListService) DeleteAllAccessListMembers

func (a *AccessListService) DeleteAllAccessListMembers(ctx context.Context) error

DeleteAllAccessListMembers hard deletes all access list members.

func (*AccessListService) DeleteAllAccessListReviews

func (a *AccessListService) DeleteAllAccessListReviews(ctx context.Context) error

DeleteAllAccessListReviews will delete all access list reviews from the backend.

func (*AccessListService) DeleteAllAccessLists

func (a *AccessListService) DeleteAllAccessLists(ctx context.Context) error

DeleteAllAccessLists removes all access lists.

func (*AccessListService) GetAccessList

func (a *AccessListService) GetAccessList(ctx context.Context, name string) (*accesslist.AccessList, error)

GetAccessList returns the specified access list resource.

func (*AccessListService) GetAccessListMember

func (a *AccessListService) GetAccessListMember(ctx context.Context, accessListName string, memberName string) (*accesslist.AccessListMember, error)

GetAccessListMember returns the specified access list member resource.

func (*AccessListService) GetAccessLists

func (a *AccessListService) GetAccessLists(ctx context.Context) ([]*accesslist.AccessList, error)

GetAccessLists returns a list of all access lists.

func (*AccessListService) ListAccessListMembers

func (a *AccessListService) ListAccessListMembers(ctx context.Context, accessListName string, pageSize int, nextToken string) ([]*accesslist.AccessListMember, string, error)

ListAccessListMembers returns a paginated list of all access list members.

func (*AccessListService) ListAccessListReviews

func (a *AccessListService) 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 (*AccessListService) ListAccessLists

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

ListAccessLists returns a paginated list of access lists.

func (*AccessListService) UpsertAccessList

func (a *AccessListService) UpsertAccessList(ctx context.Context, accessList *accesslist.AccessList) (*accesslist.AccessList, error)

UpsertAccessList creates or updates an access list resource.

func (*AccessListService) UpsertAccessListMember

func (a *AccessListService) UpsertAccessListMember(ctx context.Context, member *accesslist.AccessListMember) (*accesslist.AccessListMember, error)

UpsertAccessListMember creates or updates an access list member resource.

Jump to

Keyboard shortcuts

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