From e8c242db81fa5983eaadbb40b45fc6c7ad7f5573 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Mon, 5 Sep 2022 20:15:22 +0200 Subject: [PATCH] users: new package for internal User and Group types New types that represent a User or Group for internal representation. These are meant to be used as intermediate representations between API or Blueprint user customizations and the final OSBuild stage options. --- internal/users/users.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 internal/users/users.go diff --git a/internal/users/users.go b/internal/users/users.go new file mode 100644 index 000000000..7b7582806 --- /dev/null +++ b/internal/users/users.go @@ -0,0 +1,18 @@ +package users + +type User struct { + Name string + Description *string + Password *string + Key *string + Home *string + Shell *string + Groups []string + UID *int + GID *int +} + +type Group struct { + Name string + GID *int +}