Documentation
¶
Index ¶
- Constants
- type Action
- type Control
- type Network
- type Policy
- func (p Policy) Eval(entity string) (Action, bool, error)
- func (p Policy) IsEmpty() bool
- func (p Policy) IsValid() bool
- func (p *Policy) MarshalJSON() ([]byte, error)
- func (p Policy) MarshalZerologArray(a *zerolog.Array)
- func (p Policy) String() string
- func (p *Policy) UnmarshalJSON(data []byte) error
Constants ¶
View Source
const Wildcard = "*"
Wildcard is the ACL entity that matches every source address.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action int
func ParseAction ¶
func (Action) MarshalJSON ¶
func (*Action) UnmarshalJSON ¶
type Control ¶
func ParseControl ¶
func (*Control) MarshalJSON ¶
func (*Control) MarshalZerologObject ¶
func (*Control) UnmarshalJSON ¶
type Policy ¶
type Policy []Control
func MustParsePolicy ¶
func ParsePolicy ¶
func (*Policy) MarshalJSON ¶
func (Policy) MarshalZerologArray ¶
func (*Policy) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.