Documentation ¶
Index ¶
- type FakeNetlinkHandle
- func (h *FakeNetlinkHandle) DeleteDummyDevice(devName string) error
- func (h *FakeNetlinkHandle) EnsureAddressBind(address, devName string) (exist bool, err error)
- func (h *FakeNetlinkHandle) EnsureDummyDevice(devName string) (bool, error)
- func (h *FakeNetlinkHandle) UnbindAddress(address, devName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeNetlinkHandle ¶
type FakeNetlinkHandle struct { }
FakeNetlinkHandle mock implementation of proxy NetlinkHandle
func NewFakeNetlinkHandle ¶
func NewFakeNetlinkHandle() *FakeNetlinkHandle
NewFakeNetlinkHandle will create a new FakeNetlinkHandle
func (*FakeNetlinkHandle) DeleteDummyDevice ¶
func (h *FakeNetlinkHandle) DeleteDummyDevice(devName string) error
DeleteDummyDevice is a mock implementation
func (*FakeNetlinkHandle) EnsureAddressBind ¶
func (h *FakeNetlinkHandle) EnsureAddressBind(address, devName string) (exist bool, err error)
EnsureAddressBind is a mock implementation
func (*FakeNetlinkHandle) EnsureDummyDevice ¶
func (h *FakeNetlinkHandle) EnsureDummyDevice(devName string) (bool, error)
EnsureDummyDevice is a mock implementation
func (*FakeNetlinkHandle) UnbindAddress ¶
func (h *FakeNetlinkHandle) UnbindAddress(address, devName string) error
UnbindAddress is a mock implementation
Click to show internal directories.
Click to hide internal directories.