Files
mstore/pkg/term/terms.go
T
2026-02-21 12:31:39 +02:00

41 lines
1.3 KiB
Go

/*
* Copyright 2026 Oleg Borodin <onborodin@gmail.com>
*
* This work is published and licensed under a Creative Commons
* Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* Distribution of this work is permitted, but commercial use and
* modifications are strictly prohibited.
*/
package term
import (
//"mstore/pkg/auxuuid"
)
const (
AsFinePath string = "asFinePath"
AsPrefix string = "asPrefix"
AsRegexp string = "asRegexp"
)
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 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
)