Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SnapshotGenerator ¶
type SnapshotGenerator struct {
// contains filtered or unexported fields
}
func New ¶
func New(buildDirPath, workerTarPath, specsDirPath string) (newSnapshotGenerator *SnapshotGenerator, err error)
New creates a new snapshot generator. If the chroot is created successfully, the caller is responsible for calling CleanUp().
func (*SnapshotGenerator) CleanUp ¶
func (s *SnapshotGenerator) CleanUp() error
CleanUp tears down the chroot
func (*SnapshotGenerator) GenerateSnapshot ¶
func (s *SnapshotGenerator) GenerateSnapshot(outputFilePath, distTag string) (err error)
GenerateSnapshot generates a snapshot of all packages built from the specs inside the input directory.
Click to show internal directories.
Click to hide internal directories.