mirror of
				https://github.com/docker/setup-buildx-action.git
				synced 2025-10-31 01:20:09 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			266 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			266 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import * as yaml from 'js-yaml';
 | |
| 
 | |
| export type Node = {
 | |
|   name?: string;
 | |
|   endpoint?: string;
 | |
|   'driver-opts'?: Array<string>;
 | |
|   'buildkitd-flags'?: string;
 | |
|   platforms?: string;
 | |
| };
 | |
| 
 | |
| export function Parse(data: string): Node[] {
 | |
|   return yaml.load(data) as Node[];
 | |
| }
 | 
