Documentation ¶
Index ¶
- func CheckAccessByContextAclQuery(ctx context.Context, query aclmodels.AclV2QueryAccessScopeSubject) aclmodels.AclV2ListItemAccess
- func CheckAccessByContextScopeSubject(ctx context.Context, scope any, subject any) aclmodels.AclV2ListItemAccess
- func CheckAccessByOwnerref(ctx context.Context, ownerref apiresourcecontracts.ResourceOwnerReference) aclmodels.AclV2ListItemAccessdeprecated
- func CheckAccessByRorOwnerref(ctx context.Context, ownerref rortypes.RorResourceOwnerReference) aclmodels.AclV2ListItemAccess
- func Create(ctx context.Context, aclModel *aclmodels.AclV2ListItem, ...) (*aclmodels.AclV2ListItem, error)
- func Delete(ctx context.Context, aclId string, identity *identitymodels.Identity) (bool, *aclmodels.AclV2ListItem, error)
- func GetByFilter(ctx context.Context, filter *apicontracts.Filter) (*apicontracts.PaginatedResult[aclmodels.AclV2ListItem], error)
- func GetById(ctx context.Context, id string) (*aclmodels.AclV2ListItem, error)
- func MigrateAcl1toAcl2(ctx context.Context) error
- func Update(ctx context.Context, aclId string, aclModel *aclmodels.AclV2ListItem, ...) (*aclmodels.AclV2ListItem, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAccessByContextAclQuery ¶
func CheckAccessByContextAclQuery(ctx context.Context, query aclmodels.AclV2QueryAccessScopeSubject) aclmodels.AclV2ListItemAccess
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
func CheckAccessByOwnerref(ctx context.Context, ownerref apiresourcecontracts.ResourceOwnerReference) aclmodels.AclV2ListItemAccess
Deprecated: use CheckAccessByRorOwnerref Gets ACL2 Access model for user/scope/subject returns aclmodels.AclV2ListItemAccess
func CheckAccessByRorOwnerref ¶
func CheckAccessByRorOwnerref(ctx context.Context, ownerref rortypes.RorResourceOwnerReference) aclmodels.AclV2ListItemAccess
func Create ¶
func Create(ctx context.Context, aclModel *aclmodels.AclV2ListItem, identity *identitymodels.Identity) (*aclmodels.AclV2ListItem, error)
func Delete ¶
func Delete(ctx context.Context, aclId string, identity *identitymodels.Identity) (bool, *aclmodels.AclV2ListItem, error)
func GetByFilter ¶
func GetByFilter(ctx context.Context, filter *apicontracts.Filter) (*apicontracts.PaginatedResult[aclmodels.AclV2ListItem], error)
func MigrateAcl1toAcl2 ¶
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.
Click to show internal directories.
Click to hide internal directories.