refactor: Start implementation of public API

This commit is contained in:
Felix Pojtinger
2021-12-06 21:01:41 +01:00
parent e611622199
commit 3efa2fe308
45 changed files with 211 additions and 54 deletions
+32
View File
@@ -0,0 +1,32 @@
package pax
import "errors"
const (
STFSPrefix = "STFS."
STFSRecordVersion = STFSPrefix + "Version"
STFSRecordVersion1 = "1"
STFSRecordAction = STFSPrefix + "Action"
STFSRecordActionCreate = "CREATE"
STFSRecordActionDelete = "DELETE"
STFSRecordActionUpdate = "UPDATE"
STFSRecordReplacesContent = STFSPrefix + "ReplacesContent"
STFSRecordReplacesContentTrue = "true"
STFSRecordReplacesContentFalse = "false"
STFSRecordReplacesName = STFSPrefix + "ReplacesName"
STFSRecordUncompressedSize = STFSPrefix + "UncompressedSize"
STFSRecordSignature = STFSPrefix + "Signature"
STFSRecordEmbeddedHeader = STFSPrefix + "EmbeddedHeader"
)
var (
ErrUnsupportedVersion = errors.New("unsupported STFS version")
ErrUnsupportedAction = errors.New("unsupported STFS action")
)