Public Access
1
0
mirror of https://github.com/docker/setup-buildx-action.git synced 2026-01-27 14:03:04 +03:00
Files
setup-buildx-action/src/nodes.ts
2022-10-14 11:46:19 +02:00

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[];
}