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.
This commit is contained in:
Achilleas Koutsou 2022-09-05 20:15:22 +02:00 committed by Tom Gundersen
parent 6dafa36fc7
commit e8c242db81

18
internal/users/users.go Normal file
View file

@ -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
}