refactor: Decompose archive func
This commit is contained in:
@@ -16,4 +16,8 @@ const (
|
||||
|
||||
SignatureFormatMinisignKey = "minisign"
|
||||
SignatureFormatPGPKey = "pgp"
|
||||
|
||||
CompressionLevelFastest = "fastest"
|
||||
CompressionLevelBalanced = "balanced"
|
||||
CompressionLevelSmallest = "smallest"
|
||||
)
|
||||
|
||||
+9
-5
@@ -3,18 +3,22 @@ package config
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
ErrUnsupportedCompressionFormat = errors.New("unsupported compression format")
|
||||
ErrUnsupportedEncryptionFormat = errors.New("unsupported encryption format")
|
||||
ErrUnsupportedSignatureFormat = errors.New("unsupported signature format")
|
||||
ErrEncryptionFormatUnsupported = errors.New("unsupported encryption format")
|
||||
|
||||
ErrIdentityUnparsable = errors.New("recipient could not be parsed")
|
||||
ErrRecipientUnparsable = errors.New("recipient could not be parsed")
|
||||
|
||||
ErrEmbeddedHeaderMissing = errors.New("embedded header is missing")
|
||||
|
||||
ErrSignatureFormatUnsupported = errors.New("unsupported signature format")
|
||||
ErrSignatureFormatOnlyRegularSupport = errors.New("this signature format only supports regular files, not i.e. tape drives")
|
||||
ErrSignatureInvalid = errors.New("signature invalid")
|
||||
ErrSignatureMissing = errors.New("signature missing")
|
||||
ErrSignatureInvalid = errors.New("signature is invalid")
|
||||
ErrSignatureMissing = errors.New("signature is missing")
|
||||
|
||||
ErrKeygenForFormatUnsupported = errors.New("can not generate keys for this format")
|
||||
|
||||
ErrCompressionFormatUnsupported = errors.New("unsupported compression format")
|
||||
ErrCompressionFormatOnlyRegularSupport = errors.New("this compression format only supports regular files, not i.e. tape drives")
|
||||
ErrCompressionFormatRequiresLargerRecordSize = errors.New("this compression format requires a larger record size")
|
||||
ErrCompressionLevelUnsupported = errors.New("compression level is unsupported")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user