2021-10-18 13:51:51 +08:00
|
|
|
package internal
|
|
|
|
|
2022-05-10 18:11:37 +08:00
|
|
|
const (
|
2024-07-31 03:42:50 +08:00
|
|
|
// BuildahExternalArtifactsDir is the pattern passed to os.MkdirTemp()
|
|
|
|
// to generate a temporary directory which will be used to hold
|
|
|
|
// external items which are downloaded for a build, typically a tarball
|
|
|
|
// being used as an additional build context.
|
2022-05-10 18:11:37 +08:00
|
|
|
BuildahExternalArtifactsDir = "buildah-external-artifacts"
|
|
|
|
)
|
|
|
|
|
2021-10-18 13:51:51 +08:00
|
|
|
// StageMountDetails holds the Stage/Image mountpoint returned by StageExecutor
|
|
|
|
// StageExecutor has ability to mount stages/images in current context and
|
|
|
|
// automatically clean them up.
|
|
|
|
type StageMountDetails struct {
|
2023-01-18 18:21:31 +08:00
|
|
|
DidExecute bool // tells if the stage which is being mounted was freshly executed or was part of older cache
|
2024-07-31 03:42:50 +08:00
|
|
|
IsStage bool // true if the mountpoint is a temporary directory or a stage's rootfs, false if it's an image
|
|
|
|
MountPoint string // mountpoint of the stage or image's root directory
|
2021-10-18 13:51:51 +08:00
|
|
|
}
|