Blame internal/osbuild1/groups_stage.go
|
Packit Service |
15f37d |
package osbuild1
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
type GroupsStageOptions struct {
|
|
Packit Service |
15f37d |
Groups map[string]GroupsStageOptionsGroup `json:"groups"`
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
func (GroupsStageOptions) isStageOptions() {}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
type GroupsStageOptionsGroup struct {
|
|
Packit Service |
15f37d |
Name string `json:"name"`
|
|
Packit Service |
15f37d |
GID *int `json:"gid,omitempty"`
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
func NewGroupsStage(options *GroupsStageOptions) *Stage {
|
|
Packit Service |
15f37d |
return &Stage{
|
|
Packit Service |
15f37d |
Name: "org.osbuild.groups",
|
|
Packit Service |
15f37d |
Options: options,
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
}
|