diff options
Diffstat (limited to 'action.go')
-rw-r--r-- | action.go | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -21,7 +21,7 @@ type Partition struct { DevicePath string } -type DebosContext struct { +type CommonContext struct { Scratchdir string Rootdir string Artifactdir string @@ -31,8 +31,6 @@ type DebosContext struct { ImageMntDir string ImageFSTab bytes.Buffer // Fstab as per partitioning ImageKernelRoot string // Kernel cmdline root= snippet for the / of the image - RecipeDir string - Architecture string DebugShell string Origins map[string]string State DebosState @@ -41,6 +39,12 @@ type DebosContext struct { Verbose bool } +type DebosContext struct { + *CommonContext + RecipeDir string + Architecture string +} + type Action interface { /* FIXME verify should probably be prepare or somesuch */ Verify(context *DebosContext) error |