Blame internal/osbuild2/users_stage.go

Packit Service 15f37d
package osbuild2
Packit Service 15f37d
Packit Service 15f37d
type UsersStageOptions struct {
Packit Service 15f37d
	Users map[string]UsersStageOptionsUser `json:"users"`
Packit Service 15f37d
}
Packit Service 15f37d
Packit Service 15f37d
func (UsersStageOptions) isStageOptions() {}
Packit Service 15f37d
Packit Service 15f37d
type UsersStageOptionsUser struct {
Packit Service 15f37d
	UID         *int     `json:"uid,omitempty"`
Packit Service 15f37d
	GID         *int     `json:"gid,omitempty"`
Packit Service 15f37d
	Groups      []string `json:"groups,omitempty"`
Packit Service 15f37d
	Description *string  `json:"description,omitempty"`
Packit Service 15f37d
	Home        *string  `json:"home,omitempty"`
Packit Service 15f37d
	Shell       *string  `json:"shell,omitempty"`
Packit Service 15f37d
	Password    *string  `json:"password,omitempty"`
Packit Service 15f37d
	Key         *string  `json:"key,omitempty"`
Packit Service 15f37d
}
Packit Service 15f37d
Packit Service 15f37d
func NewUsersStage(options *UsersStageOptions) *Stage {
Packit Service 15f37d
	return &Stage{
Packit Service 15f37d
		Type:    "org.osbuild.users",
Packit Service 15f37d
		Options: options,
Packit Service 15f37d
	}
Packit Service 15f37d
}