Blame internal/osbuild2/firewall_stage.go
|
Packit Service |
15f37d |
package osbuild2
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
type FirewallStageOptions struct {
|
|
Packit Service |
15f37d |
Ports []string `json:"ports,omitempty"`
|
|
Packit Service |
15f37d |
EnabledServices []string `json:"enabled_services,omitempty"`
|
|
Packit Service |
15f37d |
DisabledServices []string `json:"disabled_services,omitempty"`
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
func (FirewallStageOptions) isStageOptions() {}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
func NewFirewallStage(options *FirewallStageOptions) *Stage {
|
|
Packit Service |
15f37d |
return &Stage{
|
|
Packit Service |
15f37d |
Type: "org.osbuild.firewall",
|
|
Packit Service |
15f37d |
Options: options,
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
}
|