@k8ts/instruments 0.11.3 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/graph/entity.d.ts +9 -22
- package/dist/core/graph/entity.d.ts.map +1 -1
- package/dist/core/graph/entity.js +11 -19
- package/dist/core/graph/entity.js.map +1 -1
- package/dist/core/graph/error.d.ts +7 -0
- package/dist/core/graph/error.d.ts.map +1 -0
- package/dist/core/graph/error.js +12 -0
- package/dist/core/graph/error.js.map +1 -0
- package/dist/core/graph/index.d.ts +2 -2
- package/dist/core/graph/index.d.ts.map +1 -1
- package/dist/core/graph/index.js +4 -4
- package/dist/core/graph/index.js.map +1 -1
- package/dist/core/graph/origin/dummy.d.ts +13 -0
- package/dist/core/graph/origin/dummy.d.ts.map +1 -0
- package/dist/core/graph/origin/dummy.js +25 -0
- package/dist/core/graph/origin/dummy.js.map +1 -0
- package/dist/core/graph/origin/events.d.ts +19 -26
- package/dist/core/graph/origin/events.d.ts.map +1 -1
- package/dist/core/graph/origin/events.js +1 -30
- package/dist/core/graph/origin/events.js.map +1 -1
- package/dist/core/graph/origin/exporter.d.ts +10 -10
- package/dist/core/graph/origin/exporter.d.ts.map +1 -1
- package/dist/core/graph/origin/exporter.js +20 -18
- package/dist/core/graph/origin/exporter.js.map +1 -1
- package/dist/core/graph/origin/index.d.ts +5 -3
- package/dist/core/graph/origin/index.d.ts.map +1 -1
- package/dist/core/graph/origin/index.js +5 -3
- package/dist/core/graph/origin/index.js.map +1 -1
- package/dist/core/graph/origin/kind-map/index.d.ts +16 -17
- package/dist/core/graph/origin/kind-map/index.d.ts.map +1 -1
- package/dist/core/graph/origin/kind-map/index.js +35 -34
- package/dist/core/graph/origin/kind-map/index.js.map +1 -1
- package/dist/core/graph/origin/origin.d.ts +37 -0
- package/dist/core/graph/origin/origin.d.ts.map +1 -0
- package/dist/core/graph/origin/{entity.js → origin.js} +67 -58
- package/dist/core/graph/origin/origin.js.map +1 -0
- package/dist/core/graph/origin/props.d.ts +9 -0
- package/dist/core/graph/origin/props.d.ts.map +1 -0
- package/dist/core/graph/origin/props.js.map +1 -0
- package/dist/core/graph/origin/template.d.ts +15 -0
- package/dist/core/graph/origin/template.d.ts.map +1 -0
- package/dist/core/graph/origin/template.js +35 -0
- package/dist/core/graph/origin/template.js.map +1 -0
- package/dist/core/graph/origin/tracker.d.ts +7 -9
- package/dist/core/graph/origin/tracker.d.ts.map +1 -1
- package/dist/core/graph/origin/tracker.js +4 -15
- package/dist/core/graph/origin/tracker.js.map +1 -1
- package/dist/core/graph/origin/vertex.d.ts +21 -0
- package/dist/core/graph/origin/vertex.d.ts.map +1 -0
- package/dist/core/graph/origin/{node.js → vertex.js} +27 -17
- package/dist/core/graph/origin/vertex.js.map +1 -0
- package/dist/core/graph/relation.d.ts +4 -4
- package/dist/core/graph/relation.d.ts.map +1 -1
- package/dist/core/graph/relation.js +4 -5
- package/dist/core/graph/relation.js.map +1 -1
- package/dist/core/graph/resource/creation-options.d.ts +22 -0
- package/dist/core/graph/resource/creation-options.d.ts.map +1 -0
- package/dist/core/graph/resource/creation-options.js +3 -0
- package/dist/core/graph/resource/creation-options.js.map +1 -0
- package/dist/core/graph/resource/dummy/base.d.ts +9 -0
- package/dist/core/graph/resource/dummy/base.d.ts.map +1 -0
- package/dist/core/graph/resource/dummy/base.js +15 -0
- package/dist/core/graph/resource/dummy/base.js.map +1 -0
- package/dist/core/graph/resource/dummy/index.d.ts.map +1 -0
- package/dist/core/graph/resource/dummy/index.js.map +1 -0
- package/dist/core/graph/resource/forward/error.d.ts +5 -0
- package/dist/core/graph/resource/forward/error.d.ts.map +1 -0
- package/dist/core/graph/resource/forward/error.js +12 -0
- package/dist/core/graph/resource/forward/error.js.map +1 -0
- package/dist/core/graph/resource/forward/exports.d.ts +46 -0
- package/dist/core/graph/resource/forward/exports.d.ts.map +1 -0
- package/dist/core/graph/resource/{reference/fw-ref-exports.js → forward/exports.js} +32 -31
- package/dist/core/graph/resource/forward/exports.js.map +1 -0
- package/dist/core/graph/resource/forward/index.d.ts +3 -0
- package/dist/core/graph/resource/forward/index.d.ts.map +1 -0
- package/dist/core/graph/resource/forward/index.js +8 -0
- package/dist/core/graph/resource/forward/index.js.map +1 -0
- package/dist/core/graph/resource/{reference/fw-ref.d.ts → forward/ref.d.ts} +20 -20
- package/dist/core/graph/resource/forward/ref.d.ts.map +1 -0
- package/dist/core/graph/resource/{reference/fw-ref.js → forward/ref.js} +56 -27
- package/dist/core/graph/resource/forward/ref.js.map +1 -0
- package/dist/core/graph/resource/gvk/0-base.d.ts +17 -0
- package/dist/core/graph/resource/gvk/0-base.d.ts.map +1 -0
- package/dist/core/graph/resource/gvk/0-base.js +35 -0
- package/dist/core/graph/resource/gvk/0-base.js.map +1 -0
- package/dist/core/graph/resource/gvk/1-group.d.ts +12 -0
- package/dist/core/graph/resource/gvk/1-group.d.ts.map +1 -0
- package/dist/core/graph/resource/gvk/1-group.js +26 -0
- package/dist/core/graph/resource/gvk/1-group.js.map +1 -0
- package/dist/core/graph/resource/gvk/2=version.d.ts +11 -0
- package/dist/core/graph/resource/gvk/2=version.d.ts.map +1 -0
- package/dist/core/graph/resource/gvk/2=version.js +23 -0
- package/dist/core/graph/resource/gvk/2=version.js.map +1 -0
- package/dist/core/graph/resource/gvk/3-gvk.d.ts +16 -0
- package/dist/core/graph/resource/gvk/3-gvk.d.ts.map +1 -0
- package/dist/core/graph/resource/gvk/3-gvk.js +50 -0
- package/dist/core/graph/resource/gvk/3-gvk.js.map +1 -0
- package/dist/core/graph/resource/gvk/4-subkind.d.ts +8 -0
- package/dist/core/graph/resource/gvk/4-subkind.d.ts.map +1 -0
- package/dist/core/graph/resource/gvk/4-subkind.js +19 -0
- package/dist/core/graph/resource/gvk/4-subkind.js.map +1 -0
- package/dist/core/graph/resource/gvk/index.d.ts +6 -0
- package/dist/core/graph/resource/gvk/index.d.ts.map +1 -0
- package/dist/core/graph/resource/gvk/index.js +22 -0
- package/dist/core/graph/resource/gvk/index.js.map +1 -0
- package/dist/core/graph/resource/gvk/strings.d.ts +4 -0
- package/dist/core/graph/resource/gvk/strings.d.ts.map +1 -0
- package/dist/core/graph/resource/{reference/refable.js → gvk/strings.js} +1 -1
- package/dist/core/graph/resource/gvk/strings.js.map +1 -0
- package/dist/core/graph/resource/{ref-key/ref-key.d.ts → ident/ident.d.ts} +25 -36
- package/dist/core/graph/resource/ident/ident.d.ts.map +1 -0
- package/dist/core/graph/resource/{ref-key/ref-key.js → ident/ident.js} +38 -49
- package/dist/core/graph/resource/ident/ident.js.map +1 -0
- package/dist/core/graph/resource/ident/index.d.ts +2 -0
- package/dist/core/graph/resource/ident/index.d.ts.map +1 -0
- package/dist/core/graph/resource/{ref-key → ident}/index.js +1 -1
- package/dist/core/graph/resource/ident/index.js.map +1 -0
- package/dist/core/graph/resource/ident/parsing.d.ts +16 -0
- package/dist/core/graph/resource/ident/parsing.d.ts.map +1 -0
- package/dist/core/graph/resource/ident/parsing.js +36 -0
- package/dist/core/graph/resource/ident/parsing.js.map +1 -0
- package/dist/core/graph/resource/index.d.ts +10 -9
- package/dist/core/graph/resource/index.d.ts.map +1 -1
- package/dist/core/graph/resource/index.js +10 -9
- package/dist/core/graph/resource/index.js.map +1 -1
- package/dist/core/graph/resource/k8s-resource.d.ts +18 -0
- package/dist/core/graph/resource/k8s-resource.d.ts.map +1 -0
- package/dist/core/graph/resource/k8s-resource.js +85 -0
- package/dist/core/graph/resource/k8s-resource.js.map +1 -0
- package/dist/core/graph/resource/part.d.ts +12 -0
- package/dist/core/graph/resource/part.d.ts.map +1 -0
- package/dist/core/graph/resource/part.js +20 -0
- package/dist/core/graph/resource/part.js.map +1 -0
- package/dist/core/graph/resource/props.d.ts +9 -0
- package/dist/core/graph/resource/props.d.ts.map +1 -0
- package/dist/core/graph/resource/{field.js → props.js} +1 -1
- package/dist/core/graph/resource/props.js.map +1 -0
- package/dist/core/graph/resource/ref.d.ts +25 -0
- package/dist/core/graph/resource/ref.d.ts.map +1 -0
- package/dist/core/graph/resource/ref.js +3 -0
- package/dist/core/graph/resource/ref.js.map +1 -0
- package/dist/core/graph/resource/resource.d.ts +23 -0
- package/dist/core/graph/resource/resource.d.ts.map +1 -0
- package/dist/core/graph/resource/{entity.js → resource.js} +40 -37
- package/dist/core/graph/resource/resource.js.map +1 -0
- package/dist/core/graph/resource/vertex.d.ts +31 -0
- package/dist/core/graph/resource/vertex.d.ts.map +1 -0
- package/dist/core/graph/resource/{node.js → vertex.js} +36 -34
- package/dist/core/graph/resource/vertex.js.map +1 -0
- package/dist/core/graph/{node.d.ts → vertex.d.ts} +12 -14
- package/dist/core/graph/vertex.d.ts.map +1 -0
- package/dist/core/graph/{node.js → vertex.js} +18 -23
- package/dist/core/graph/vertex.js.map +1 -0
- package/dist/core/manifest/index.d.ts +7 -17
- package/dist/core/manifest/index.d.ts.map +1 -1
- package/dist/core/manifest/index.js +1 -1
- package/dist/core/manifest/index.js.map +1 -1
- package/dist/core/tracing/embedder.d.ts +4 -0
- package/dist/core/tracing/embedder.d.ts.map +1 -0
- package/dist/core/tracing/{traced.js → embedder.js} +2 -2
- package/dist/core/tracing/embedder.js.map +1 -0
- package/dist/core/tracing/git.d.ts +7 -7
- package/dist/core/tracing/git.d.ts.map +1 -1
- package/dist/core/tracing/git.js +7 -7
- package/dist/core/tracing/git.js.map +1 -1
- package/dist/core/tracing/index.d.ts +2 -2
- package/dist/core/tracing/index.d.ts.map +1 -1
- package/dist/core/tracing/index.js +2 -2
- package/dist/core/tracing/index.js.map +1 -1
- package/dist/core/tracing/source.d.ts +11 -0
- package/dist/core/tracing/source.d.ts.map +1 -0
- package/dist/core/tracing/{trace.js → source.js} +6 -6
- package/dist/core/tracing/source.js.map +1 -0
- package/dist/expressions/data-sources/env-var.d.ts +5 -25
- package/dist/expressions/data-sources/env-var.d.ts.map +1 -1
- package/dist/expressions/data-sources/env-var.js +58 -34
- package/dist/expressions/data-sources/env-var.js.map +1 -1
- package/dist/expressions/data-sources/error.d.ts +8 -0
- package/dist/expressions/data-sources/error.d.ts.map +1 -0
- package/dist/expressions/data-sources/error.js +13 -0
- package/dist/expressions/data-sources/error.js.map +1 -0
- package/dist/expressions/data-sources/index.d.ts +1 -1
- package/dist/expressions/data-sources/index.d.ts.map +1 -1
- package/dist/expressions/data-sources/index.js +1 -1
- package/dist/expressions/data-sources/index.js.map +1 -1
- package/dist/expressions/data-sources/interface.d.ts +9 -26
- package/dist/expressions/data-sources/interface.d.ts.map +1 -1
- package/dist/expressions/data-sources/interface.js +4 -0
- package/dist/expressions/data-sources/interface.js.map +1 -1
- package/dist/expressions/data-sources/js-object.d.ts +7 -0
- package/dist/expressions/data-sources/js-object.d.ts.map +1 -0
- package/dist/expressions/data-sources/js-object.js +98 -0
- package/dist/expressions/data-sources/js-object.js.map +1 -0
- package/dist/expressions/data-sources/local-file.d.ts +7 -28
- package/dist/expressions/data-sources/local-file.d.ts.map +1 -1
- package/dist/expressions/data-sources/local-file.js +139 -73
- package/dist/expressions/data-sources/local-file.js.map +1 -1
- package/dist/expressions/network/error.d.ts +7 -0
- package/dist/expressions/network/error.d.ts.map +1 -0
- package/dist/expressions/network/error.js +12 -0
- package/dist/expressions/network/error.js.map +1 -0
- package/dist/expressions/network/index.d.ts +5 -1
- package/dist/expressions/network/index.d.ts.map +1 -1
- package/dist/expressions/network/index.js +5 -1
- package/dist/expressions/network/index.js.map +1 -1
- package/dist/expressions/network/ip/ip4.d.ts +8 -0
- package/dist/expressions/network/ip/ip4.d.ts.map +1 -0
- package/dist/expressions/network/ip/ip4.js +14 -0
- package/dist/expressions/network/ip/ip4.js.map +1 -0
- package/dist/expressions/network/ip/subnet4.d.ts +8 -0
- package/dist/expressions/network/ip/subnet4.d.ts.map +1 -0
- package/dist/expressions/network/ip/{index.js → subnet4.js} +2 -11
- package/dist/expressions/network/ip/subnet4.js.map +1 -0
- package/dist/expressions/network/ports/entry.d.ts +5 -0
- package/dist/expressions/network/ports/entry.d.ts.map +1 -0
- package/dist/expressions/network/ports/entry.js +36 -0
- package/dist/expressions/network/ports/entry.js.map +1 -0
- package/dist/expressions/network/ports/{map.d.ts → mapping.d.ts} +15 -17
- package/dist/expressions/network/ports/mapping.d.ts.map +1 -0
- package/dist/expressions/network/ports/mapping.js +95 -0
- package/dist/expressions/network/ports/mapping.js.map +1 -0
- package/dist/expressions/network/ports/parser.d.ts +3 -0
- package/dist/expressions/network/ports/parser.d.ts.map +1 -0
- package/dist/expressions/network/ports/{tools/parse.js → parser.js} +2 -2
- package/dist/expressions/network/ports/parser.js.map +1 -0
- package/dist/expressions/network/ports/provider.d.ts +72 -0
- package/dist/expressions/network/ports/provider.d.ts.map +1 -0
- package/dist/expressions/network/ports/provider.js +143 -0
- package/dist/expressions/network/ports/provider.js.map +1 -0
- package/dist/expressions/network/ports/types.d.ts +22 -9
- package/dist/expressions/network/ports/types.d.ts.map +1 -1
- package/dist/expressions/quantities/error.d.ts +7 -0
- package/dist/expressions/quantities/error.d.ts.map +1 -0
- package/dist/expressions/quantities/error.js +12 -0
- package/dist/expressions/quantities/error.js.map +1 -0
- package/dist/expressions/quantities/index.d.ts +10 -2
- package/dist/expressions/quantities/index.d.ts.map +1 -1
- package/dist/expressions/quantities/index.js +10 -2
- package/dist/expressions/quantities/index.js.map +1 -1
- package/dist/expressions/quantities/reqs/objects.d.ts +18 -0
- package/dist/expressions/quantities/reqs/objects.d.ts.map +1 -0
- package/dist/expressions/quantities/reqs/objects.js +81 -0
- package/dist/expressions/quantities/reqs/objects.js.map +1 -0
- package/dist/expressions/quantities/reqs/parser.d.ts +4 -0
- package/dist/expressions/quantities/reqs/parser.d.ts.map +1 -0
- package/dist/expressions/quantities/{reqlem → reqs}/parser.js +2 -2
- package/dist/expressions/quantities/reqs/parser.js.map +1 -0
- package/dist/expressions/quantities/reqs/types.d.ts +28 -0
- package/dist/expressions/quantities/reqs/types.d.ts.map +1 -0
- package/dist/expressions/quantities/reqs/types.js.map +1 -0
- package/dist/expressions/quantities/reqs/values.d.ts +17 -0
- package/dist/expressions/quantities/reqs/values.d.ts.map +1 -0
- package/dist/expressions/quantities/reqs/values.js +42 -0
- package/dist/expressions/quantities/reqs/values.js.map +1 -0
- package/dist/expressions/quantities/units/{units.d.ts → built-in.d.ts} +6 -8
- package/dist/expressions/quantities/units/built-in.d.ts.map +1 -0
- package/dist/expressions/quantities/units/built-in.js +44 -0
- package/dist/expressions/quantities/units/built-in.js.map +1 -0
- package/dist/expressions/quantities/units/dimension.d.ts +20 -0
- package/dist/expressions/quantities/units/dimension.d.ts.map +1 -0
- package/dist/expressions/quantities/units/dimension.js +33 -0
- package/dist/expressions/quantities/units/dimension.js.map +1 -0
- package/dist/expressions/quantities/units/parser.d.ts +6 -0
- package/dist/expressions/quantities/units/parser.d.ts.map +1 -0
- package/dist/expressions/quantities/units/parser.js +11 -0
- package/dist/expressions/quantities/units/parser.js.map +1 -0
- package/dist/expressions/quantities/units/types.d.ts +2 -0
- package/dist/expressions/quantities/units/types.d.ts.map +1 -0
- package/dist/expressions/quantities/units/types.js +3 -0
- package/dist/expressions/quantities/units/types.js.map +1 -0
- package/dist/expressions/quantities/units/validator.d.ts +4 -0
- package/dist/expressions/quantities/units/validator.d.ts.map +1 -0
- package/dist/expressions/quantities/units/validator.js +16 -0
- package/dist/expressions/quantities/units/validator.js.map +1 -0
- package/dist/expressions/quantities/units/value.d.ts +10 -0
- package/dist/expressions/quantities/units/value.d.ts.map +1 -0
- package/dist/expressions/quantities/units/value.js +27 -0
- package/dist/expressions/quantities/units/value.js.map +1 -0
- package/dist/expressions/quantities/util.d.ts +11 -0
- package/dist/expressions/quantities/util.d.ts.map +1 -0
- package/dist/expressions/quantities/util.js +28 -0
- package/dist/expressions/quantities/util.js.map +1 -0
- package/dist/expressions/workload/cmd/cli-term.d.ts +7 -7
- package/dist/expressions/workload/cmd/cli-term.d.ts.map +1 -1
- package/dist/expressions/workload/cmd/cli-term.js +16 -15
- package/dist/expressions/workload/cmd/cli-term.js.map +1 -1
- package/dist/expressions/workload/cmd/cmd-line.d.ts +15 -0
- package/dist/expressions/workload/cmd/cmd-line.d.ts.map +1 -0
- package/dist/expressions/workload/cmd/{cli-command.js → cmd-line.js} +23 -27
- package/dist/expressions/workload/cmd/cmd-line.js.map +1 -0
- package/dist/expressions/workload/cmd/types.d.ts +4 -4
- package/dist/expressions/workload/cmd/types.d.ts.map +1 -1
- package/dist/expressions/workload/cronjob/parse-type.d.ts +30 -0
- package/dist/expressions/workload/cronjob/parse-type.d.ts.map +1 -0
- package/dist/{core/graph/resource/external/features.js → expressions/workload/cronjob/parse-type.js} +1 -1
- package/dist/expressions/workload/cronjob/parse-type.js.map +1 -0
- package/dist/expressions/workload/cronjob/shorthand.d.ts +13 -0
- package/dist/expressions/workload/cronjob/shorthand.d.ts.map +1 -0
- package/dist/expressions/workload/cronjob/shorthand.js +39 -0
- package/dist/expressions/workload/cronjob/shorthand.js.map +1 -0
- package/dist/expressions/workload/cronjob/stanza.d.ts +15 -0
- package/dist/expressions/workload/cronjob/stanza.d.ts.map +1 -0
- package/dist/expressions/workload/cronjob/{index.js → stanza.js} +29 -62
- package/dist/expressions/workload/cronjob/stanza.js.map +1 -0
- package/dist/expressions/workload/cronjob/types.d.ts +3 -1
- package/dist/expressions/workload/cronjob/types.d.ts.map +1 -1
- package/dist/expressions/workload/error.d.ts +7 -0
- package/dist/expressions/workload/error.d.ts.map +1 -0
- package/dist/expressions/workload/error.js +12 -0
- package/dist/expressions/workload/error.js.map +1 -0
- package/dist/expressions/workload/image/1-host.d.ts +11 -0
- package/dist/expressions/workload/image/1-host.d.ts.map +1 -0
- package/dist/expressions/workload/image/1-host.js +27 -0
- package/dist/expressions/workload/image/1-host.js.map +1 -0
- package/dist/expressions/workload/image/2-namespace.d.ts +11 -0
- package/dist/expressions/workload/image/2-namespace.d.ts.map +1 -0
- package/dist/expressions/workload/image/2-namespace.js +90 -0
- package/dist/expressions/workload/image/2-namespace.js.map +1 -0
- package/dist/expressions/workload/image/3-repository.d.ts +11 -0
- package/dist/expressions/workload/image/3-repository.d.ts.map +1 -0
- package/dist/expressions/workload/image/3-repository.js +38 -0
- package/dist/expressions/workload/image/3-repository.js.map +1 -0
- package/dist/expressions/workload/image/4-image.d.ts +22 -0
- package/dist/expressions/workload/image/4-image.d.ts.map +1 -0
- package/dist/expressions/workload/image/4-image.js +43 -0
- package/dist/expressions/workload/image/4-image.js.map +1 -0
- package/dist/expressions/workload/image/index.d.ts +4 -1
- package/dist/expressions/workload/image/index.d.ts.map +1 -1
- package/dist/expressions/workload/image/index.js +3 -6
- package/dist/expressions/workload/image/index.js.map +1 -1
- package/dist/expressions/workload/image/types.d.ts +2 -0
- package/dist/expressions/workload/image/types.d.ts.map +1 -0
- package/dist/expressions/workload/image/types.js +3 -0
- package/dist/expressions/workload/image/types.js.map +1 -0
- package/dist/expressions/workload/image/util.d.ts +2 -0
- package/dist/expressions/workload/image/util.d.ts.map +1 -0
- package/dist/expressions/workload/image/util.js +3 -0
- package/dist/expressions/workload/image/util.js.map +1 -0
- package/dist/expressions/workload/index.d.ts +9 -3
- package/dist/expressions/workload/index.d.ts.map +1 -1
- package/dist/expressions/workload/index.js +9 -3
- package/dist/expressions/workload/index.js.map +1 -1
- package/dist/expressions/workload/owner/group.d.ts +10 -0
- package/dist/expressions/workload/owner/group.d.ts.map +1 -0
- package/dist/expressions/workload/owner/group.js +27 -0
- package/dist/expressions/workload/owner/group.js.map +1 -0
- package/dist/expressions/workload/owner/index.d.ts +4 -0
- package/dist/expressions/workload/owner/index.d.ts.map +1 -0
- package/dist/expressions/workload/owner/index.js +8 -0
- package/dist/expressions/workload/owner/index.js.map +1 -0
- package/dist/expressions/workload/owner/ownership.d.ts +9 -0
- package/dist/expressions/workload/owner/ownership.d.ts.map +1 -0
- package/dist/expressions/workload/owner/ownership.js +22 -0
- package/dist/expressions/workload/owner/ownership.js.map +1 -0
- package/dist/expressions/workload/owner/user.d.ts +18 -0
- package/dist/expressions/workload/owner/user.d.ts.map +1 -0
- package/dist/expressions/workload/owner/user.js +32 -0
- package/dist/expressions/workload/owner/user.js.map +1 -0
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +3 -3
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/{displayers → mixin/display}/displayers.d.ts +9 -9
- package/dist/utils/mixin/display/displayers.d.ts.map +1 -0
- package/dist/utils/{displayers → mixin/display}/displayers.js +13 -7
- package/dist/utils/mixin/display/displayers.js.map +1 -0
- package/dist/utils/mixin/display/index.d.ts.map +1 -0
- package/dist/utils/mixin/display/index.js.map +1 -0
- package/dist/utils/mixin/embedder/base.d.ts.map +1 -0
- package/dist/utils/{embedder → mixin/embedder}/base.js +3 -2
- package/dist/utils/mixin/embedder/base.js.map +1 -0
- package/dist/utils/mixin/embedder/index.d.ts +2 -0
- package/dist/utils/mixin/embedder/index.d.ts.map +1 -0
- package/dist/{core/graph/resource/external → utils/mixin/embedder}/index.js +0 -2
- package/dist/utils/mixin/embedder/index.js.map +1 -0
- package/dist/utils/mixin/error.d.ts +5 -0
- package/dist/utils/mixin/error.d.ts.map +1 -0
- package/dist/{expressions/network/ports → utils/mixin}/error.js +4 -5
- package/dist/utils/mixin/error.js.map +1 -0
- package/dist/utils/mixin/index.d.ts +3 -0
- package/dist/utils/mixin/index.d.ts.map +1 -0
- package/dist/{expressions/quantities/reqlem → utils/mixin}/index.js +2 -2
- package/dist/utils/mixin/index.js.map +1 -0
- package/dist/utils/phrase-renderer/index.d.ts +4 -0
- package/dist/utils/phrase-renderer/index.d.ts.map +1 -0
- package/dist/utils/phrase-renderer/index.js +43 -0
- package/dist/utils/phrase-renderer/index.js.map +1 -0
- package/dist/utils/{_string/pretty-objects.d.ts → phrase-renderer/phrases.d.ts} +1 -1
- package/dist/utils/phrase-renderer/phrases.d.ts.map +1 -0
- package/dist/utils/{_string/pretty-objects.js → phrase-renderer/phrases.js} +7 -7
- package/dist/utils/phrase-renderer/phrases.js.map +1 -0
- package/dist/utils/{_string/post-processor.d.ts → phrase-renderer/renderer.d.ts} +2 -2
- package/dist/utils/phrase-renderer/renderer.d.ts.map +1 -0
- package/dist/utils/{_string/post-processor.js → phrase-renderer/renderer.js} +4 -4
- package/dist/utils/phrase-renderer/renderer.js.map +1 -0
- package/dist/utils/types.d.ts +2 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/dist/utils/types.js +3 -0
- package/dist/utils/types.js.map +1 -0
- package/dist/utils/util.d.ts +6 -0
- package/dist/utils/util.d.ts.map +1 -0
- package/dist/utils/util.js +23 -0
- package/dist/utils/util.js.map +1 -0
- package/package.json +6 -4
- package/src/core/graph/entity.ts +22 -38
- package/src/core/graph/error.ts +7 -0
- package/src/core/graph/index.ts +2 -2
- package/src/core/graph/origin/dummy.ts +23 -0
- package/src/core/graph/origin/events.ts +21 -60
- package/src/core/graph/origin/exporter.ts +26 -24
- package/src/core/graph/origin/index.ts +5 -3
- package/src/core/graph/origin/kind-map/index.ts +57 -57
- package/src/core/graph/origin/origin.ts +144 -0
- package/src/core/graph/origin/props.ts +11 -0
- package/src/core/graph/origin/template.ts +36 -0
- package/src/core/graph/origin/tracker.ts +15 -26
- package/src/core/graph/origin/{node.ts → vertex.ts} +25 -22
- package/src/core/graph/relation.ts +8 -10
- package/src/core/graph/resource/creation-options.ts +27 -0
- package/src/core/graph/resource/dummy/base.ts +13 -0
- package/src/core/graph/resource/forward/error.ts +7 -0
- package/src/core/graph/resource/{reference/fw-ref-exports.ts → forward/exports.ts} +48 -43
- package/src/core/graph/resource/forward/index.ts +2 -0
- package/src/core/graph/resource/{reference/fw-ref.ts → forward/ref.ts} +76 -40
- package/src/core/graph/resource/gvk/0-base.ts +37 -0
- package/src/core/graph/resource/gvk/1-group.ts +23 -0
- package/src/core/graph/resource/gvk/2=version.ts +21 -0
- package/src/core/graph/resource/gvk/3-gvk.ts +56 -0
- package/src/core/graph/resource/gvk/4-subkind.ts +19 -0
- package/src/core/graph/resource/gvk/index.ts +5 -0
- package/src/core/graph/resource/gvk/strings.ts +3 -0
- package/src/core/graph/resource/ident/ident.ts +140 -0
- package/src/core/graph/resource/ident/index.ts +1 -0
- package/src/core/graph/resource/ident/parsing.ts +36 -0
- package/src/core/graph/resource/index.ts +10 -9
- package/src/core/graph/resource/k8s-resource.ts +98 -0
- package/src/core/graph/resource/part.ts +26 -0
- package/src/core/graph/resource/props.ts +11 -0
- package/src/core/graph/resource/ref.ts +33 -0
- package/src/core/graph/resource/resource.ts +78 -0
- package/src/core/graph/resource/vertex.ts +134 -0
- package/src/core/graph/{node.ts → vertex.ts} +35 -38
- package/src/core/manifest/index.ts +7 -18
- package/src/core/tracing/embedder.ts +4 -0
- package/src/core/tracing/git.ts +9 -9
- package/src/core/tracing/index.ts +2 -2
- package/src/core/tracing/{trace.ts → source.ts} +6 -6
- package/src/expressions/data-sources/env-var.ts +15 -33
- package/src/expressions/data-sources/error.ts +8 -0
- package/src/expressions/data-sources/index.ts +1 -1
- package/src/expressions/data-sources/interface.ts +14 -28
- package/src/expressions/data-sources/js-object.ts +39 -0
- package/src/expressions/data-sources/local-file.ts +55 -61
- package/src/expressions/network/error.ts +7 -0
- package/src/expressions/network/index.ts +5 -1
- package/src/expressions/network/ip/ip4.ts +14 -0
- package/src/expressions/network/ip/subnet4.ts +9 -0
- package/src/expressions/network/ports/entry.ts +44 -0
- package/src/expressions/network/ports/mapping.ts +108 -0
- package/src/expressions/network/ports/{tools/parse.ts → parser.ts} +4 -4
- package/src/expressions/network/ports/provider.ts +193 -0
- package/src/expressions/network/ports/types.ts +23 -9
- package/src/expressions/quantities/error.ts +8 -0
- package/src/expressions/quantities/index.ts +11 -2
- package/src/expressions/quantities/reqs/objects.ts +85 -0
- package/src/expressions/quantities/{reqlem → reqs}/parser.ts +5 -5
- package/src/expressions/quantities/reqs/types.ts +35 -0
- package/src/expressions/quantities/reqs/values.ts +47 -0
- package/src/expressions/quantities/units/{units.ts → built-in.ts} +14 -7
- package/src/expressions/quantities/units/dimension.ts +47 -0
- package/src/expressions/quantities/units/parser.ts +11 -0
- package/src/expressions/quantities/units/types.ts +1 -0
- package/src/expressions/quantities/units/validator.ts +17 -0
- package/src/expressions/quantities/units/value.ts +22 -0
- package/src/expressions/quantities/util.ts +37 -0
- package/src/expressions/workload/cmd/cli-term.ts +13 -12
- package/src/expressions/workload/cmd/cmd-line.ts +103 -0
- package/src/expressions/workload/cmd/types.ts +4 -4
- package/src/expressions/workload/cronjob/parse-type.ts +58 -0
- package/src/expressions/workload/cronjob/shorthand.ts +37 -0
- package/src/expressions/workload/cronjob/stanza.ts +91 -0
- package/src/expressions/workload/cronjob/types.ts +3 -0
- package/src/expressions/workload/error.ts +7 -0
- package/src/expressions/workload/image/1-host.ts +31 -0
- package/src/expressions/workload/image/2-namespace.ts +49 -0
- package/src/expressions/workload/image/3-repository.ts +50 -0
- package/src/expressions/workload/image/4-image.ts +95 -0
- package/src/expressions/workload/image/index.ts +4 -1
- package/src/expressions/workload/image/types.ts +5 -0
- package/src/expressions/workload/index.ts +9 -3
- package/src/expressions/workload/owner/group.ts +30 -0
- package/src/expressions/workload/owner/index.ts +3 -0
- package/src/expressions/workload/owner/ownership.ts +26 -0
- package/src/expressions/workload/owner/user.ts +34 -0
- package/src/utils/index.ts +3 -3
- package/src/utils/{displayers → mixin/display}/displayers.ts +26 -20
- package/src/utils/{embedder → mixin/embedder}/base.ts +4 -2
- package/src/utils/mixin/embedder/index.ts +1 -0
- package/src/{expressions/network/ports → utils/mixin}/error.ts +2 -3
- package/src/utils/mixin/index.ts +2 -0
- package/src/utils/{_string/pretty-print.ts → phrase-renderer/index.ts} +5 -3
- package/src/utils/{_string/pretty-objects.ts → phrase-renderer/phrases.ts} +6 -6
- package/src/utils/{_string/post-processor.ts → phrase-renderer/renderer.ts} +1 -1
- package/src/utils/types.ts +1 -0
- package/src/utils/util.ts +24 -0
- package/dist/core/graph/node.d.ts.map +0 -1
- package/dist/core/graph/node.js.map +0 -1
- package/dist/core/graph/origin/entity.d.ts +0 -37
- package/dist/core/graph/origin/entity.d.ts.map +0 -1
- package/dist/core/graph/origin/entity.js.map +0 -1
- package/dist/core/graph/origin/external.d.ts +0 -14
- package/dist/core/graph/origin/external.d.ts.map +0 -1
- package/dist/core/graph/origin/external.js +0 -22
- package/dist/core/graph/origin/external.js.map +0 -1
- package/dist/core/graph/origin/node.d.ts +0 -23
- package/dist/core/graph/origin/node.d.ts.map +0 -1
- package/dist/core/graph/origin/node.js.map +0 -1
- package/dist/core/graph/origin/origin-events.d.ts +0 -41
- package/dist/core/graph/origin/origin-events.d.ts.map +0 -1
- package/dist/core/graph/origin/origin-events.js +0 -46
- package/dist/core/graph/origin/origin-events.js.map +0 -1
- package/dist/core/graph/resource/api-kind/index.d.ts +0 -54
- package/dist/core/graph/resource/api-kind/index.d.ts.map +0 -1
- package/dist/core/graph/resource/api-kind/index.js +0 -239
- package/dist/core/graph/resource/api-kind/index.js.map +0 -1
- package/dist/core/graph/resource/api-kind/pluralize.d.ts +0 -24
- package/dist/core/graph/resource/api-kind/pluralize.d.ts.map +0 -1
- package/dist/core/graph/resource/api-kind/pluralize.js +0 -16
- package/dist/core/graph/resource/api-kind/pluralize.js.map +0 -1
- package/dist/core/graph/resource/child.d.ts +0 -11
- package/dist/core/graph/resource/child.d.ts.map +0 -1
- package/dist/core/graph/resource/child.js +0 -22
- package/dist/core/graph/resource/child.js.map +0 -1
- package/dist/core/graph/resource/entity.d.ts +0 -22
- package/dist/core/graph/resource/entity.d.ts.map +0 -1
- package/dist/core/graph/resource/entity.js.map +0 -1
- package/dist/core/graph/resource/external/base.d.ts +0 -14
- package/dist/core/graph/resource/external/base.d.ts.map +0 -1
- package/dist/core/graph/resource/external/base.js +0 -37
- package/dist/core/graph/resource/external/base.js.map +0 -1
- package/dist/core/graph/resource/external/features.d.ts +0 -2
- package/dist/core/graph/resource/external/features.d.ts.map +0 -1
- package/dist/core/graph/resource/external/features.js.map +0 -1
- package/dist/core/graph/resource/external/index.d.ts +0 -4
- package/dist/core/graph/resource/external/index.d.ts.map +0 -1
- package/dist/core/graph/resource/external/index.js.map +0 -1
- package/dist/core/graph/resource/external/props.d.ts +0 -15
- package/dist/core/graph/resource/external/props.d.ts.map +0 -1
- package/dist/core/graph/resource/external/props.js.map +0 -1
- package/dist/core/graph/resource/field.d.ts +0 -2
- package/dist/core/graph/resource/field.d.ts.map +0 -1
- package/dist/core/graph/resource/field.js.map +0 -1
- package/dist/core/graph/resource/node.d.ts +0 -30
- package/dist/core/graph/resource/node.d.ts.map +0 -1
- package/dist/core/graph/resource/node.js.map +0 -1
- package/dist/core/graph/resource/ref-key/index.d.ts +0 -2
- package/dist/core/graph/resource/ref-key/index.d.ts.map +0 -1
- package/dist/core/graph/resource/ref-key/index.js.map +0 -1
- package/dist/core/graph/resource/ref-key/ref-key.d.ts.map +0 -1
- package/dist/core/graph/resource/ref-key/ref-key.js.map +0 -1
- package/dist/core/graph/resource/reference/error.d.ts +0 -5
- package/dist/core/graph/resource/reference/error.d.ts.map +0 -1
- package/dist/core/graph/resource/reference/error.js +0 -11
- package/dist/core/graph/resource/reference/error.js.map +0 -1
- package/dist/core/graph/resource/reference/fw-ref-exports.d.ts +0 -46
- package/dist/core/graph/resource/reference/fw-ref-exports.d.ts.map +0 -1
- package/dist/core/graph/resource/reference/fw-ref-exports.js.map +0 -1
- package/dist/core/graph/resource/reference/fw-ref.d.ts.map +0 -1
- package/dist/core/graph/resource/reference/fw-ref.js.map +0 -1
- package/dist/core/graph/resource/reference/index.d.ts +0 -4
- package/dist/core/graph/resource/reference/index.d.ts.map +0 -1
- package/dist/core/graph/resource/reference/index.js +0 -8
- package/dist/core/graph/resource/reference/index.js.map +0 -1
- package/dist/core/graph/resource/reference/refable.d.ts +0 -21
- package/dist/core/graph/resource/reference/refable.d.ts.map +0 -1
- package/dist/core/graph/resource/reference/refable.js.map +0 -1
- package/dist/core/graph/resource/top.d.ts +0 -21
- package/dist/core/graph/resource/top.d.ts.map +0 -1
- package/dist/core/graph/resource/top.js +0 -73
- package/dist/core/graph/resource/top.js.map +0 -1
- package/dist/core/tracing/trace.d.ts +0 -11
- package/dist/core/tracing/trace.d.ts.map +0 -1
- package/dist/core/tracing/trace.js.map +0 -1
- package/dist/core/tracing/traced.d.ts +0 -4
- package/dist/core/tracing/traced.d.ts.map +0 -1
- package/dist/core/tracing/traced.js.map +0 -1
- package/dist/expressions/data-sources/base.d.ts +0 -30
- package/dist/expressions/data-sources/base.d.ts.map +0 -1
- package/dist/expressions/data-sources/base.js +0 -37
- package/dist/expressions/data-sources/base.js.map +0 -1
- package/dist/expressions/network/ip/index.d.ts +0 -14
- package/dist/expressions/network/ip/index.d.ts.map +0 -1
- package/dist/expressions/network/ip/index.js.map +0 -1
- package/dist/expressions/network/ports/error.d.ts +0 -5
- package/dist/expressions/network/ports/error.d.ts.map +0 -1
- package/dist/expressions/network/ports/error.js.map +0 -1
- package/dist/expressions/network/ports/index.d.ts +0 -7
- package/dist/expressions/network/ports/index.d.ts.map +0 -1
- package/dist/expressions/network/ports/index.js +0 -13
- package/dist/expressions/network/ports/index.js.map +0 -1
- package/dist/expressions/network/ports/map.d.ts.map +0 -1
- package/dist/expressions/network/ports/map.js +0 -68
- package/dist/expressions/network/ports/map.js.map +0 -1
- package/dist/expressions/network/ports/set.d.ts +0 -93
- package/dist/expressions/network/ports/set.d.ts.map +0 -1
- package/dist/expressions/network/ports/set.js +0 -125
- package/dist/expressions/network/ports/set.js.map +0 -1
- package/dist/expressions/network/ports/tools/entry.d.ts +0 -6
- package/dist/expressions/network/ports/tools/entry.d.ts.map +0 -1
- package/dist/expressions/network/ports/tools/entry.js +0 -39
- package/dist/expressions/network/ports/tools/entry.js.map +0 -1
- package/dist/expressions/network/ports/tools/parse.d.ts +0 -3
- package/dist/expressions/network/ports/tools/parse.d.ts.map +0 -1
- package/dist/expressions/network/ports/tools/parse.js.map +0 -1
- package/dist/expressions/quantities/reqlem/index.d.ts +0 -3
- package/dist/expressions/quantities/reqlem/index.d.ts.map +0 -1
- package/dist/expressions/quantities/reqlem/index.js.map +0 -1
- package/dist/expressions/quantities/reqlem/objects.d.ts +0 -24
- package/dist/expressions/quantities/reqlem/objects.d.ts.map +0 -1
- package/dist/expressions/quantities/reqlem/objects.js +0 -103
- package/dist/expressions/quantities/reqlem/objects.js.map +0 -1
- package/dist/expressions/quantities/reqlem/parser.d.ts +0 -4
- package/dist/expressions/quantities/reqlem/parser.d.ts.map +0 -1
- package/dist/expressions/quantities/reqlem/parser.js.map +0 -1
- package/dist/expressions/quantities/reqlem/types.d.ts +0 -23
- package/dist/expressions/quantities/reqlem/types.d.ts.map +0 -1
- package/dist/expressions/quantities/reqlem/types.js.map +0 -1
- package/dist/expressions/quantities/units/index.d.ts +0 -3
- package/dist/expressions/quantities/units/index.d.ts.map +0 -1
- package/dist/expressions/quantities/units/index.js +0 -22
- package/dist/expressions/quantities/units/index.js.map +0 -1
- package/dist/expressions/quantities/units/unit-parser.d.ts +0 -29
- package/dist/expressions/quantities/units/unit-parser.d.ts.map +0 -1
- package/dist/expressions/quantities/units/unit-parser.js +0 -85
- package/dist/expressions/quantities/units/unit-parser.js.map +0 -1
- package/dist/expressions/quantities/units/units.d.ts.map +0 -1
- package/dist/expressions/quantities/units/units.js +0 -35
- package/dist/expressions/quantities/units/units.js.map +0 -1
- package/dist/expressions/workload/_user/index.d.ts +0 -16
- package/dist/expressions/workload/_user/index.d.ts.map +0 -1
- package/dist/expressions/workload/_user/index.js +0 -33
- package/dist/expressions/workload/_user/index.js.map +0 -1
- package/dist/expressions/workload/cmd/cli-command.d.ts +0 -22
- package/dist/expressions/workload/cmd/cli-command.d.ts.map +0 -1
- package/dist/expressions/workload/cmd/cli-command.js.map +0 -1
- package/dist/expressions/workload/cmd/index.d.ts +0 -3
- package/dist/expressions/workload/cmd/index.d.ts.map +0 -1
- package/dist/expressions/workload/cmd/index.js +0 -7
- package/dist/expressions/workload/cmd/index.js.map +0 -1
- package/dist/expressions/workload/cronjob/index.d.ts +0 -57
- package/dist/expressions/workload/cronjob/index.d.ts.map +0 -1
- package/dist/expressions/workload/cronjob/index.js.map +0 -1
- package/dist/expressions/workload/image/family.d.ts +0 -30
- package/dist/expressions/workload/image/family.d.ts.map +0 -1
- package/dist/expressions/workload/image/family.js +0 -180
- package/dist/expressions/workload/image/family.js.map +0 -1
- package/dist/utils/_string/index.d.ts +0 -6
- package/dist/utils/_string/index.d.ts.map +0 -1
- package/dist/utils/_string/index.js +0 -22
- package/dist/utils/_string/index.js.map +0 -1
- package/dist/utils/_string/markers.d.ts +0 -3
- package/dist/utils/_string/markers.d.ts.map +0 -1
- package/dist/utils/_string/markers.js +0 -64
- package/dist/utils/_string/markers.js.map +0 -1
- package/dist/utils/_string/post-processor.d.ts.map +0 -1
- package/dist/utils/_string/post-processor.js.map +0 -1
- package/dist/utils/_string/pretty-objects.d.ts.map +0 -1
- package/dist/utils/_string/pretty-objects.js.map +0 -1
- package/dist/utils/_string/pretty-print.d.ts +0 -2
- package/dist/utils/_string/pretty-print.d.ts.map +0 -1
- package/dist/utils/_string/pretty-print.js +0 -27
- package/dist/utils/_string/pretty-print.js.map +0 -1
- package/dist/utils/_string/super-script.d.ts +0 -2
- package/dist/utils/_string/super-script.d.ts.map +0 -1
- package/dist/utils/_string/super-script.js +0 -20
- package/dist/utils/_string/super-script.js.map +0 -1
- package/dist/utils/displayers/displayers.d.ts.map +0 -1
- package/dist/utils/displayers/displayers.js.map +0 -1
- package/dist/utils/displayers/index.d.ts.map +0 -1
- package/dist/utils/displayers/index.js.map +0 -1
- package/dist/utils/embedder/base.d.ts.map +0 -1
- package/dist/utils/embedder/base.js.map +0 -1
- package/dist/utils/embedder/index.d.ts.map +0 -1
- package/dist/utils/embedder/index.js.map +0 -1
- package/dist/utils/tagged-template.d.ts +0 -2
- package/dist/utils/tagged-template.d.ts.map +0 -1
- package/dist/utils/tagged-template.js +0 -10
- package/dist/utils/tagged-template.js.map +0 -1
- package/src/core/graph/entities.md +0 -1
- package/src/core/graph/origin/entity.ts +0 -138
- package/src/core/graph/origin/external.ts +0 -21
- package/src/core/graph/origin/origin-events.ts +0 -86
- package/src/core/graph/readme.md +0 -161
- package/src/core/graph/resource/api-kind/index.ts +0 -171
- package/src/core/graph/resource/api-kind/pluralize.ts +0 -40
- package/src/core/graph/resource/child.ts +0 -23
- package/src/core/graph/resource/entity.ts +0 -73
- package/src/core/graph/resource/external/base.ts +0 -39
- package/src/core/graph/resource/external/index.ts +0 -3
- package/src/core/graph/resource/external/props.ts +0 -16
- package/src/core/graph/resource/field.ts +0 -0
- package/src/core/graph/resource/node.ts +0 -132
- package/src/core/graph/resource/ref-key/index.ts +0 -1
- package/src/core/graph/resource/ref-key/ref-key.ts +0 -156
- package/src/core/graph/resource/reference/error.ts +0 -7
- package/src/core/graph/resource/reference/index.ts +0 -3
- package/src/core/graph/resource/reference/refable.ts +0 -26
- package/src/core/graph/resource/top.ts +0 -82
- package/src/core/tracing/traced.ts +0 -4
- package/src/expressions/data-sources/base.ts +0 -38
- package/src/expressions/network/ip/index.ts +0 -17
- package/src/expressions/network/ports/index.ts +0 -8
- package/src/expressions/network/ports/map.ts +0 -88
- package/src/expressions/network/ports/set.ts +0 -178
- package/src/expressions/network/ports/tools/entry.ts +0 -41
- package/src/expressions/quantities/reqlem/index.ts +0 -2
- package/src/expressions/quantities/reqlem/objects.ts +0 -107
- package/src/expressions/quantities/reqlem/types.ts +0 -28
- package/src/expressions/quantities/units/index.ts +0 -2
- package/src/expressions/quantities/units/unit-parser.ts +0 -92
- package/src/expressions/workload/_user/index.ts +0 -24
- package/src/expressions/workload/cmd/cli-command.ts +0 -99
- package/src/expressions/workload/cmd/index.ts +0 -2
- package/src/expressions/workload/cronjob/index.ts +0 -166
- package/src/expressions/workload/image/family.ts +0 -87
- package/src/utils/_string/index.ts +0 -5
- package/src/utils/_string/markers.ts +0 -66
- package/src/utils/_string/super-script.ts +0 -17
- package/src/utils/tagged-template.ts +0 -6
- /package/dist/core/graph/{resource/external → origin}/props.js +0 -0
- /package/dist/{utils/embedder → core/graph/resource/dummy}/index.d.ts +0 -0
- /package/dist/{utils/embedder → core/graph/resource/dummy}/index.js +0 -0
- /package/dist/expressions/quantities/{reqlem → reqs}/types.js +0 -0
- /package/dist/utils/{displayers → mixin/display}/index.d.ts +0 -0
- /package/dist/utils/{displayers → mixin/display}/index.js +0 -0
- /package/dist/utils/{embedder → mixin/embedder}/base.d.ts +0 -0
- /package/src/{utils/embedder → core/graph/resource/dummy}/index.ts +0 -0
- /package/src/{core/graph/resource/external/features.ts → expressions/workload/image/util.ts} +0 -0
- /package/src/utils/{displayers → mixin/display}/index.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-type.js","sourceRoot":"","sources":["../../../../src/expressions/workload/cronjob/parse-type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Cron_Record, Cron_RecordFromTuple } from "./parse-type";
|
|
2
|
+
import { CronStanza } from "./stanza";
|
|
3
|
+
export declare namespace Cron {
|
|
4
|
+
function from<R extends Cron_Record>(record: R): CronStanza<R>;
|
|
5
|
+
const minutely: CronStanza<Cron_RecordFromTuple<[true, true, true, true, true]>>;
|
|
6
|
+
const hourly: CronStanza<Cron_RecordFromTuple<[0, true, true, true, true]>>;
|
|
7
|
+
const daily: CronStanza<Cron_RecordFromTuple<[0, 0, true, true, true]>>;
|
|
8
|
+
const weekly: CronStanza<Cron_RecordFromTuple<[0, 0, true, true, 0]>>;
|
|
9
|
+
const monthly: CronStanza<Cron_RecordFromTuple<[0, 0, 1, true, true]>>;
|
|
10
|
+
const yearly: CronStanza<Cron_RecordFromTuple<[0, 0, 1, 1, true]>>;
|
|
11
|
+
function parse(cron: string): CronStanza<Cron_Record>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=shorthand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shorthand.d.ts","sourceRoot":"","sources":["../../../../src/expressions/workload/cronjob/shorthand.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAc,MAAM,cAAc,CAAA;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAYrC,yBAAiB,IAAI,CAAC;IAClB,SAAgB,IAAI,CAAC,CAAC,SAAS,WAAW,EAAE,MAAM,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAEpE;IAEM,MAAM,QAAQ,kEAA0C,CAAA;IACxD,MAAM,MAAM,+DAAuC,CAAA;IACnD,MAAM,KAAK,4DAAoC,CAAA;IAC/C,MAAM,MAAM,yDAAiC,CAAA;IAC7C,MAAM,OAAO,yDAAiC,CAAA;IAC9C,MAAM,MAAM,sDAA8B,CAAA;IAKjD,SAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,CAM3D;CACJ"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Cron = void 0;
|
|
4
|
+
const error_1 = require("../../../core/graph/error");
|
|
5
|
+
const stanza_1 = require("./stanza");
|
|
6
|
+
function shorthand(...items) {
|
|
7
|
+
return (0, stanza_1.CronStanza)({
|
|
8
|
+
minute: items[0],
|
|
9
|
+
hour: items[1],
|
|
10
|
+
dayOfMonth: items[2],
|
|
11
|
+
month: items[3],
|
|
12
|
+
dayOfWeek: items[4]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
var Cron;
|
|
16
|
+
(function (Cron) {
|
|
17
|
+
function from(record) {
|
|
18
|
+
return (0, stanza_1.CronStanza)(record);
|
|
19
|
+
}
|
|
20
|
+
Cron.from = from;
|
|
21
|
+
Cron.minutely = shorthand(true, true, true, true, true);
|
|
22
|
+
Cron.hourly = shorthand(0, true, true, true, true);
|
|
23
|
+
Cron.daily = shorthand(0, 0, true, true, true);
|
|
24
|
+
Cron.weekly = shorthand(0, 0, true, true, 0);
|
|
25
|
+
Cron.monthly = shorthand(0, 0, 1, true, true);
|
|
26
|
+
Cron.yearly = shorthand(0, 0, 1, 1, true);
|
|
27
|
+
// TODO: Parse cron strings with type safety
|
|
28
|
+
// TODO: Write a runtime parser too
|
|
29
|
+
// TODO: Consider using an existing library for this
|
|
30
|
+
function parse(cron) {
|
|
31
|
+
const parts = cron.split(" ");
|
|
32
|
+
if (parts.length !== 5) {
|
|
33
|
+
throw new error_1.K8tsGraphError(`Invalid cron string: ${cron}`);
|
|
34
|
+
}
|
|
35
|
+
return shorthand(...parts);
|
|
36
|
+
}
|
|
37
|
+
Cron.parse = parse;
|
|
38
|
+
})(Cron || (exports.Cron = Cron = {}));
|
|
39
|
+
//# sourceMappingURL=shorthand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shorthand.js","sourceRoot":"","sources":["../../../../src/expressions/workload/cronjob/shorthand.ts"],"names":[],"mappings":";;;AAAA,qDAA0D;AAE1D,qCAAqC;AAErC,SAAS,SAAS,CAAyB,GAAG,KAAU;IACpD,OAAO,IAAA,mBAAU,EAA4B;QACzC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;QAChB,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;QACd,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC;QACpB,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;QACf,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC;KACtB,CAAC,CAAA;AACN,CAAC;AAED,IAAiB,IAAI,CAsBpB;AAtBD,WAAiB,IAAI;IACjB,SAAgB,IAAI,CAAwB,MAAS;QACjD,OAAO,IAAA,mBAAU,EAAI,MAAM,CAAC,CAAA;IAChC,CAAC;IAFe,SAAI,OAEnB,CAAA;IAEY,aAAQ,GAAG,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;IAClD,WAAM,GAAG,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;IAC7C,UAAK,GAAG,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;IACzC,WAAM,GAAG,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IACvC,YAAO,GAAG,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;IACxC,WAAM,GAAG,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAA;IAEjD,4CAA4C;IAC5C,mCAAmC;IACnC,oDAAoD;IACpD,SAAgB,KAAK,CAAC,IAAY;QAC9B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAC7B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACrB,MAAM,IAAI,sBAAc,CAAC,wBAAwB,IAAI,EAAE,CAAC,CAAA;QAC5D,CAAC;QACD,OAAO,SAAS,CAAC,GAAI,KAAa,CAAC,CAAA;IACvC,CAAC;IANe,UAAK,QAMpB,CAAA;AACL,CAAC,EAtBgB,IAAI,oBAAJ,IAAI,QAsBpB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Cron_Element, Cron_Record, Cron_RecordToTuple } from "./parse-type";
|
|
2
|
+
import type { _SetObjectKey } from "./types";
|
|
3
|
+
export declare const CRON_STRING: unique symbol;
|
|
4
|
+
export interface CronStanza<R extends Cron_Record = Cron_Record> {
|
|
5
|
+
get tuple(): Cron_RecordToTuple<R>;
|
|
6
|
+
toString(): string;
|
|
7
|
+
get string(): string;
|
|
8
|
+
minute<Minute extends Cron_Element>(minute: Minute): CronStanza<_SetObjectKey<R, "minute", Minute>>;
|
|
9
|
+
hour<Hour extends Cron_Element>(hour: Hour): CronStanza<_SetObjectKey<R, "hour", Hour>>;
|
|
10
|
+
dayOfMonth<DayOfMonth extends Cron_Element>(dayOfMonth: DayOfMonth): CronStanza<_SetObjectKey<R, "dayOfMonth", DayOfMonth>>;
|
|
11
|
+
month<Month extends Cron_Element>(month: Month): CronStanza<_SetObjectKey<R, "month", Month>>;
|
|
12
|
+
dayOfWeek<DayOfWeek extends Cron_Element>(dayOfWeek: DayOfWeek): CronStanza<_SetObjectKey<R, "dayOfWeek", DayOfWeek>>;
|
|
13
|
+
}
|
|
14
|
+
export declare function CronStanza<R extends Cron_Record>(record: R): CronStanza<R>;
|
|
15
|
+
//# sourceMappingURL=stanza.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stanza.d.ts","sourceRoot":"","sources":["../../../../src/expressions/workload/cronjob/stanza.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,MAAM,CAAC,OAAO,CAAC,MAAM,WAAW,EAAE,OAAO,MAAM,CAAA;AAW/C,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW;IAC3D,IAAI,KAAK,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAA;IAClC,QAAQ,IAAI,MAAM,CAAA;IAClB,IAAI,MAAM,IAAI,MAAM,CAAA;IACpB,MAAM,CAAC,MAAM,SAAS,YAAY,EAC9B,MAAM,EAAE,MAAM,GACf,UAAU,CAAC,aAAa,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAA;IACjD,IAAI,CAAC,IAAI,SAAS,YAAY,EAAE,IAAI,EAAE,IAAI,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAA;IACvF,UAAU,CAAC,UAAU,SAAS,YAAY,EACtC,UAAU,EAAE,UAAU,GACvB,UAAU,CAAC,aAAa,CAAC,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC,CAAA;IACzD,KAAK,CAAC,KAAK,SAAS,YAAY,EAAE,KAAK,EAAE,KAAK,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAA;IAC7F,SAAS,CAAC,SAAS,SAAS,YAAY,EACpC,SAAS,EAAE,SAAS,GACrB,UAAU,CAAC,aAAa,CAAC,CAAC,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC,CAAA;CAC1D;AACD,wBAAgB,UAAU,CAAC,CAAC,SAAS,WAAW,EAAE,MAAM,EAAE,CAAC,GACrB,UAAU,CAAC,CAAC,CAAC,CAClD"}
|
|
@@ -34,8 +34,8 @@ var __runInitializers = (this && this.__runInitializers) || function (thisArg, i
|
|
|
34
34
|
return useValue ? value : void 0;
|
|
35
35
|
};
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
38
|
-
const
|
|
37
|
+
exports.CronStanza = CronStanza;
|
|
38
|
+
const display_1 = require("../../../utils/mixin/display");
|
|
39
39
|
function _convertStanzaElement(X) {
|
|
40
40
|
if (X === true) {
|
|
41
41
|
return "*";
|
|
@@ -45,8 +45,11 @@ function _convertStanzaElement(X) {
|
|
|
45
45
|
}
|
|
46
46
|
return `${X}`;
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
function CronStanza(record) {
|
|
49
|
+
return new _CronStanza(record);
|
|
50
|
+
}
|
|
51
|
+
let _CronStanza = (() => {
|
|
52
|
+
let _classDecorators = [(0, display_1.display)({
|
|
50
53
|
simple(self) {
|
|
51
54
|
return self.string;
|
|
52
55
|
}
|
|
@@ -54,98 +57,62 @@ let CronStanza = (() => {
|
|
|
54
57
|
let _classDescriptor;
|
|
55
58
|
let _classExtraInitializers = [];
|
|
56
59
|
let _classThis;
|
|
57
|
-
var
|
|
60
|
+
var _CronStanza = class {
|
|
58
61
|
static { _classThis = this; }
|
|
59
62
|
static {
|
|
60
63
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
61
64
|
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
62
|
-
|
|
65
|
+
_CronStanza = _classThis = _classDescriptor.value;
|
|
63
66
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
64
67
|
__runInitializers(_classThis, _classExtraInitializers);
|
|
65
68
|
}
|
|
66
|
-
|
|
67
|
-
constructor(
|
|
68
|
-
this.
|
|
69
|
+
_parts;
|
|
70
|
+
constructor(_parts) {
|
|
71
|
+
this._parts = _parts;
|
|
69
72
|
}
|
|
70
73
|
get tuple() {
|
|
71
74
|
return [
|
|
72
|
-
this.
|
|
73
|
-
this.
|
|
74
|
-
this.
|
|
75
|
-
this.
|
|
76
|
-
this.
|
|
75
|
+
this._parts.minute,
|
|
76
|
+
this._parts.hour,
|
|
77
|
+
this._parts.dayOfMonth,
|
|
78
|
+
this._parts.month,
|
|
79
|
+
this._parts.dayOfWeek
|
|
77
80
|
];
|
|
78
81
|
}
|
|
79
82
|
get string() {
|
|
80
83
|
return this.tuple.map(_convertStanzaElement).join(" ");
|
|
81
84
|
}
|
|
82
85
|
minute(minute) {
|
|
83
|
-
return new
|
|
84
|
-
...this.
|
|
86
|
+
return new _CronStanza({
|
|
87
|
+
...this._parts,
|
|
85
88
|
minute
|
|
86
89
|
});
|
|
87
90
|
}
|
|
88
91
|
hour(hour) {
|
|
89
|
-
return new
|
|
90
|
-
...this.
|
|
92
|
+
return new _CronStanza({
|
|
93
|
+
...this._parts,
|
|
91
94
|
hour
|
|
92
95
|
});
|
|
93
96
|
}
|
|
94
97
|
dayOfMonth(dayOfMonth) {
|
|
95
|
-
return new
|
|
96
|
-
...this.
|
|
98
|
+
return new _CronStanza({
|
|
99
|
+
...this._parts,
|
|
97
100
|
dayOfMonth
|
|
98
101
|
});
|
|
99
102
|
}
|
|
100
103
|
month(month) {
|
|
101
|
-
return new
|
|
102
|
-
...this.
|
|
104
|
+
return new _CronStanza({
|
|
105
|
+
...this._parts,
|
|
103
106
|
month
|
|
104
107
|
});
|
|
105
108
|
}
|
|
106
109
|
dayOfWeek(dayOfWeek) {
|
|
107
|
-
return new
|
|
108
|
-
...this.
|
|
110
|
+
return new _CronStanza({
|
|
111
|
+
...this._parts,
|
|
109
112
|
dayOfWeek
|
|
110
113
|
});
|
|
111
114
|
}
|
|
112
115
|
};
|
|
113
|
-
return
|
|
116
|
+
return _CronStanza = _classThis;
|
|
114
117
|
})();
|
|
115
|
-
|
|
116
|
-
var Cron;
|
|
117
|
-
(function (Cron) {
|
|
118
|
-
function of(...items) {
|
|
119
|
-
return new CronStanza({
|
|
120
|
-
minute: items[0],
|
|
121
|
-
hour: items[1],
|
|
122
|
-
dayOfMonth: items[2],
|
|
123
|
-
month: items[3],
|
|
124
|
-
dayOfWeek: items[4]
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
Cron.of = of;
|
|
128
|
-
function from(record) {
|
|
129
|
-
return new CronStanza(record);
|
|
130
|
-
}
|
|
131
|
-
Cron.from = from;
|
|
132
|
-
Cron.minutely = of(true, true, true, true, true);
|
|
133
|
-
Cron.hourly = of(0, true, true, true, true);
|
|
134
|
-
Cron.daily = of(0, 0, true, true, true);
|
|
135
|
-
Cron.weekly = of(0, 0, true, true, 0);
|
|
136
|
-
Cron.monthly = of(0, 0, 1, true, true);
|
|
137
|
-
Cron.yearly = of(0, 0, 1, 1, true);
|
|
138
|
-
function parse(cron) {
|
|
139
|
-
const parts = cron.split(" ");
|
|
140
|
-
if (parts.length !== 5) {
|
|
141
|
-
throw new Error(`Invalid cron string: ${cron}`);
|
|
142
|
-
}
|
|
143
|
-
return of(...parts);
|
|
144
|
-
}
|
|
145
|
-
Cron.parse = parse;
|
|
146
|
-
function record(record) {
|
|
147
|
-
return new CronStanza(record);
|
|
148
|
-
}
|
|
149
|
-
Cron.record = record;
|
|
150
|
-
})(Cron || (exports.Cron = Cron = {}));
|
|
151
|
-
//# sourceMappingURL=index.js.map
|
|
118
|
+
//# sourceMappingURL=stanza.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stanza.js","sourceRoot":"","sources":["../../../../src/expressions/workload/cronjob/stanza.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,gCAEC;AAjCD,0DAAsD;AAMtD,SAAS,qBAAqB,CAAC,CAAe;IAC1C,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QACb,OAAO,GAAG,CAAA;IACd,CAAC;IACD,IAAI,CAAC,KAAK,KAAK,EAAE,CAAC;QACd,OAAO,GAAG,CAAA;IACd,CAAC;IACD,OAAO,GAAG,CAAC,EAAE,CAAA;AACjB,CAAC;AAiBD,SAAgB,UAAU,CAAwB,MAAS;IACvD,OAAO,IAAI,WAAW,CAAC,MAAM,CAAkB,CAAA;AACnD,CAAC;IAMK,WAAW;4BALhB,IAAA,iBAAO,EAAC;YACL,MAAM,CAAC,IAAI;gBACP,OAAO,IAAI,CAAC,MAAM,CAAA;YACtB,CAAC;SACJ,CAAC;;;;;;;;YACF,6KAmDC;;;YAnDK,uDAAW;;QACgB,MAAM;QAAnC,YAA6B,MAAmB;YAAnB,WAAM,GAAN,MAAM,CAAa;QAAG,CAAC;QAEpD,IAAI,KAAK;YACL,OAAO;gBACH,IAAI,CAAC,MAAM,CAAC,MAAM;gBAClB,IAAI,CAAC,MAAM,CAAC,IAAI;gBAChB,IAAI,CAAC,MAAM,CAAC,UAAU;gBACtB,IAAI,CAAC,MAAM,CAAC,KAAK;gBACjB,IAAI,CAAC,MAAM,CAAC,SAAS;aACW,CAAA;QACxC,CAAC;QAED,IAAI,MAAM;YACN,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QAC1D,CAAC;QAED,MAAM,CAA8B,MAAc;YAC9C,OAAO,IAAI,WAAW,CAAC;gBACnB,GAAG,IAAI,CAAC,MAAM;gBACd,MAAM;aACF,CAAC,CAAA;QACb,CAAC;QAED,IAAI,CAA4B,IAAU;YACtC,OAAO,IAAI,WAAW,CAAC;gBACnB,GAAG,IAAI,CAAC,MAAM;gBACd,IAAI;aACA,CAAC,CAAA;QACb,CAAC;QAED,UAAU,CAAkC,UAAsB;YAC9D,OAAO,IAAI,WAAW,CAAC;gBACnB,GAAG,IAAI,CAAC,MAAM;gBACd,UAAU;aACN,CAAC,CAAA;QACb,CAAC;QAED,KAAK,CAA6B,KAAY;YAC1C,OAAO,IAAI,WAAW,CAAC;gBACnB,GAAG,IAAI,CAAC,MAAM;gBACd,KAAK;aACD,CAAC,CAAA;QACb,CAAC;QAED,SAAS,CAAiC,SAAoB;YAC1D,OAAO,IAAI,WAAW,CAAC;gBACnB,GAAG,IAAI,CAAC,MAAM;gBACd,SAAS;aACL,CAAC,CAAA;QACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/expressions/workload/cronjob/types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/expressions/workload/cronjob/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,CAAC,GAAG,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,GAAG,EAAE,CAAC,IAAI;KACnE,CAAC,IAAI,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;CAC7C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/expressions/workload/error.ts"],"names":[],"mappings":"AAAA,qBAAa,sBAAuB,SAAQ,KAAK;IACpC,IAAI,EAAG,wBAAwB,CAAS;gBACrC,OAAO,EAAE,MAAM,EAAE,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;QAAE,KAAK,CAAC,EAAE,KAAK,CAAA;KAAO;CAIpF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.K8tsWorkloadToolsError = void 0;
|
|
4
|
+
class K8tsWorkloadToolsError extends Error {
|
|
5
|
+
name = "K8tsWorkloadToolsError";
|
|
6
|
+
constructor(message, fields = {}) {
|
|
7
|
+
super(message);
|
|
8
|
+
Object.assign(this, fields);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.K8tsWorkloadToolsError = K8tsWorkloadToolsError;
|
|
12
|
+
//# sourceMappingURL=error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/expressions/workload/error.ts"],"names":[],"mappings":";;;AAAA,MAAa,sBAAuB,SAAQ,KAAK;IACpC,IAAI,GAAG,wBAAiC,CAAA;IACjD,YAAY,OAAe,EAAE,SAAkD,EAAE;QAC7E,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;IAC/B,CAAC;CACJ;AAND,wDAMC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ImageNamespace } from "./2-namespace";
|
|
2
|
+
import { ImageRepository } from "./3-repository";
|
|
3
|
+
import type { JoinIfNotEmpty } from "./types";
|
|
4
|
+
export interface ImageRegistry<Text extends string = string> {
|
|
5
|
+
toString(): Text;
|
|
6
|
+
isEmpty: boolean;
|
|
7
|
+
repo<Name extends string = "">(name?: Name): ImageRepository<JoinIfNotEmpty<Text, "/", Name>>;
|
|
8
|
+
namespace<Ns extends string = "">(namespace?: Ns): ImageNamespace<JoinIfNotEmpty<Text, "/", Ns>>;
|
|
9
|
+
}
|
|
10
|
+
export declare function ImageRegistry<Text extends string = "">(registry?: Text): ImageRegistry<Text>;
|
|
11
|
+
//# sourceMappingURL=1-host.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1-host.d.ts","sourceRoot":"","sources":["../../../../src/expressions/workload/image/1-host.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C,MAAM,WAAW,aAAa,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM;IACvD,QAAQ,IAAI,IAAI,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,CAAC,IAAI,SAAS,MAAM,GAAG,EAAE,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,eAAe,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAA;IAC7F,SAAS,CAAC,EAAE,SAAS,MAAM,GAAG,EAAE,EAAE,SAAS,CAAC,EAAE,EAAE,GAAG,cAAc,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,CAAA;CACnG;AACD,wBAAgB,aAAa,CAAC,IAAI,SAAS,MAAM,GAAG,EAAE,EAAE,QAAQ,CAAC,EAAE,IAAI,GACtB,aAAa,CAAC,IAAI,CAAC,CACnE"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImageRegistry = ImageRegistry;
|
|
4
|
+
const _2_namespace_1 = require("./2-namespace");
|
|
5
|
+
const _3_repository_1 = require("./3-repository");
|
|
6
|
+
function ImageRegistry(registry) {
|
|
7
|
+
return new _ImageRegistry(registry ?? "");
|
|
8
|
+
}
|
|
9
|
+
class _ImageRegistry {
|
|
10
|
+
_registry;
|
|
11
|
+
constructor(_registry) {
|
|
12
|
+
this._registry = _registry;
|
|
13
|
+
}
|
|
14
|
+
toString() {
|
|
15
|
+
return this._registry;
|
|
16
|
+
}
|
|
17
|
+
get isEmpty() {
|
|
18
|
+
return this._registry === "";
|
|
19
|
+
}
|
|
20
|
+
repo(name) {
|
|
21
|
+
return (0, _3_repository_1.ImageRepository)(this._registry, "", name ?? "");
|
|
22
|
+
}
|
|
23
|
+
namespace(namespace) {
|
|
24
|
+
return (0, _2_namespace_1.ImageNamespace)(this._registry, namespace ?? "");
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=1-host.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1-host.js","sourceRoot":"","sources":["../../../../src/expressions/workload/image/1-host.ts"],"names":[],"mappings":";;AAUA,sCAEC;AAZD,gDAA8C;AAC9C,kDAAgD;AAShD,SAAgB,aAAa,CAA2B,QAAe;IACnE,OAAO,IAAI,cAAc,CAAC,QAAQ,IAAI,EAAE,CAAwB,CAAA;AACpE,CAAC;AACD,MAAM,cAAc;IACK;IAArB,YAAqB,SAAiB;QAAjB,cAAS,GAAT,SAAS,CAAQ;IAAG,CAAC;IAC1C,QAAQ;QACJ,OAAO,IAAI,CAAC,SAAS,CAAA;IACzB,CAAC;IAED,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,SAAS,KAAK,EAAE,CAAA;IAChC,CAAC;IAED,IAAI,CAAC,IAAa;QACd,OAAO,IAAA,+BAAe,EAAM,IAAI,CAAC,SAAS,EAAE,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAA;IAC/D,CAAC;IAED,SAAS,CAAyB,SAAc;QAC5C,OAAO,IAAA,6BAAc,EAAM,IAAI,CAAC,SAAS,EAAE,SAAS,IAAI,EAAE,CAAC,CAAA;IAC/D,CAAC;CACJ"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ImageRegistry } from "./1-host";
|
|
2
|
+
import { ImageRepository } from "./3-repository";
|
|
3
|
+
import type { JoinIfNotEmpty } from "./types";
|
|
4
|
+
export interface ImageNamespace<Text extends string = string> {
|
|
5
|
+
toString(): Text;
|
|
6
|
+
isEmpty: boolean;
|
|
7
|
+
get registry(): ImageRegistry;
|
|
8
|
+
repo<Name extends string>(name?: Name): ImageRepository<JoinIfNotEmpty<Text, "/", Name>>;
|
|
9
|
+
}
|
|
10
|
+
export declare function ImageNamespace<Text extends string = "">(registry: string, namespace?: Text): ImageNamespace<Text>;
|
|
11
|
+
//# sourceMappingURL=2-namespace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"2-namespace.d.ts","sourceRoot":"","sources":["../../../../src/expressions/workload/image/2-namespace.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C,MAAM,WAAW,cAAc,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM;IACxD,QAAQ,IAAI,IAAI,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,QAAQ,IAAI,aAAa,CAAA;IAC7B,IAAI,CAAC,IAAI,SAAS,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,eAAe,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,CAAA;CAC3F;AACD,wBAAgB,cAAc,CAAC,IAAI,SAAS,MAAM,GAAG,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,IAAI,GAC9B,cAAc,CAAC,IAAI,CAAC,CAChF"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
4
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
5
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
6
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
7
|
+
var _, done = false;
|
|
8
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
9
|
+
var context = {};
|
|
10
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
11
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
12
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
13
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
14
|
+
if (kind === "accessor") {
|
|
15
|
+
if (result === void 0) continue;
|
|
16
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
17
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
18
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
19
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
20
|
+
}
|
|
21
|
+
else if (_ = accept(result)) {
|
|
22
|
+
if (kind === "field") initializers.unshift(_);
|
|
23
|
+
else descriptor[key] = _;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
27
|
+
done = true;
|
|
28
|
+
};
|
|
29
|
+
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
30
|
+
var useValue = arguments.length > 2;
|
|
31
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
32
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
33
|
+
}
|
|
34
|
+
return useValue ? value : void 0;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.ImageNamespace = ImageNamespace;
|
|
38
|
+
const utils_1 = require("../../../utils");
|
|
39
|
+
const _1_host_1 = require("./1-host");
|
|
40
|
+
const _3_repository_1 = require("./3-repository");
|
|
41
|
+
function ImageNamespace(registry, namespace) {
|
|
42
|
+
return new _ImageNamespace(registry, namespace ?? "");
|
|
43
|
+
}
|
|
44
|
+
let _ImageNamespace = (() => {
|
|
45
|
+
let _classDecorators = [(0, utils_1.display)({
|
|
46
|
+
simple: s => s._url
|
|
47
|
+
})];
|
|
48
|
+
let _classDescriptor;
|
|
49
|
+
let _classExtraInitializers = [];
|
|
50
|
+
let _classThis;
|
|
51
|
+
var _ImageNamespace = class {
|
|
52
|
+
static { _classThis = this; }
|
|
53
|
+
static {
|
|
54
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
55
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
56
|
+
_ImageNamespace = _classThis = _classDescriptor.value;
|
|
57
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
58
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
59
|
+
}
|
|
60
|
+
_registry;
|
|
61
|
+
_namespace;
|
|
62
|
+
_url;
|
|
63
|
+
constructor(_registry, _namespace) {
|
|
64
|
+
this._registry = _registry;
|
|
65
|
+
this._namespace = _namespace;
|
|
66
|
+
const parts = [];
|
|
67
|
+
if (!this.registry.isEmpty) {
|
|
68
|
+
parts.push(this.registry);
|
|
69
|
+
}
|
|
70
|
+
if (this._namespace !== "") {
|
|
71
|
+
parts.push(this._namespace);
|
|
72
|
+
}
|
|
73
|
+
this._url = parts.join("/");
|
|
74
|
+
}
|
|
75
|
+
toString() {
|
|
76
|
+
return this._url;
|
|
77
|
+
}
|
|
78
|
+
get registry() {
|
|
79
|
+
return (0, _1_host_1.ImageRegistry)(this._registry);
|
|
80
|
+
}
|
|
81
|
+
get isEmpty() {
|
|
82
|
+
return this.registry.isEmpty && this._namespace === "";
|
|
83
|
+
}
|
|
84
|
+
repo(name) {
|
|
85
|
+
return (0, _3_repository_1.ImageRepository)(this._registry, this._namespace, name ?? "");
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
return _ImageNamespace = _classThis;
|
|
89
|
+
})();
|
|
90
|
+
//# sourceMappingURL=2-namespace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"2-namespace.js","sourceRoot":"","sources":["../../../../src/expressions/workload/image/2-namespace.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,wCAEC;AAbD,0CAAwC;AACxC,sCAAwC;AACxC,kDAAgD;AAShD,SAAgB,cAAc,CAA2B,QAAgB,EAAE,SAAgB;IACvF,OAAO,IAAI,eAAe,CAAC,QAAQ,EAAE,SAAS,IAAI,EAAE,CAAyB,CAAA;AACjF,CAAC;IAIK,eAAe;4BAHpB,IAAA,eAAO,EAAC;YACL,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;SACtB,CAAC;;;;;;;;YACF,6KA+BC;;;YA/BK,uDAAe;;QAGI,SAAS;QACT,UAAU;QAHd,IAAI,CAAQ;QAC7B,YACqB,SAAiB,EACjB,UAAkB;YADlB,cAAS,GAAT,SAAS,CAAQ;YACjB,eAAU,GAAV,UAAU,CAAQ;YAEnC,MAAM,KAAK,GAAG,EAAE,CAAA;YAChB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;gBACzB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;YAC7B,CAAC;YACD,IAAI,IAAI,CAAC,UAAU,KAAK,EAAE,EAAE,CAAC;gBACzB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;YAC/B,CAAC;YACD,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QAC/B,CAAC;QAED,QAAQ;YACJ,OAAO,IAAI,CAAC,IAAI,CAAA;QACpB,CAAC;QAED,IAAI,QAAQ;YACR,OAAO,IAAA,uBAAa,EAAM,IAAI,CAAC,SAAS,CAAC,CAAA;QAC7C,CAAC;QAED,IAAI,OAAO;YACP,OAAO,IAAI,CAAC,QAAQ,CAAC,OAAO,IAAI,IAAI,CAAC,UAAU,KAAK,EAAE,CAAA;QAC1D,CAAC;QAED,IAAI,CAA2B,IAAW;YACtC,OAAO,IAAA,+BAAe,EAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,CAAA;QACvE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ImageNamespace } from "./2-namespace";
|
|
2
|
+
import { Image } from "./4-image";
|
|
3
|
+
import type { JoinIfNotEmpty } from "./types";
|
|
4
|
+
export interface ImageRepository<Text extends string = string> {
|
|
5
|
+
toString(): Text;
|
|
6
|
+
get namespace(): ImageNamespace;
|
|
7
|
+
tag<Tag extends string = "">(tag?: Tag): Image<JoinIfNotEmpty<Text, ":", Tag>>;
|
|
8
|
+
digest<Digest extends string = "">(digest?: Digest): Image<JoinIfNotEmpty<Text, "@", Digest>>;
|
|
9
|
+
}
|
|
10
|
+
export declare function ImageRepository<Text extends string = "">(registry: string, namespace: string, repository?: string): ImageRepository<Text>;
|
|
11
|
+
//# sourceMappingURL=3-repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3-repository.d.ts","sourceRoot":"","sources":["../../../../src/expressions/workload/image/3-repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C,MAAM,WAAW,eAAe,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM;IACzD,QAAQ,IAAI,IAAI,CAAA;IAChB,IAAI,SAAS,IAAI,cAAc,CAAA;IAC/B,GAAG,CAAC,GAAG,SAAS,MAAM,GAAG,EAAE,EAAE,GAAG,CAAC,EAAE,GAAG,GAAG,KAAK,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;IAC9E,MAAM,CAAC,MAAM,SAAS,MAAM,GAAG,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC,CAAA;CAChG;AAED,wBAAgB,eAAe,CAAC,IAAI,SAAS,MAAM,GAAG,EAAE,EACpD,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,UAAU,CAAC,EAAE,MAAM,GAEmD,eAAe,CAAC,IAAI,CAAC,CAC9F"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImageRepository = ImageRepository;
|
|
4
|
+
const _2_namespace_1 = require("./2-namespace");
|
|
5
|
+
const _4_image_1 = require("./4-image");
|
|
6
|
+
function ImageRepository(registry, namespace, repository) {
|
|
7
|
+
return new _ImageRepository(registry, namespace, repository ?? "");
|
|
8
|
+
}
|
|
9
|
+
class _ImageRepository {
|
|
10
|
+
_registry;
|
|
11
|
+
_namespace;
|
|
12
|
+
_repository;
|
|
13
|
+
_url;
|
|
14
|
+
constructor(_registry, _namespace, _repository) {
|
|
15
|
+
this._registry = _registry;
|
|
16
|
+
this._namespace = _namespace;
|
|
17
|
+
this._repository = _repository;
|
|
18
|
+
const parts = [];
|
|
19
|
+
if (!this.namespace.isEmpty) {
|
|
20
|
+
parts.push(this.namespace.toString());
|
|
21
|
+
}
|
|
22
|
+
parts.push(this._repository);
|
|
23
|
+
this._url = parts.join("/");
|
|
24
|
+
}
|
|
25
|
+
get namespace() {
|
|
26
|
+
return (0, _2_namespace_1.ImageNamespace)(this._registry, this._namespace);
|
|
27
|
+
}
|
|
28
|
+
toString() {
|
|
29
|
+
return this._url;
|
|
30
|
+
}
|
|
31
|
+
tag(tag) {
|
|
32
|
+
return (0, _4_image_1.Image)(this._registry, this._namespace, this._repository, tag, "");
|
|
33
|
+
}
|
|
34
|
+
digest(digest) {
|
|
35
|
+
return (0, _4_image_1.Image)(this._registry, this._namespace, this._repository, "", digest);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=3-repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3-repository.js","sourceRoot":"","sources":["../../../../src/expressions/workload/image/3-repository.ts"],"names":[],"mappings":";;AAWA,0CAMC;AAjBD,gDAA8C;AAC9C,wCAAiC;AAUjC,SAAgB,eAAe,CAC3B,QAAgB,EAChB,SAAiB,EACjB,UAAmB;IAEnB,OAAO,IAAI,gBAAgB,CAAC,QAAQ,EAAE,SAAS,EAAE,UAAU,IAAI,EAAE,CAA0B,CAAA;AAC/F,CAAC;AAED,MAAM,gBAAgB;IAGG;IACA;IACA;IAJJ,IAAI,CAAQ;IAC7B,YACqB,SAAiB,EACjB,UAAkB,EAClB,WAAmB;QAFnB,cAAS,GAAT,SAAS,CAAQ;QACjB,eAAU,GAAV,UAAU,CAAQ;QAClB,gBAAW,GAAX,WAAW,CAAQ;QAEpC,MAAM,KAAK,GAAG,EAAE,CAAA;QAChB,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;YAC1B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAA;QACzC,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QAC5B,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAQ,CAAA;IACtC,CAAC;IAED,IAAI,SAAS;QACT,OAAO,IAAA,6BAAc,EAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,CAAA;IAC1D,CAAC;IAED,QAAQ;QACJ,OAAO,IAAI,CAAC,IAAI,CAAA;IACpB,CAAC;IAED,GAAG,CAAqB,GAAS;QAC7B,OAAO,IAAA,gBAAK,EAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE,EAAE,CAAC,CAAA;IAC5E,CAAC;IAED,MAAM,CAAwB,MAAe;QACzC,OAAO,IAAA,gBAAK,EAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA;IAC/E,CAAC;CACJ"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ImageRepository } from "./3-repository";
|
|
2
|
+
type ImagePartsObject<Base extends string = string, Tag extends string | undefined = string | undefined, Digest extends string | undefined = string | undefined> = {
|
|
3
|
+
rest: Base;
|
|
4
|
+
teg: Tag | undefined;
|
|
5
|
+
digest: Digest | undefined;
|
|
6
|
+
};
|
|
7
|
+
type toImageParts<Text extends string> = Text extends `${infer A}:${infer B}@${infer C}` ? ImagePartsObject<A, B, C> : Text extends `${infer A}:${infer B}` ? ImagePartsObject<A, B, undefined> : Text extends `${infer A}@${infer C}` ? ImagePartsObject<A, undefined, C> : ImagePartsObject<Text, undefined, undefined>;
|
|
8
|
+
type fromImageParts<P extends ImagePartsObject> = P extends ImagePartsObject<infer A, infer B, infer C> ? B extends string ? C extends string ? `${A}:${B}@${C}` : `${A}:${B}` : C extends string ? `${A}@${C}` : A : never;
|
|
9
|
+
type ReplaceFieldType<In extends object, Field extends keyof In, NewType> = Omit<In, Field> & {
|
|
10
|
+
[K in Field]: NewType;
|
|
11
|
+
};
|
|
12
|
+
type Image_ReplaceOrAddTag<Text extends string, NewTag extends string> = fromImageParts<ReplaceFieldType<toImageParts<Text>, "teg", NewTag>>;
|
|
13
|
+
type Image_ReplaceOrAddDigest<Text extends string, NewDigest extends string> = fromImageParts<ReplaceFieldType<toImageParts<Text>, "digest", NewDigest>>;
|
|
14
|
+
export interface Image<Text extends string = string> {
|
|
15
|
+
toString(): Text;
|
|
16
|
+
get repository(): ImageRepository<any>;
|
|
17
|
+
tag<Tag extends string = "">(tag: Tag): Image<Image_ReplaceOrAddTag<Text, Tag>>;
|
|
18
|
+
digest<Digest extends string = "">(digest: Digest): Image<Image_ReplaceOrAddDigest<Text, Digest>>;
|
|
19
|
+
}
|
|
20
|
+
export declare function Image<Text extends string = "">(registry: string, namespace: string, repository: string, tag?: string, digest?: string): Image<Text>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=4-image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4-image.d.ts","sourceRoot":"","sources":["../../../../src/expressions/workload/image/4-image.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEhD,KAAK,gBAAgB,CACjB,IAAI,SAAS,MAAM,GAAG,MAAM,EAC5B,GAAG,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,EACnD,MAAM,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,IACtD;IACA,IAAI,EAAE,IAAI,CAAA;IACV,GAAG,EAAE,GAAG,GAAG,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B,CAAA;AACD,KAAK,YAAY,CAAC,IAAI,SAAS,MAAM,IAAI,IAAI,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,MAAM,CAAC,EAAE,GAClF,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GACzB,IAAI,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,CAAC,EAAE,GAClC,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,GACjC,IAAI,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,CAAC,EAAE,GAClC,gBAAgB,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,GACjC,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,CAAC,CAAA;AAEtD,KAAK,cAAc,CAAC,CAAC,SAAS,gBAAgB,IAC1C,CAAC,SAAS,gBAAgB,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAC/C,CAAC,SAAS,MAAM,GACZ,CAAC,SAAS,MAAM,GACZ,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,GAChB,GAAG,CAAC,IAAI,CAAC,EAAE,GACf,CAAC,SAAS,MAAM,GACd,GAAG,CAAC,IAAI,CAAC,EAAE,GACX,CAAC,GACP,KAAK,CAAA;AAEf,KAAK,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,KAAK,SAAS,MAAM,EAAE,EAAE,OAAO,IAAI,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,GAAG;KACzF,CAAC,IAAI,KAAK,GAAG,OAAO;CACxB,CAAA;AAED,KAAK,qBAAqB,CAAC,IAAI,SAAS,MAAM,EAAE,MAAM,SAAS,MAAM,IAAI,cAAc,CACnF,gBAAgB,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,CACtD,CAAA;AAED,KAAK,wBAAwB,CAAC,IAAI,SAAS,MAAM,EAAE,SAAS,SAAS,MAAM,IAAI,cAAc,CACzF,gBAAgB,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,SAAS,CAAC,CAC5D,CAAA;AAED,MAAM,WAAW,KAAK,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM;IAC/C,QAAQ,IAAI,IAAI,CAAA;IAChB,IAAI,UAAU,IAAI,eAAe,CAAC,GAAG,CAAC,CAAA;IACtC,GAAG,CAAC,GAAG,SAAS,MAAM,GAAG,EAAE,EAAE,GAAG,EAAE,GAAG,GAAG,KAAK,CAAC,qBAAqB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAA;IAC/E,MAAM,CAAC,MAAM,SAAS,MAAM,GAAG,EAAE,EAC7B,MAAM,EAAE,MAAM,GACf,KAAK,CAAC,wBAAwB,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAA;CACnD;AACD,wBAAgB,KAAK,CAAC,IAAI,SAAS,MAAM,GAAG,EAAE,EAC1C,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAClB,GAAG,CAAC,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,MAAM,GAEgE,KAAK,CAAC,IAAI,CAAC,CAC7F"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Image = Image;
|
|
4
|
+
const _3_repository_1 = require("./3-repository");
|
|
5
|
+
function Image(registry, namespace, repository, tag, digest) {
|
|
6
|
+
return new _Image(registry, namespace, repository, tag ?? "", digest ?? "");
|
|
7
|
+
}
|
|
8
|
+
class _Image {
|
|
9
|
+
_registry;
|
|
10
|
+
_namespace;
|
|
11
|
+
_repository;
|
|
12
|
+
_tag;
|
|
13
|
+
_digest;
|
|
14
|
+
_text;
|
|
15
|
+
constructor(_registry, _namespace, _repository, _tag, _digest) {
|
|
16
|
+
this._registry = _registry;
|
|
17
|
+
this._namespace = _namespace;
|
|
18
|
+
this._repository = _repository;
|
|
19
|
+
this._tag = _tag;
|
|
20
|
+
this._digest = _digest;
|
|
21
|
+
const parts = [this.repository];
|
|
22
|
+
if (this._tag) {
|
|
23
|
+
parts.push(`:${this._tag}`);
|
|
24
|
+
}
|
|
25
|
+
if (this._digest) {
|
|
26
|
+
parts.push(`@${this._digest}`);
|
|
27
|
+
}
|
|
28
|
+
this._text = parts.join("");
|
|
29
|
+
}
|
|
30
|
+
get repository() {
|
|
31
|
+
return (0, _3_repository_1.ImageRepository)(this._registry, this._namespace, this._repository);
|
|
32
|
+
}
|
|
33
|
+
digest(digest) {
|
|
34
|
+
return new _Image(this._registry, this._namespace, this._repository, this._tag, digest);
|
|
35
|
+
}
|
|
36
|
+
tag(tag) {
|
|
37
|
+
return new _Image(this._registry, this._namespace, this._repository, tag, this._digest);
|
|
38
|
+
}
|
|
39
|
+
toString() {
|
|
40
|
+
return this._text;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=4-image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"4-image.js","sourceRoot":"","sources":["../../../../src/expressions/workload/image/4-image.ts"],"names":[],"mappings":";;AAkDA,sBAQC;AA1DD,kDAAgD;AAkDhD,SAAgB,KAAK,CACjB,QAAgB,EAChB,SAAiB,EACjB,UAAkB,EAClB,GAAY,EACZ,MAAe;IAEf,OAAO,IAAI,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,MAAM,IAAI,EAAE,CAAgB,CAAA;AAC9F,CAAC;AAED,MAAM,MAAM;IAGK;IACA;IACA;IACA;IACA;IANI,KAAK,CAAK;IAC3B,YACa,SAAiB,EACjB,UAAkB,EAClB,WAAmB,EACnB,IAAY,EACZ,OAAe;QAJf,cAAS,GAAT,SAAS,CAAQ;QACjB,eAAU,GAAV,UAAU,CAAQ;QAClB,gBAAW,GAAX,WAAW,CAAQ;QACnB,SAAI,GAAJ,IAAI,CAAQ;QACZ,YAAO,GAAP,OAAO,CAAQ;QAExB,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,UAAU,CAAU,CAAA;QACxC,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACZ,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;QAC/B,CAAC;QACD,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACf,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC,CAAA;QAClC,CAAC;QACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAC/B,CAAC;IAED,IAAI,UAAU;QACV,OAAO,IAAA,+BAAe,EAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC,CAAA;IAC7E,CAAC;IAED,MAAM,CAAwB,MAAc;QACxC,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;IAC3F,CAAC;IAED,GAAG,CAAqB,GAAQ;QAC5B,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,CAAA;IAC3F,CAAC;IAED,QAAQ;QACJ,OAAO,IAAI,CAAC,KAAK,CAAA;IACrB,CAAC;CACJ"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { ImageRegistry } from "./1-host";
|
|
2
|
+
export type { ImageNamespace } from "./2-namespace";
|
|
3
|
+
export type { ImageRepository } from "./3-repository";
|
|
4
|
+
export type { Image } from "./4-image";
|
|
2
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/expressions/workload/image/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/expressions/workload/image/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AACnD,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACrD,YAAY,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "
|
|
6
|
-
Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return family_1.Image; } });
|
|
7
|
-
Object.defineProperty(exports, "ImageHost", { enumerable: true, get: function () { return family_1.ImageHost; } });
|
|
8
|
-
Object.defineProperty(exports, "TaggedImage", { enumerable: true, get: function () { return family_1.TaggedImage; } });
|
|
3
|
+
exports.ImageRegistry = void 0;
|
|
4
|
+
var _1_host_1 = require("./1-host");
|
|
5
|
+
Object.defineProperty(exports, "ImageRegistry", { enumerable: true, get: function () { return _1_host_1.ImageRegistry; } });
|
|
9
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/expressions/workload/image/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/expressions/workload/image/index.ts"],"names":[],"mappings":";;;AAAA,oCAAwC;AAA/B,wGAAA,aAAa,OAAA"}
|