Documentation ¶
Overview ¶
Package dictionary parses FreeRADIUS dictionary files.
API is currently unstable.
Index ¶
- func SortAttributes(attrs []*Attribute)
- func SortValues(values []*Value)
- func SortVendors(vendors []*Vendor)
- type Attribute
- type AttributeType
- type BeginVendorIncludeError
- type Dictionary
- type DuplicateAttributeError
- type DuplicateAttributeFlagError
- type DuplicateVendorError
- type File
- type FileSystemOpener
- type InvalidAttributeEncryptTypeError
- type InvalidEndVendorError
- type InvalidVendorFormatError
- type NestedVendorBlockError
- type Opener
- type ParseError
- type Parser
- type RecursiveIncludeError
- type UnclosedVendorBlockError
- type UnknownAttributeFlagError
- type UnknownAttributeTypeError
- type UnknownLineError
- type UnknownVendorError
- type UnmatchedEndVendorError
- type Value
- type Vendor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortAttributes ¶
func SortAttributes(attrs []*Attribute)
func SortValues ¶
func SortValues(values []*Value)
func SortVendors ¶
func SortVendors(vendors []*Vendor)
Types ¶
type AttributeType ¶
type AttributeType int
const ( AttributeString AttributeType = iota + 1 AttributeOctets AttributeIPAddr AttributeDate AttributeInteger AttributeIPv6Addr AttributeIPv6Prefix AttributeIFID AttributeInteger64 AttributeVSA )
func (AttributeType) String ¶
func (t AttributeType) String() string
type BeginVendorIncludeError ¶
type BeginVendorIncludeError struct { }
func (*BeginVendorIncludeError) Error ¶
func (e *BeginVendorIncludeError) Error() string
type Dictionary ¶
func (*Dictionary) AttributeByName ¶
func (d *Dictionary) AttributeByName(name string) *Attribute
func (*Dictionary) VendorByName ¶
func (d *Dictionary) VendorByName(name string) *Vendor
type DuplicateAttributeError ¶
type DuplicateAttributeError struct {
Attribute *Attribute
}
func (*DuplicateAttributeError) Error ¶
func (e *DuplicateAttributeError) Error() string
type DuplicateAttributeFlagError ¶
type DuplicateAttributeFlagError struct {
Flag string
}
func (*DuplicateAttributeFlagError) Error ¶
func (e *DuplicateAttributeFlagError) Error() string
type DuplicateVendorError ¶
type DuplicateVendorError struct {
Vendor *Vendor
}
func (*DuplicateVendorError) Error ¶
func (e *DuplicateVendorError) Error() string
type FileSystemOpener ¶
type FileSystemOpener struct { }
type InvalidAttributeEncryptTypeError ¶
type InvalidAttributeEncryptTypeError struct {
Type string
}
func (*InvalidAttributeEncryptTypeError) Error ¶
func (e *InvalidAttributeEncryptTypeError) Error() string
type InvalidEndVendorError ¶
type InvalidEndVendorError struct {
Vendor string
}
func (*InvalidEndVendorError) Error ¶
func (e *InvalidEndVendorError) Error() string
type InvalidVendorFormatError ¶
type InvalidVendorFormatError struct {
Format string
}
func (*InvalidVendorFormatError) Error ¶
func (e *InvalidVendorFormatError) Error() string
type NestedVendorBlockError ¶
type NestedVendorBlockError struct { }
func (*NestedVendorBlockError) Error ¶
func (e *NestedVendorBlockError) Error() string
type ParseError ¶
func (*ParseError) Error ¶
func (e *ParseError) Error() string
type RecursiveIncludeError ¶
type RecursiveIncludeError struct {
Filename string
}
func (*RecursiveIncludeError) Error ¶
func (e *RecursiveIncludeError) Error() string
type UnclosedVendorBlockError ¶
type UnclosedVendorBlockError struct { }
func (*UnclosedVendorBlockError) Error ¶
func (e *UnclosedVendorBlockError) Error() string
type UnknownAttributeFlagError ¶
type UnknownAttributeFlagError struct {
Flag string
}
func (*UnknownAttributeFlagError) Error ¶
func (e *UnknownAttributeFlagError) Error() string
type UnknownAttributeTypeError ¶
type UnknownAttributeTypeError struct {
Type string
}
func (*UnknownAttributeTypeError) Error ¶
func (e *UnknownAttributeTypeError) Error() string
type UnknownLineError ¶
type UnknownLineError struct {
Line string
}
func (*UnknownLineError) Error ¶
func (e *UnknownLineError) Error() string
type UnknownVendorError ¶
type UnknownVendorError struct {
Vendor string
}
func (*UnknownVendorError) Error ¶
func (e *UnknownVendorError) Error() string
type UnmatchedEndVendorError ¶
type UnmatchedEndVendorError struct { }
func (*UnmatchedEndVendorError) Error ¶
func (e *UnmatchedEndVendorError) Error() string
Click to show internal directories.
Click to hide internal directories.