aclservice

package
v1.0.38 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: 16 Imported by: 0

Documentation

Overview

TODO: This library is imported from ror, should determine if its a public library or not

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAccessByContextScopeSubject

func CheckAccessByContextScopeSubject(ctx context.Context, scope any, subject any) aclmodels.AclV2ListItemAccess

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

func CheckAccessByOwnerref deprecated

Deprecated: use CheckAccessByRorOwnerref Gets ACL2 Access model for user/scope/subject returns aclmodels.AclV2ListItemAccess

func Delete

func Delete(ctx context.Context, aclId string, identity *identitymodels.Identity) (bool, *aclmodels.AclV2ListItem, error)

func GetById

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

func MigrateAcl1toAcl2

func MigrateAcl1toAcl2(ctx context.Context) error

TODO: remove when migration is complete

func Update

func Update(ctx context.Context, aclId string, aclModel *aclmodels.AclV2ListItem, identity *identitymodels.Identity) (*aclmodels.AclV2ListItem, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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