Documentation
¶
Overview ¶
package columnset provides types to store columns that a given user has access to view
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnSet ¶
func NewColumnSet ¶
func NewColumnSet[T any](rSet *resourceset.ResourceSet, permissionChecker Enforcer, domainFromCtx DomainFromCtx, userFromCtx UserFromCtx) (ColumnSet, error)
type DomainFromCtx ¶
type DomainFromCtx func(context.Context) accesstypes.Domain
type Enforcer ¶
type Enforcer interface {
RequireResources(ctx context.Context, user accesstypes.User, domain accesstypes.Domain, perms accesstypes.Permission, resources ...accesstypes.Resource) error
}
type UserFromCtx ¶
type UserFromCtx func(context.Context) accesstypes.User
Click to show internal directories.
Click to hide internal directories.