permittable

package
v0.0.0-...-caf43a7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func New

func New() *Builder

func (*Builder) Build

func (b *Builder) Build() (*Permittable, error)

func (*Builder) ID

func (b *Builder) ID(id ID) *Builder

func (*Builder) MustBuild

func (b *Builder) MustBuild() *Permittable

func (*Builder) NewID

func (b *Builder) NewID() *Builder

func (*Builder) RoleIDs

func (b *Builder) RoleIDs(roleIDs []accountdomain.RoleID) *Builder

func (*Builder) UserID

func (b *Builder) UserID(userID user.ID) *Builder

type ID

type List

type List []*Permittable

type Permittable

type Permittable struct {
	// contains filtered or unexported fields
}

func (*Permittable) EditRoleIDs

func (p *Permittable) EditRoleIDs(roleIDs accountdomain.RoleIDList)

func (*Permittable) ID

func (p *Permittable) ID() ID

func (*Permittable) RoleIDs

func (p *Permittable) RoleIDs() []accountdomain.RoleID

func (*Permittable) UserID

func (p *Permittable) UserID() user.ID

Jump to

Keyboard shortcuts

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