talos/pkg/resources/network/configlayer_string.go
Andrey Smirnov f010d99afb feat: implement operator framework with DHCP4 as the first example
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>
2021-06-09 13:12:28 -07:00

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]]
}