45 lines
1.2 KiB
Go
45 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 term
|
|
|
|
import (
|
|
//"mstore/pkg/auxid"
|
|
)
|
|
|
|
type PathUsage string
|
|
|
|
const (
|
|
AsFinePath PathUsage = "asFinePath"
|
|
AsPrefix PathUsage = "asPrefix"
|
|
AsRegexp PathUsage = "asRegexp"
|
|
)
|
|
|
|
const (
|
|
AnonimousUsername string = "anonymous"
|
|
AnonymousID uint64 = 1
|
|
ServerUsername string = "server"
|
|
ServerID uint64 = 2
|
|
InitUsername string = "mstore"
|
|
InitID uint64 = 5
|
|
)
|
|
|
|
type Right string
|
|
|
|
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
|
|
)
|