permissions

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Permission

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

func (Permission) Disabled

func (p Permission) Disabled(perm string) bool

func (Permission) Enabled

func (p Permission) Enabled(perm string) bool

func (Permission) MarshalJSON

func (p Permission) MarshalJSON() ([]byte, error)

func (*Permission) Set

func (p *Permission) Set(perm string, enabled bool)

func (Permission) String

func (p Permission) String() string

func (Permission) UnSet

func (p Permission) UnSet(perm string)

func (*Permission) UnmarshalJSON

func (p *Permission) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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