Documentation ¶
Index ¶
- Variables
- type Config
- type Permissions
- type SwiftInterface
- func (a *SwiftInterface) AddRoute(route *netlink.Route) error
- func (a *SwiftInterface) GetAdapterIndex() (int, error)
- func (a *SwiftInterface) GetAdapterName() (string, error)
- func (a *SwiftInterface) GetFD() *os.File
- func (a *SwiftInterface) SetDNS(config *swiftypes.DNSConfig) error
- func (a *SwiftInterface) SetMTU(mtu int) error
- func (a *SwiftInterface) SetStatus(status swiftypes.InterfaceStatus) error
- func (a *SwiftInterface) SetUnicastIpAddressEntry(config *swiftypes.UnicastConfig) error
Constants ¶
This section is empty.
Variables ¶
View Source
var NilConfig = Config{}
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AdapterName string AdapterType swiftypes.AdapterType MTU int UnicastConfig *swiftypes.UnicastConfig MultiQueue bool Permissions *Permissions Persist bool }
func NewDefaultConfig ¶
func NewDefaultConfig() Config
type Permissions ¶
func NewPermissions ¶
func NewPermissions(owner, group uint) *Permissions
type SwiftInterface ¶
type SwiftInterface struct { io.ReadWriteCloser // contains filtered or unexported fields }
func NewSwiftInterface ¶
func NewSwiftInterface(config Config) (*SwiftInterface, error)
func (*SwiftInterface) GetAdapterIndex ¶
func (a *SwiftInterface) GetAdapterIndex() (int, error)
func (*SwiftInterface) GetAdapterName ¶
func (a *SwiftInterface) GetAdapterName() (string, error)
func (*SwiftInterface) GetFD ¶
func (a *SwiftInterface) GetFD() *os.File
func (*SwiftInterface) SetMTU ¶
func (a *SwiftInterface) SetMTU(mtu int) error
func (*SwiftInterface) SetStatus ¶
func (a *SwiftInterface) SetStatus(status swiftypes.InterfaceStatus) error
func (*SwiftInterface) SetUnicastIpAddressEntry ¶
func (a *SwiftInterface) SetUnicastIpAddressEntry(config *swiftypes.UnicastConfig) error
Click to show internal directories.
Click to hide internal directories.