Documentation ¶
Index ¶
- type EmptyClaims
- type PermStorage
- func (p *PermStorage) Clear(perm string)
- func (p *PermStorage) Dump() []string
- func (p *PermStorage) Filter(match []string) *PermStorage
- func (p *PermStorage) Has(perm string) bool
- func (p *PermStorage) MarshalJSON() ([]byte, error)
- func (p *PermStorage) MarshalYAML() (interface{}, error)
- func (p *PermStorage) OneOf(o *PermStorage) bool
- func (p *PermStorage) Search(v string) []string
- func (p *PermStorage) Set(perm string)
- func (p *PermStorage) UnmarshalJSON(bytes []byte) error
- func (p *PermStorage) UnmarshalYAML(value *yaml.Node) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmptyClaims ¶ added in v0.2.5
type EmptyClaims struct{}
EmptyClaims contains no claims
func (EmptyClaims) Type ¶ added in v0.2.5
func (e EmptyClaims) Type() string
func (EmptyClaims) Valid ¶ added in v0.2.5
func (e EmptyClaims) Valid() error
type PermStorage ¶
type PermStorage struct {
// contains filtered or unexported fields
}
func NewPermStorage ¶
func NewPermStorage() *PermStorage
func ParsePermStorage ¶ added in v0.2.3
func ParsePermStorage(perms string) *PermStorage
func (*PermStorage) Clear ¶
func (p *PermStorage) Clear(perm string)
func (*PermStorage) Dump ¶
func (p *PermStorage) Dump() []string
func (*PermStorage) Filter ¶ added in v0.2.4
func (p *PermStorage) Filter(match []string) *PermStorage
func (*PermStorage) Has ¶
func (p *PermStorage) Has(perm string) bool
func (*PermStorage) MarshalJSON ¶
func (p *PermStorage) MarshalJSON() ([]byte, error)
func (*PermStorage) MarshalYAML ¶
func (p *PermStorage) MarshalYAML() (interface{}, error)
func (*PermStorage) OneOf ¶
func (p *PermStorage) OneOf(o *PermStorage) bool
func (*PermStorage) Search ¶
func (p *PermStorage) Search(v string) []string
func (*PermStorage) Set ¶
func (p *PermStorage) Set(perm string)
func (*PermStorage) UnmarshalJSON ¶
func (p *PermStorage) UnmarshalJSON(bytes []byte) error
func (*PermStorage) UnmarshalYAML ¶
func (p *PermStorage) UnmarshalYAML(value *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.