37 lines
1.2 KiB
Go
37 lines
1.2 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 terms
|
|
|
|
const (
|
|
xxxAsFinePath string = "asFinePath"
|
|
xxxAsPrefix string = "asPrefix"
|
|
xxxAsRegexp 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
|
|
)
|