Documentation
¶
Index ¶
- func ConvertErofs(ctx context.Context, layerPath string, srcDir string, mkfsExtraOpts []string) error
- func ConvertTarErofs(ctx context.Context, r io.Reader, layerPath, uuid string, ...) error
- func GenerateTarIndexAndAppendTar(ctx context.Context, r io.Reader, layerPath string, mkfsExtraOpts []string) error
- func MountsToLayer(mounts []mount.Mount) (string, error)
- func SupportGenerateFromTar() (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertErofs ¶
func ConvertTarErofs ¶
func GenerateTarIndexAndAppendTar ¶ added in v2.2.0
func GenerateTarIndexAndAppendTar(ctx context.Context, r io.Reader, layerPath string, mkfsExtraOpts []string) error
GenerateTarIndexAndAppendTar calculates tar index using --tar=i option and appends the original tar content to create a combined EROFS layer.
The `--tar=i` option instructs mkfs.erofs to only generate the tar index for the tar content. The resulting file structure is: [Tar index][Original tar content]
func MountsToLayer ¶
MountsToLayer returns the snapshot layer directory in order to generate EROFS-formatted blobs;
The candidate will be checked with ".erofslayer" to make sure this active snapshot is really generated by the EROFS snapshotter instead of others.
func SupportGenerateFromTar ¶ added in v2.2.0
SupportGenerateFromTar checks if the installed version of mkfs.erofs supports the tar mode (--tar option).
Types ¶
This section is empty.