Andrey Smirnov 9ad5a67d21
feat: inject platform network configuration as network resources
Instead of patching in the machine config, provide a new interface in
the platforms to supply platform-specific network configuration.

Configuration will be cached in the `/state` across reboots, and
configuration might be even updated in real time (e.g. on GCP).

Network configuration on platform level can be overridden with
user-supplied machine configuration.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
2022-01-20 16:26:49 +03:00

18 lines
489 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 enumer -type=Operator -linecomment -text
// Operator enumerates Talos network operators.
type Operator int
// Operator list.
const (
OperatorDHCP4 Operator = iota // dhcp4
OperatorDHCP6 // dhcp6
OperatorVIP // vip
)