right type used
This commit is contained in:
+15
-13
@@ -11,7 +11,7 @@
|
||||
package terms
|
||||
|
||||
import (
|
||||
"mstore/pkg/auxuuid"
|
||||
"mstore/pkg/uuid"
|
||||
)
|
||||
|
||||
type PathUsage string
|
||||
@@ -23,20 +23,22 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
AnonimousUsername string = "anonymous"
|
||||
AnonymousID auxuuid.UUID = "10000000-0000-0000-0000-000000000001"
|
||||
ServerUsername string = "server"
|
||||
ServerID auxuuid.UUID = "10000000-0000-0000-0000-000000000002"
|
||||
InitUsername string = "mstore"
|
||||
InitID auxuuid.UUID = "10000000-0000-0000-0000-000000000005"
|
||||
AnonimousUsername string = "anonymous"
|
||||
AnonymousID uuid.UUID = "10000000-0000-0000-0000-000000000001"
|
||||
ServerUsername string = "server"
|
||||
ServerID uuid.UUID = "10000000-0000-0000-0000-000000000002"
|
||||
InitUsername string = "mstore"
|
||||
InitID uuid.UUID = "10000000-0000-0000-0000-000000000005"
|
||||
)
|
||||
|
||||
type Right string
|
||||
|
||||
const (
|
||||
// Accounts, grants
|
||||
RightReadAccounts = "readAccounts" // GetAccount, ListAccounts
|
||||
RightWriteAccounts = "writeAccounts" // CreateAccount, UpdateAccount, DeleteAccount
|
||||
RightWriteFiles = "writeFiles" // FileInfo, GetFile, ListFiles
|
||||
RightReadFiles = "readFiles" // PutFile, DeleteFile
|
||||
RightReadImages = "readImages" // ManifestInfo, GetManifest, BlobInfo, GetBlob
|
||||
RightWriteImages = "writeImages" // other opearion
|
||||
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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user