osbuild/copy: add support for remove_destination option

Add support for newly added `remove_destination` option in the copy
stage.

Related to https://github.com/osbuild/osbuild/pull/1241

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2023-02-16 14:58:20 +01:00 committed by Sanne Raymaekers
parent 19e38621c9
commit ad860a6dd4

View file

@ -17,6 +17,10 @@ type CopyStageOptions struct {
type CopyStagePath struct {
From string `json:"from"`
To string `json:"to"`
// Remove the destination before copying. Works only for files, not directories.
// Default: false
RemoveDestination bool `json:"remove_destination,omitempty"`
}
func (CopyStageOptions) isStageOptions() {}