Documentation
¶
Overview ¶
Package fs exports functionality related to all of the cos-customizer state stored on the file system.
Index ¶
Constants ¶
View Source
const (
// ScratchDir is used for temp files and the like.
ScratchDir = "/tmp"
)
Variables ¶
This section is empty.
Functions ¶
func ArchiveHasObject ¶
ArchiveHasObject determines if the given tar archive contains the given object.
func CopyRecursive ¶
CopyRecursive calls 'cp -r <src> <dst>'.
func CreateBuildContextArchive ¶
CreateBuildContextArchive creates a tar archive of the given build context.
Types ¶
type Files ¶
type Files struct {
// UserBuildContextArchive points to the tar archive of the user build context.
// The user build context contains user provided scripts and files that users can use during preloading.
UserBuildContextArchive string
// SourceImageConfig points to the source image configuration.
SourceImageConfig string
// BuildConfig points to the image build process configuration.
BuildConfig string
// ProvConfig points to the provisioner configuration that runs on the preload
// VM.
ProvConfig string
// DaisyWorkflow points to the Daisy workflow to template and use for preloading.
DaisyWorkflow string
// DaisyBin points to the Daisy binary.
DaisyBin string
// contains filtered or unexported fields
}
Files stores important file paths.
func DefaultFiles ¶
DefaultFiles builds a Files struct with a default file layout.
func (*Files) CleanupAllPersistent ¶
CleanupAllPersistent deletes everything in the persistent directory.
Click to show internal directories.
Click to hide internal directories.