aclrepository

package
v1.0.41 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

TODO: This library is imported from ror, should determine if its a public library or not Package provides functions to do crud operations on acl as well as verification fo access

Index

Constants

View Source
const (
	ClusterCollectionName = "clusters"
	AclCollectionName     = "acl"
)
View Source
const (
	CollectionName = "clusters"
)

Variables

This section is empty.

Functions

func CheckAcl2ByIdentityQuery

CheckAcl2ByIdentityQuery Gets ACL2 Access model for identity/scope/subject returns aclmodels.AclV2ListItemAccess

func Delete

func Delete(ctx context.Context, id string) (bool, *aclmodels.AclV2ListItem, error)

func GetACL2ByIdentityQuery

func GetACL2ByIdentityQuery(ctx context.Context, aclQuery aclmodels.AclV2QueryAccessScope) aclmodels.AclV2ListItems

GetACL2ByIdentityQuery Gets ACL2 Access model for identity/scope returns aclmodels.AclV2ListItems

func GetAllACL1

func GetAllACL1(ctx context.Context) ([]aclmodels.AclV1ListItem, error)

func GetAllACL2

func GetAllACL2(ctx context.Context) ([]aclmodels.AclV2ListItem, error)

GetAllACL2 Gets all ACL2 items returns []aclmodels.AclV2ListItem

func GetByFilter

func GetByFilter(ctx context.Context, filter *apicontracts.Filter) ([]aclmodels.AclV2ListItem, int, error)

func GetById

func GetById(ctx context.Context, Id string) (*aclmodels.AclV2ListItem, error)

func MigrateAcl1DeleteRemovedAcl1

func MigrateAcl1DeleteRemovedAcl1(ctx context.Context, aclListV1 []aclmodels.AclV1ListItem, aclListV2 []aclmodels.AclV2ListItem)

TODO: remove when migration is complete

func MigrateAcl1UpdateCreatreAcl2

func MigrateAcl1UpdateCreatreAcl2(ctx context.Context, aclListV1 []aclmodels.AclV1ListItem, aclListV2 []aclmodels.AclV2ListItem) error

TODO: remove when migration is complete

Types

This section is empty.

Jump to

Keyboard shortcuts

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