|
Packit Service |
15f37d |
package osbuild2
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
type RPMStageOptions struct {
|
|
Packit Service |
15f37d |
// Array of GPG key contents to import
|
|
Packit Service |
15f37d |
GPGKeys []string `json:"gpgkeys,omitempty"`
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
// Prevent dracut from running
|
|
Packit Service |
15f37d |
DisableDracut bool `json:"disable_dracut,omitempty"`
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
Exclude *Exclude `json:"exclude,omitempty"`
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
type Exclude struct {
|
|
Packit Service |
15f37d |
// Do not install documentation.
|
|
Packit Service |
15f37d |
Docs bool `json:"docs,omitempty"`
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
// RPMPackage represents one RPM, as referenced by its content hash
|
|
Packit Service |
15f37d |
// (checksum). The files source must indicate where to fetch the given
|
|
Packit Service |
15f37d |
// RPM. If CheckGPG is `true` the RPM must be signed with one of the
|
|
Packit Service |
15f37d |
// GPGKeys given in the RPMStageOptions.
|
|
Packit Service |
15f37d |
type RPMPackage struct {
|
|
Packit Service |
15f37d |
Checksum string `json:"checksum"`
|
|
Packit Service |
15f37d |
CheckGPG bool `json:"check_gpg,omitempty"`
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
func (RPMStageOptions) isStageOptions() {}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
type RPMStageInputs struct {
|
|
Packit Service |
15f37d |
Packages *RPMStageInput `json:"packages"`
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
func (RPMStageInputs) isStageInputs() {}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
type RPMStageInput struct {
|
|
Packit Service |
15f37d |
inputCommon
|
|
Packit Service |
15f37d |
References RPMStageReferences `json:"references"`
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
func (RPMStageInput) isStageInput() {}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
type RPMStageReferences []string
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
func (RPMStageReferences) isReferences() {}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
// NewRPMStage creates a new RPM stage.
|
|
Packit Service |
15f37d |
func NewRPMStage(options *RPMStageOptions, inputs *RPMStageInputs) *Stage {
|
|
Packit Service |
15f37d |
return &Stage{
|
|
Packit Service |
15f37d |
Type: "org.osbuild.rpm",
|
|
Packit Service |
15f37d |
Inputs: inputs,
|
|
Packit Service |
15f37d |
Options: options,
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
}
|