Documentation
¶
Index ¶
Constants ¶
View Source
const ( RTF_PROTO1 = '1' RTF_PROTO2 = '2' RTF_PROTO3 = '3' RTF_BLACKHOLE = 'B' RTF_BROADCAST = 'b' RTF_CLONING = 'C' RTF_PRCLONING = 'c' RTF_DYNAMIC = 'D' RTF_GATEWAY = 'G' RTF_HOST = 'H' RTF_IFSCOPE = 'I' RTF_IFREF = 'i' RTF_LLINFO = 'L' RTF_MODIFIED = 'M' RTF_MULTICAST = 'm' RTF_REJECT = 'R' RTF_ROUTER = 'r' RTF_STATIC = 'S' RTF_UP = 'U' RTF_WASCLONED = 'W' RTF_XRESOLVE = 'X' RTF_PROXY = 'Y' )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BSDRouteWrapper ¶
type BSDRouteWrapper struct {
// contains filtered or unexported fields
}
func NewBSDRouteWrapper ¶
func NewBSDRouteWrapper(netstatCommand string, routeCommand string) (*BSDRouteWrapper, error)
func (*BSDRouteWrapper) AddRoute ¶
func (wrapper *BSDRouteWrapper) AddRoute(route Route) error
func (*BSDRouteWrapper) DefaultRoutes ¶
func (wrapper *BSDRouteWrapper) DefaultRoutes() ([]Route, error)
func (*BSDRouteWrapper) GetInterface ¶
func (wrapper *BSDRouteWrapper) GetInterface(name string) (*net.Interface, error)
func (*BSDRouteWrapper) Routes ¶
func (wrapper *BSDRouteWrapper) Routes() ([]Route, error)
type CommandExecError ¶
func (*CommandExecError) Error ¶
func (err *CommandExecError) Error() (retval string)
type CommandSpec ¶
func (CommandSpec) Clone ¶
func (cmd CommandSpec) Clone() CommandSpec
type LinuxRouteWrapper ¶
type LinuxRouteWrapper struct {
// contains filtered or unexported fields
}
func NewLinuxRouteWrapper ¶
func NewLinuxRouteWrapper(ipCommand string) (*LinuxRouteWrapper, error)
func (*LinuxRouteWrapper) AddRoute ¶
func (wrapper *LinuxRouteWrapper) AddRoute(route Route) error
func (*LinuxRouteWrapper) DefaultRoutes ¶
func (wrapper *LinuxRouteWrapper) DefaultRoutes() ([]Route, error)
func (*LinuxRouteWrapper) GetInterface ¶
func (wrapper *LinuxRouteWrapper) GetInterface(name string) (*net.Interface, error)
func (*LinuxRouteWrapper) Routes ¶
func (wrapper *LinuxRouteWrapper) Routes() ([]Route, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.