aclservice

package
v0.3.11-rc4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

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