talos/pkg/resources/network/configlayer_string.go
Andrey Smirnov 071f044562 feat: implement AddressSpec handling
This includes multiple controllers responsible for different stages of
`AddressSpec` conversion:

* `AddressConfigController` produces initial unmerged configuration from
multiple sources (more sources coming later, e.g. DHCP)
* `AddressMergeController` merges address configuration into final
representation
* `AddressSpecController` syncs resources with kernel state

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2021-05-14 02:27:12 -07:00

28 lines
794 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[ConfigDHCP-2]
_ = x[ConfigPlatform-3]
_ = x[ConfigMachineConfiguration-4]
}
const _ConfigLayer_name = "defaultcmdlinedhcpplatformconfiguration"
var _ConfigLayer_index = [...]uint8{0, 7, 14, 18, 26, 39}
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]]
}