mirror of
https://github.com/siderolabs/talos.git
synced 2026-05-05 12:26:21 +02:00
Enum generator github.com/dmarkham/enumer supports comma separated list of types. Use it and speed up this process by a LOT. Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
18 lines
462 B
Go
18 lines
462 B
Go
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
package network
|
|
|
|
// Operator enumerates Talos network operators.
|
|
type Operator int
|
|
|
|
// Operator list.
|
|
//
|
|
//structprotogen:gen_enum
|
|
const (
|
|
OperatorDHCP4 Operator = iota // dhcp4
|
|
OperatorDHCP6 // dhcp6
|
|
OperatorVIP // vip
|
|
)
|