refactor: Decompose fetch func

This commit is contained in:
Felicitas Pojtinger
2021-12-06 22:15:28 +01:00
parent 25fe4ddb04
commit bf0866550a
15 changed files with 746 additions and 645 deletions

View File

@@ -3,6 +3,16 @@ package config
import "errors"
var (
ErrUnsupportedEncryptionFormat = errors.New("unsupported encryption format")
ErrUnsupportedCompressionFormat = errors.New("unsupported compression format")
ErrUnsupportedEncryptionFormat = errors.New("unsupported encryption format")
ErrUnsupportedSignatureFormat = errors.New("unsupported signature format")
ErrIdentityUnparsable = errors.New("recipient could not be parsed")
ErrRecipientUnparsable = errors.New("recipient could not be parsed")
ErrEmbeddedHeaderMissing = errors.New("embedded header is missing")
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")
)