mirror of
https://github.com/siderolabs/talos.git
synced 2025-11-02 01:11:11 +01:00
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>
27 lines
702 B
Go
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]]
|
|
}
|