From 073c2881a41052b0ab26f083ab5633089f748bad Mon Sep 17 00:00:00 2001 From: Robert Fratto Date: Mon, 25 Mar 2024 16:26:10 -0400 Subject: [PATCH] operations: rename river-jsonnet to alloy-syntax-jsonnet (#74) --- operations/alloy-syntax-jsonnet/README.md | 65 +++++++++++++++++++ .../builder.jsonnet | 6 +- .../internal/utils.jsonnet | 0 .../jsonnetfile.json | 0 .../main.libsonnet | 0 .../main_test.jsonnet | 34 +++++----- .../manifest.jsonnet | 22 +++---- operations/river-jsonnet/README.md | 65 ------------------- 8 files changed, 96 insertions(+), 96 deletions(-) create mode 100644 operations/alloy-syntax-jsonnet/README.md rename operations/{river-jsonnet => alloy-syntax-jsonnet}/builder.jsonnet (74%) rename operations/{river-jsonnet => alloy-syntax-jsonnet}/internal/utils.jsonnet (100%) rename operations/{river-jsonnet => alloy-syntax-jsonnet}/jsonnetfile.json (100%) rename operations/{river-jsonnet => alloy-syntax-jsonnet}/main.libsonnet (100%) rename operations/{river-jsonnet => alloy-syntax-jsonnet}/main_test.jsonnet (79%) rename operations/{river-jsonnet => alloy-syntax-jsonnet}/manifest.jsonnet (90%) delete mode 100644 operations/river-jsonnet/README.md diff --git a/operations/alloy-syntax-jsonnet/README.md b/operations/alloy-syntax-jsonnet/README.md new file mode 100644 index 0000000000..b63ef8d8cd --- /dev/null +++ b/operations/alloy-syntax-jsonnet/README.md @@ -0,0 +1,65 @@ +# `alloy-syntax-jsonnet` library + +The `alloy-syntax-jsonnet` library makes it possible to create Alloy syntax +config files using Jsonnet. + +To manifest a configuration file, call `alloy.manifestAlloy(value)`. + +Field names from objects are expected to follow one of the three forms: + +* `` for Alloy attributes (e.g., `foobar`). +* `block ` for unlabeled Alloy blocks (e.g., `block exporter.unix`) +* `block