debian-forge-composer/internal
Tomáš Hozza b007b0ea12 internal/fsnode: add API for custom directories and files
Add an internal API for working with custom FS nodes such as Files and
Directories. This implementation is agnostic to external API, such as
Weldr API, Cloud API or osbuild stages. The purpose of it is to be the
common translation layer between all of these "external" APIs and
osbuild.

In this stage, the representation for Files and Directories is added.

The functionality is not yet used by any existing code.

Note about user/group type being `interface{}`:
I considered using the internal `users` representation for users and
groups, but it contains additional information, which are not relevant
for FS node user / group ownership representation. Therefore I didn't
use it. I also considered using separate variables for user / group
name (string) and uid / gid (int64). However, the implementation would
need to ensure that only one of these typed values is set for user /
group or ensure that it refers to the same group / user. My estimate
was that the code ensuring that only one of these typed values is set
would be probably as complex as the current implementation that checks
the types stored in `interface{}` typed variable. And ensuring that
the set user / group name and uid / gid is referring to the same user
/ group is nearly impossible to get right without actually building
the image.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2023-02-22 12:17:36 +01:00
..
artifact artifact: this represents the artifacts a manifest exports 2022-07-22 16:04:07 +02:00
auth go.mod: Update openshift-online/ocm-sdk-go 2022-05-19 22:18:42 +02:00
blueprint blueprint: delete HasIgnition() function 2023-02-22 12:17:36 +01:00
boot azure: Add note that azure-sdk-for-go module is deprecated 2022-09-15 03:57:40 -07:00
client Rename gpgkey_urls to gpgkeys 2023-02-01 10:27:58 +01:00
cloud osbuild-service-maintenance: clean up all regions 2023-01-25 14:20:51 +01:00
cloudapi cloudapi: Add a test for the subscription rhc flag 2023-02-09 09:41:15 +01:00
common common: merge all *ToPtr methods to one generic ToPtr 2023-01-09 14:03:18 +01:00
container common: merge all *ToPtr methods to one generic ToPtr 2023-01-09 14:03:18 +01:00
crypt go.mod: update to Go 1.18 2023-01-09 14:03:18 +01:00
disk common: merge all *ToPtr methods to one generic ToPtr 2023-01-09 14:03:18 +01:00
distro blueprint: delete HasIgnition() function 2023-02-22 12:17:36 +01:00
distroregistry distro: remove HostDistro contructors 2023-01-18 11:50:35 +01:00
dnfjson Add gpgkey and check_repogpg support to dnf-json 2023-02-01 10:27:58 +01:00
environment environment: encapsulate the environment images are deployed to 2022-07-07 12:00:56 +01:00
fdo New package: fdo 2022-12-11 12:37:37 +00:00
fsnode internal/fsnode: add API for custom directories and files 2023-02-22 12:17:36 +01:00
ignition ignition: drop embedded provisioning url 2023-02-07 13:30:22 +01:00
image manifest: fix dracut modules and drivers for Anaconda installers 2023-01-31 11:03:26 +01:00
jobqueue worker/server: requeue unresponsive jobs 2022-11-02 15:26:00 +01:00
jsondb test: use T.TempDir to create temporary test directory 2022-04-05 09:27:43 +02:00
manifest manifest: Add tests for subscriptions 2023-02-09 09:41:15 +01:00
mocks mocks/dnfjson: Add mock support for the search command 2022-08-23 22:47:46 +01:00
osbuild osbuild/copy: add TODO comment related to GenCopyFSTreeOptions() 2023-02-22 12:17:36 +01:00
oscap oscap: add oscap package 2022-08-04 18:19:06 +02:00
ostree rhsm: remove CA from consumer secrets 2022-11-21 10:27:15 +01:00
platform distro/rhel9: fix /usr/sbin/zipl unavailable in the buildroot 2022-12-08 16:11:52 +01:00
prometheus internal/prometheus: add more buckets for job durations 2023-02-08 12:33:10 +01:00
reporegistry reporegistry: remove unused ReposByArch() function 2022-03-09 23:22:06 +00:00
rhsm rhsm: remove CA from consumer secrets 2022-11-21 10:27:15 +01:00
rpmmd Change RepoConfig.GPGKey to an array of key strings 2023-02-01 10:27:58 +01:00
runner runner: add platform-python only for RHEL 8+ 2023-01-25 20:37:12 +01:00
store tests: Add tests for new repo gpg support 2023-02-01 10:27:58 +01:00
target internal/target/azure_image: mark Location as optional 2022-10-27 19:33:43 +02:00
test cloudapi: run all Koji compose unit tests 2022-06-10 14:48:18 +01:00
upload osbuild-worker/koji: Add logging for koji requests/responses 2023-02-08 11:40:34 +01:00
users users: convenience functions for converting from BP 2022-09-13 16:06:19 +01:00
weldr tests: Add tests for new repo gpg support 2023-02-01 10:27:58 +01:00
worker internal/worker: add String to clienterrors.Error struct 2023-02-16 00:55:34 +01:00
workload workload: introduce abstraction to encapsulate image workloads 2022-07-07 12:00:56 +01:00
tools.go go: vendor the oapi-codegen cmd 2021-02-01 15:32:58 +01:00