Provision resources using a declarative YAML syntax.
Go to file
Matthew Rich 2ce6c44407
Some checks failed
Lint / golangci-lint (push) Successful in 9m58s
Releases / build (push) Failing after 4s
Declarative Tests / test (push) Successful in 1m22s
fix lint errors
2024-04-21 23:43:58 -07:00
.gitea/workflows fix release error 2024-04-03 18:41:14 -07:00
artifacts generate coverage report 2024-03-23 13:03:42 -07:00
cmd/cli fix lint errors 2024-04-21 23:43:58 -07:00
examples add container example 2024-03-27 15:40:57 -07:00
internal fix lint errors 2024-04-21 23:11:17 -07:00
md-images crop screencap 2024-03-27 12:23:22 -07:00
tests/mocks fix tests 2024-04-21 11:06:53 -07:00
.gitignore Initial commit 2024-03-09 00:12:54 +00:00
cli_test.go fix lint errors 2024-04-21 23:24:38 -07:00
COPYRIGHT initial version 2024-03-20 12:23:31 -07:00
go.mod fix import -resource flag 2024-04-20 23:13:17 -07:00
go.sum fix import -resource flag 2024-04-20 23:13:17 -07:00
LICENSE initial version 2024-03-20 11:56:28 -07:00
Makefile fix lint errors 2024-04-21 23:24:38 -07:00
README.md fix lint errors 2024-04-21 23:24:38 -07:00

jx

Purpose

These tools work with YAML descriptions of resources (E.g. files, users, containers, etc) for (de)serializing the state of the given resource. This enables more generically describing the state of a supported resource type, pipeling state transformations and enabling the use of other tools in that process.

Dependencies

  • Go >= 1.21.1

Testing

Testing the current version involves checking out main and building.

git clone https://gitea.rosskeen.house/Declarative/decl.git

make test

make build

Command-line

Update Resource state

jx apply decl-runner.yaml

Create the resources specified in a resource document HTTP endpoint.

jx apply http://localhost/resources

Read resource state

Read the state of an existing resource (URI) and generate a YAML representation of it.

jx import -resource file://COPYRIGHT

Import Resource

Import the contents of a tar archive into a resource document.

jx import ./test.tgz

Read a resource document from an http endpoint.

jx import http://localhost/resources

Examples

Resources: