archive: add CompressFormat type with initial constants (MR 25)
This commit is contained in:
@@ -21,6 +21,12 @@ import (
|
|||||||
"gitlab.com/postmarketOS/postmarketos-mkinitfs/internal/osutil"
|
"gitlab.com/postmarketOS/postmarketos-mkinitfs/internal/osutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type CompressFormat string
|
||||||
|
|
||||||
|
const (
|
||||||
|
FormatGzip CompressFormat = "gzip"
|
||||||
|
)
|
||||||
|
|
||||||
type Archive struct {
|
type Archive struct {
|
||||||
items archiveItems
|
items archiveItems
|
||||||
cpioWriter *cpio.Writer
|
cpioWriter *cpio.Writer
|
||||||
|
Reference in New Issue
Block a user