working commit

This commit is contained in:
2026-02-21 12:31:39 +02:00
parent 3220e2d78f
commit cd37a4508c
37 changed files with 354 additions and 319 deletions
+18 -22
View File
@@ -11,34 +11,30 @@
package term
import (
//"mstore/pkg/auxid"
)
type PathUsage string
const (
AsFinePath PathUsage = "asFinePath"
AsPrefix PathUsage = "asPrefix"
AsRegexp PathUsage = "asRegexp"
//"mstore/pkg/auxuuid"
)
const (
AnonimousUsername string = "anonymous"
AnonymousID uint64 = 1
ServerUsername string = "server"
ServerID uint64 = 2
InitUsername string = "mstore"
InitID uint64 = 5
AsFinePath string = "asFinePath"
AsPrefix string = "asPrefix"
AsRegexp string = "asRegexp"
)
type Right string
const (
AnonimousUsername string = "anonymous"
AnonymousID string = "0000000-0000-0000-0000-000000000001"
ServerUsername string = "server"
ServerID string = "0000000-0000-0000-0000-000000000002"
InitUsername string = "mstore"
InitID string = "0000000-0000-0000-0000-000000000005"
)
const (
// Accounts, grants
RightReadAccounts Right = "readAccounts" // GetAccount, ListAccounts
RightWriteAccounts Right = "writeAccounts" // CreateAccount, UpdateAccount, DeleteAccount
RightWriteFiles Right = "writeFiles" // FileInfo, GetFile, ListFiles
RightReadFiles Right = "readFiles" // PutFile, DeleteFile
RightReadImages Right = "readImages" // ManifestInfo, GetManifest, BlobInfo, GetBlob
RightWriteImages Right = "writeImages" // other opearion
RightReadAccounts string = "readAccounts" // GetAccount, ListAccounts
RightWriteAccounts string = "writeAccounts" // CreateAccount, UpdateAccount, DeleteAccount
RightWriteFiles string = "writeFiles" // FileInfo, GetFile, ListFiles
RightReadFiles string = "readFiles" // PutFile, DeleteFile
RightReadImages string = "readImages" // ManifestInfo, GetManifest, BlobInfo, GetBlob
RightWriteImages string = "writeImages" // other opearion
)