mirror of
https://github.com/siderolabs/talos.git
synced 2025-11-01 17:01:10 +01:00
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>
25 lines
844 B
Go
25 lines
844 B
Go
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
package network
|
|
|
|
//go:generate stringer -type=ConfigLayer -linecomment
|
|
|
|
// ConfigLayer describes network configuration layers, with lowest priority first.
|
|
type ConfigLayer int
|
|
|
|
// Configuration layers.
|
|
const (
|
|
ConfigDefault ConfigLayer = iota // default
|
|
ConfigCmdline // cmdline
|
|
ConfigDHCP // dhcp
|
|
ConfigPlatform // platform
|
|
ConfigMachineConfiguration // configuration
|
|
)
|
|
|
|
// MarshalYAML implements yaml.Marshaler.
|
|
func (layer ConfigLayer) MarshalYAML() (interface{}, error) {
|
|
return layer.String(), nil
|
|
}
|