Documentation
¶
Overview ¶
Package ast declares the types used to represent syntax trees for Netspoc files.
Sort list elements of AST before printing.
Index ¶
- func OrderElements(l []Element)
- type AggAuto
- type Area
- type Attribute
- type AutoElem
- type Base
- type Complement
- type Description
- type Element
- type File
- type Intersection
- type IntfAuto
- type IntfRef
- type NamedElem
- type NamedRef
- type NamedUnion
- type Network
- type Node
- type Protocol
- type Protocolgroup
- type Router
- type Rule
- type Service
- type SimpleAuto
- type TopBase
- type TopList
- type TopStruct
- type Toplevel
- type ToplevelWithAttr
- type TypedElt
- type User
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OrderElements ¶
func OrderElements(l []Element)
Types ¶
type AggAuto ¶
type AggAuto struct { SimpleAuto IPV6 bool Net string }
type Area ¶
type Area struct { TopStruct Border *NamedUnion InclusiveBorder *NamedUnion }
type Attribute ¶
type Attribute struct { Base Name string // Only one of those fields may be filled. ValueList []*Value ComplexValue []*Attribute }
func CreateAttr ¶
func CreateAttr1 ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
func (Base) PostComment ¶
func (Base) PreComment ¶
func (*Base) SetPostComment ¶
func (*Base) SetPreComment ¶
type Complement ¶
func (Complement) GetType ¶
func (a Complement) GetType() string
func (*Complement) Order ¶
func (a *Complement) Order()
func (Complement) String ¶
func (a Complement) String() string
type Description ¶
type Intersection ¶
func (Intersection) GetType ¶
func (a Intersection) GetType() string
func (*Intersection) Order ¶
func (a *Intersection) Order()
func (Intersection) String ¶
func (a Intersection) String() string
type IntfAuto ¶
type IntfAuto struct { SimpleAuto Managed bool Selector string }
type NamedUnion ¶
func (*NamedUnion) Order ¶
func (a *NamedUnion) Order()
type Protocolgroup ¶
func (*Protocolgroup) Order ¶
func (a *Protocolgroup) Order()
type Rule ¶
type Rule struct { Base Deny bool Src *NamedUnion Dst *NamedUnion Prt *Attribute Log *Attribute }
type SimpleAuto ¶
func (SimpleAuto) GetElements ¶
func (a SimpleAuto) GetElements() []Element
func (*SimpleAuto) Order ¶
func (a *SimpleAuto) Order()
func (*SimpleAuto) SetElements ¶
func (a *SimpleAuto) SetElements(l []Element)
func (SimpleAuto) String ¶
func (a SimpleAuto) String() string
type TopBase ¶
type TopBase struct { Base Name string Description *Description // contains filtered or unexported fields }
func (TopBase) GetDescription ¶
func (a TopBase) GetDescription() *Description
func (*TopBase) SetFileName ¶
type ToplevelWithAttr ¶
Click to show internal directories.
Click to hide internal directories.