mirror of
https://github.com/siderolabs/talos.git
synced 2025-11-02 01:11:11 +01:00
There is nothing new in the DHCP4 operator, it's more or less adapted code from networkd. Other operators coming: DHCP6, VIP, WgLAN, etc. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
28 lines
802 B
Go
28 lines
802 B
Go
// Code generated by "stringer -type=ConfigLayer -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[ConfigDefault-0]
|
|
_ = x[ConfigCmdline-1]
|
|
_ = x[ConfigPlatform-2]
|
|
_ = x[ConfigOperator-3]
|
|
_ = x[ConfigMachineConfiguration-4]
|
|
}
|
|
|
|
const _ConfigLayer_name = "defaultcmdlineplatformoperatorconfiguration"
|
|
|
|
var _ConfigLayer_index = [...]uint8{0, 7, 14, 22, 30, 43}
|
|
|
|
func (i ConfigLayer) String() string {
|
|
if i < 0 || i >= ConfigLayer(len(_ConfigLayer_index)-1) {
|
|
return "ConfigLayer(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _ConfigLayer_name[_ConfigLayer_index[i]:_ConfigLayer_index[i+1]]
|
|
}
|