feat: Make STFS API public

Also: Happy new year :)
This commit is contained in:
Felicitas Pojtinger
2021-12-31 23:57:21 +01:00
parent d52c45c603
commit 5089333d13
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
}