mirror of
				https://github.com/siderolabs/talos.git
				synced 2025-10-31 08:21:25 +01:00 
			
		
		
		
	This controller based on machine configuration, cmdline, defaults, produces configuration for the operators - what operators should run, what are the parameters for the operators, etc. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
		
			
				
	
	
		
			24 lines
		
	
	
		
			663 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			663 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=Operator -linecomment
 | |
| 
 | |
| // Operator enumerates Talos network operators.
 | |
| type Operator int
 | |
| 
 | |
| // Operator list.
 | |
| const (
 | |
| 	OperatorDHCP4 Operator = iota // dhcp4
 | |
| 	OperatorDHCP6                 // dhcp6
 | |
| 	OperatorVIP                   // vip
 | |
| 	OperatorWgLAN                 // wglan
 | |
| )
 | |
| 
 | |
| // MarshalYAML implements yaml.Marshaler.
 | |
| func (operator Operator) MarshalYAML() (interface{}, error) {
 | |
| 	return operator.String(), nil
 | |
| }
 |