Dmitriy Matrenichev a1684bdf8f
chore: speed up go generate for enumer
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>
2024-05-31 21:06:24 +03:00

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
)