osbuild/mkdir: rename Path struct to MkdirStagePath

The plain `Path` name was a bit unfortunate, since it was specific to
the `mkdir` stage, but it was used outside of the `osbuild` package as
`osbuild.Path` which was making a wrong impression of it being a generic
path structure. This is not true.

Rename the structure to contain the stage name.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2023-01-13 17:44:50 +01:00 committed by Achilleas Koutsou
parent 64dc942001
commit 30c3ea791e
5 changed files with 6 additions and 6 deletions

View file

@ -4,10 +4,10 @@ import "os"
// Options for the org.osbuild.ostree.config stage.
type MkdirStageOptions struct {
Paths []Path `json:"paths"`
Paths []MkdirStagePath `json:"paths"`
}
type Path struct {
type MkdirStagePath struct {
Path string `json:"path"`
Mode os.FileMode `json:"mode,omitempty"`