cacher2tink

command
v0.0.0-...-0346462 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

cacher2tink

Takes cacherc output on stdin, transforms into tinkerbell data model on stdout.

Example Usage
$ cacherc -f dc13 mac 1c:34:da:42:b8:34 | tee >(jq -S . >cacher.json) | ./cacher2tink | jq -S . >tink.json
$ jq keys cacher.json
[
  "allow_pxe",
  "arch",
  "bonding_mode",
  "efi_boot",
  "facility_code",
  "id",
  "instance",
  "ip_addresses",
  "management",
  "manufacturer",
  "name",
  "network_ports",
  "plan_slug",
  "plan_version_slug",
  "preinstalled_operating_system_version",
  "private_subnets",
  "services",
  "state",
  "type",
  "vlan_id"
]

$ jq keys tink.json
[
  "id",
  "metadata",
  "network"
]

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL