MCPcopy Create free account
hub / github.com/encodeous/nylon / Up

Method Up

polyamide/device/device.go:214–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212}
213
214func (device *Device) Up() error {
215 return device.changeState(deviceStateUp)
216}
217
218func (device *Device) Down() error {
219 return device.changeState(deviceStateDown)

Callers 8

mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
RoutineTUNEventReaderMethod · 0.95
genTestPairFunction · 0.80
TestUpDownFunction · 0.80
initWireGuardMethod · 0.80

Implementers 4

NativeTunpolyamide/tun/tun_linux.go
netTunpolyamide/tun/netstack/tun.go
chTunpolyamide/tun/tuntest/tuntest.go
fakeTUNDeviceSizedpolyamide/device/device_test.go

Calls 1

changeStateMethod · 0.95

Tested by 2

genTestPairFunction · 0.64
TestUpDownFunction · 0.64