talos/pkg/resources/network/operator_string.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

27 lines
702 B
Go

// Code generated by "stringer -type=Operator -linecomment"; DO NOT EDIT.
package network
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[OperatorDHCP4-0]
_ = x[OperatorDHCP6-1]
_ = x[OperatorVIP-2]
_ = x[OperatorWgLAN-3]
}
const _Operator_name = "dhcp4dhcp6vipwglan"
var _Operator_index = [...]uint8{0, 5, 10, 13, 18}
func (i Operator) String() string {
if i < 0 || i >= Operator(len(_Operator_index)-1) {
return "Operator(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Operator_name[_Operator_index[i]:_Operator_index[i+1]]
}