talos/pkg/resources/network/operator.go
Andrey Smirnov 11e258b150 feat: implement operator configuration controller
This controller based on machine configuration, cmdline, defaults,
produces configuration for the operators - what operators should run,
what are the parameters for the operators, etc.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2021-06-10 11:17:41 -07:00

24 lines
663 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
//go:generate stringer -type=Operator -linecomment
// Operator enumerates Talos network operators.
type Operator int
// Operator list.
const (
OperatorDHCP4 Operator = iota // dhcp4
OperatorDHCP6 // dhcp6
OperatorVIP // vip
OperatorWgLAN // wglan
)
// MarshalYAML implements yaml.Marshaler.
func (operator Operator) MarshalYAML() (interface{}, error) {
return operator.String(), nil
}