feat: Make STFS API public

Also: Happy new year :)
This commit is contained in:
Felix Pojtinger
2021-12-31 23:57:21 +01:00
parent ef364c836b
commit 67d97ed32b
32 changed files with 214 additions and 222 deletions
-19
View File
@@ -1,19 +0,0 @@
package encryption
import "github.com/pojntfx/stfs/pkg/config"
func CheckEncryptionFormat(encryptionFormat string) error {
encryptionFormatIsKnown := false
for _, candidate := range config.KnownEncryptionFormats {
if encryptionFormat == candidate {
encryptionFormatIsKnown = true
}
}
if !encryptionFormatIsKnown {
return config.ErrEncryptionFormatUnknown
}
return nil
}