Documentation ¶
Index ¶
- func MarshalScope(scope aclcore.Scope) (map[string]types.AttributeValue, error)
- func MarshalScopeId(id aclcore.ScopeId) map[string]types.AttributeValue
- func ScopeRecordPk(user usermodel.UserId, scopeType string, owner ownermodel.Owner, id string) appdynamodb.TablePk
- func UnmarshalScope(attributes map[string]types.AttributeValue) (*aclcore.Scope, error)
- type GrantRepository
- type Repository
- func (r *Repository) DeleteScopes(ids ...aclcore.ScopeId) error
- func (r *Repository) FindScopesById(ids ...aclcore.ScopeId) ([]*aclcore.Scope, error)
- func (r *Repository) ListScopesByOwner(ctx context.Context, owner ownermodel.Owner, scopeTypes ...aclcore.ScopeType) ([]*aclcore.Scope, error)
- func (r *Repository) ListScopesByOwners(ctx context.Context, owners []ownermodel.Owner, ...) ([]*aclcore.Scope, error)
- func (r *Repository) ListScopesByUser(ctx context.Context, email usermodel.UserId, scopeTypes ...aclcore.ScopeType) ([]*aclcore.Scope, error)
- func (r *Repository) SaveIfNewScope(scope aclcore.Scope) error
- type ScopeRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalScope ¶
func MarshalScopeId ¶
func MarshalScopeId(id aclcore.ScopeId) map[string]types.AttributeValue
func ScopeRecordPk ¶
func ScopeRecordPk(user usermodel.UserId, scopeType string, owner ownermodel.Owner, id string) appdynamodb.TablePk
func UnmarshalScope ¶
Types ¶
type GrantRepository ¶
type GrantRepository interface { aclcore.ScopeReadRepository aclcore.ScopeWriter aclcore.IdentityQueriesScopeRepository aclcore.ScopesReader // TODO remove: duplicates aclcore.ScopeReadRepository aclcore.ReverseScopesReader // TODO remove: duplicates aclcore.ScopeReadRepository }
func Must ¶
func Must(repository GrantRepository, err error) GrantRepository
type Repository ¶ added in v1.5.49
type Repository struct {
// contains filtered or unexported fields
}
func (*Repository) DeleteScopes ¶ added in v1.5.49
func (r *Repository) DeleteScopes(ids ...aclcore.ScopeId) error
func (*Repository) FindScopesById ¶ added in v1.5.49
func (*Repository) ListScopesByOwner ¶ added in v1.5.49
func (r *Repository) ListScopesByOwner(ctx context.Context, owner ownermodel.Owner, scopeTypes ...aclcore.ScopeType) ([]*aclcore.Scope, error)
func (*Repository) ListScopesByOwners ¶ added in v1.5.49
func (r *Repository) ListScopesByOwners(ctx context.Context, owners []ownermodel.Owner, scopeTypes ...aclcore.ScopeType) ([]*aclcore.Scope, error)
func (*Repository) ListScopesByUser ¶ added in v1.5.49
func (*Repository) SaveIfNewScope ¶ added in v1.5.49
func (r *Repository) SaveIfNewScope(scope aclcore.Scope) error
Click to show internal directories.
Click to hide internal directories.