talos
24 строки · 754.0 Байт
1// This Source Code Form is subject to the terms of the Mozilla Public
2// License, v. 2.0. If a copy of the MPL was not distributed with this
3// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5package nethelpers
6
7import "github.com/mdlayher/ethtool"
8
9// Port wraps ethtool.Port for YAML marshaling.
10type Port ethtool.Port
11
12// Possible Port type values.
13//
14//structprotogen:gen_enum
15const (
16TwistedPair Port = Port(ethtool.TwistedPair)
17AUI Port = Port(ethtool.AUI)
18MII Port = Port(ethtool.MII)
19Fibre Port = Port(ethtool.Fibre) //nolint:misspell
20BNC Port = Port(ethtool.BNC)
21DirectAttach Port = Port(ethtool.DirectAttach)
22None Port = Port(ethtool.None)
23Other Port = Port(ethtool.Other)
24)
25