42 lines
1.2 KiB
Go
42 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
|
|
|
|
type PathAs string
|
|
|
|
const (
|
|
AsFinePath PathAs = "asFinePath"
|
|
AsPrefix PathAs = "asPrefix"
|
|
AsRegexp PathAs = "asRegexp"
|
|
)
|
|
|
|
const (
|
|
AnonimousUsername = "anonymous"
|
|
AnonymousID = "10000000-0000-0000-0000-000000000001"
|
|
ServerUsername = "server"
|
|
ServerID = "10000000-0000-0000-0000-000000000002"
|
|
|
|
InitUsername = "mstore"
|
|
InitID = "10000000-0000-0000-0000-000000000005"
|
|
)
|
|
|
|
const (
|
|
// Accounts, grants
|
|
RightReadAccounts = "readAccounts" // GetAccount, ListAccounts
|
|
RightWriteAccounts = "writeAccounts" // CreateAccount, UpdateAccount, DeleteAccount
|
|
// Files
|
|
RightWriteFiles = "writeFiles" // FileInfo, GetFile, ListFiles
|
|
RightReadFiles = "readFiles" // PutFile, DeleteFile
|
|
// Images: manifests, layers
|
|
RightReadImages = "readImages" // ManifestInfo, GetManifest, BlobInfo, GetBlob
|
|
RightWriteImages = "writeImages" // other opearion
|
|
)
|