Documentation
¶
Index ¶
- Variables
- type Conf
- func (m *Conf) Add(name, addr string, aliases []string) (Host, error, bool)
- func (m *Conf) GetByAddress(addr string) (Host, error)
- func (m *Conf) GetByAlias(alias string) (Host, error)
- func (m *Conf) GetByHostname(name string) (Host, error)
- func (m *Conf) Len() int
- func (m *Conf) Remove(name string) (Host, bool)
- func (m *Conf) String() string
- type Host
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadHWAddrFormat error = errors.New("Malformed hardware address address") ErrBadIPFormat error = errors.New("Malformed IP address") ErrBadEntryFormat error = errors.New("Malformed entry") ErrMissingHostname error = errors.New("Missing hostname") ErrDuplicate error = errors.New("Duplicated entry") ErrNotFoundHostname error = errors.New("Hostname not found in the hostsfile") ErrNotFoundAddress error = errors.New("Address not found in the hostsfile") )
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct {
// contains filtered or unexported fields
}
Conf represents the configured Bindings
Click to show internal directories.
Click to hide internal directories.