mirror of
				https://github.com/siderolabs/talos.git
				synced 2025-10-31 08:21:25 +01:00 
			
		
		
		
	Pass getter to the key handler instead of already fetched node uuid. Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
		
			
				
	
	
		
			16 lines
		
	
	
		
			547 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			547 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 helpers defines encryption handlers.
 | |
| package helpers
 | |
| 
 | |
| import (
 | |
| 	"context"
 | |
| 
 | |
| 	"github.com/siderolabs/talos/pkg/machinery/resources/hardware"
 | |
| )
 | |
| 
 | |
| // SystemInformationGetter defines the closure which can be used in key handlers to get the node UUID.
 | |
| type SystemInformationGetter func(context.Context) (*hardware.SystemInformation, error)
 |