Documentation
¶
Overview ¶
Package archive provides archive extraction actions for the operation graph.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
op.ProviderBase
}
Provider provides archive extraction actions.
+devlore:access=planned
func NewProvider ¶
func (*Provider) CompensateExtract ¶
CompensateExtract removes files created during extraction, then cleans up empty directories under dest.
func (*Provider) Extract ¶
Extract extracts an archive (tar.gz or zip) from source into the prefix directory. The archive format is detected from the file extension. Returns compensation state with the list of created files.
Parameters:
- source: file resource identifying the archive file (tar.gz, tgz, or zip)
- prefix: file resource identifying the extraction directory
Click to show internal directories.
Click to hide internal directories.