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
- func CheckAcl2ByCluster(ctx context.Context, aclQuery aclmodels.AclV2QueryAccessScopeSubject) []aclmodels.AclV2ListItem
- func CheckAcl2ByIdentityQuery(ctx context.Context, aclQuery aclmodels.AclV2QueryAccessScopeSubject) aclmodels.AclV2ListItemAccess
- func Create(ctx context.Context, aclModel *aclmodels.AclV2ListItem) (*aclmodels.AclV2ListItem, error)
- func Delete(ctx context.Context, id string) (bool, *aclmodels.AclV2ListItem, error)
- func GetACL2ByIdentityQuery(ctx context.Context, aclQuery aclmodels.AclV2QueryAccessScope) aclmodels.AclV2ListItems
- func GetAllACL1(ctx context.Context) ([]aclmodels.AclV1ListItem, error)
- func GetAllACL2(ctx context.Context) ([]aclmodels.AclV2ListItem, error)
- func GetByFilter(ctx context.Context, filter *apicontracts.Filter) ([]aclmodels.AclV2ListItem, int, error)
- func GetById(ctx context.Context, Id string) (*aclmodels.AclV2ListItem, error)
- func MigrateAcl1DeleteRemovedAcl1(ctx context.Context, aclListV1 []aclmodels.AclV1ListItem, ...)
- func MigrateAcl1UpdateCreatreAcl2(ctx context.Context, aclListV1 []aclmodels.AclV1ListItem, ...) error
- func Update(ctx context.Context, aclId string, aclModel *aclmodels.AclV2ListItem) (*aclmodels.AclV2ListItem, *aclmodels.AclV2ListItem, error)
Constants ¶
View Source
const ( ClusterCollectionName = "clusters" AclCollectionName = "acl" )
View Source
const (
CollectionName = "clusters"
)
Variables ¶
This section is empty.
Functions ¶
func CheckAcl2ByCluster ¶
func CheckAcl2ByCluster(ctx context.Context, aclQuery aclmodels.AclV2QueryAccessScopeSubject) []aclmodels.AclV2ListItem
func CheckAcl2ByIdentityQuery ¶
func CheckAcl2ByIdentityQuery(ctx context.Context, aclQuery aclmodels.AclV2QueryAccessScopeSubject) aclmodels.AclV2ListItemAccess
CheckAcl2ByIdentityQuery Gets ACL2 Access model for identity/scope/subject returns aclmodels.AclV2ListItemAccess
func Create ¶
func Create(ctx context.Context, aclModel *aclmodels.AclV2ListItem) (*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 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
func Update ¶
func Update(ctx context.Context, aclId string, aclModel *aclmodels.AclV2ListItem) (*aclmodels.AclV2ListItem, *aclmodels.AclV2ListItem, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.