Documentation ¶
Index ¶
- type Permission
- func (p Permission) Disabled(perm string) bool
- func (p Permission) Enabled(perm string) bool
- func (p Permission) MarshalJSON() ([]byte, error)
- func (p *Permission) Set(perm string, enabled bool)
- func (p Permission) String() string
- func (p Permission) UnSet(perm string)
- func (p *Permission) UnmarshalJSON(b []byte) error
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
Click to show internal directories.
Click to hide internal directories.