Documentation ¶
Index ¶
- type Tun
- type TunRouteEvent
- type Tuns
- func (tuns *Tuns) AddRoute(alias string, cidr string) error
- func (tuns *Tuns) Create(name string, isLoopback bool) (Tun, error)
- func (tuns *Tuns) DeleteRoute(alias string, cidr string) error
- func (tuns *Tuns) Destroy(alias string) error
- func (tuns *Tuns) GetOne(alias string) *Tun
- func (tuns *Tuns) Len() int
- func (tuns *Tuns) List() map[string]*Tun
- func (tuns *Tuns) Rename(oldAlias, newAlias string) error
- func (tuns *Tuns) Restore() error
- func (tuns *Tuns) RouteOverlaps(cidr string) *Tun
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tun ¶
type TunRouteEvent ¶
type TunRouteEvent struct {
// contains filtered or unexported fields
}
func (*TunRouteEvent) Proto ¶
func (event *TunRouteEvent) Proto() *pb.TunRoute
type Tuns ¶
type Tuns struct {
// contains filtered or unexported fields
}
func (*Tuns) RouteOverlaps ¶
Click to show internal directories.
Click to hide internal directories.