refactor: Decompose index func
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package config
|
||||
|
||||
const (
|
||||
NoneKey = "none"
|
||||
|
||||
CompressionFormatGZipKey = "gzip"
|
||||
CompressionFormatParallelGZipKey = "parallelgzip"
|
||||
CompressionFormatLZ4Key = "lz4"
|
||||
CompressionFormatZStandardKey = "zstandard"
|
||||
CompressionFormatBrotliKey = "brotli"
|
||||
CompressionFormatBzip2Key = "bzip2"
|
||||
CompressionFormatBzip2ParallelKey = "parallelbzip2"
|
||||
|
||||
EncryptionFormatAgeKey = "age"
|
||||
EncryptionFormatPGPKey = "pgp"
|
||||
|
||||
SignatureFormatMinisignKey = "minisign"
|
||||
SignatureFormatPGPKey = "pgp"
|
||||
)
|
||||
@@ -0,0 +1,8 @@
|
||||
package config
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
ErrUnsupportedEncryptionFormat = errors.New("unsupported encryption format")
|
||||
ErrUnsupportedCompressionFormat = errors.New("unsupported compression format")
|
||||
)
|
||||
Reference in New Issue
Block a user