Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Unset uint = 0 CreateUser uint = 1 CreateGroup uint = 2 CreateSea uint = 3 )
Common action
View Source
var ( UserCreateFile uint = 10 UserCreateDirectory uint = 11 UserDeleteFile uint = 12 UserDeleteDirectory uint = 13 UserUpdateName uint = 14 UserUpdateFileData uint = 15 UserUpdateFileKey uint = 16 UserPublishKey uint = 17 UserMove uint = 18 )
User action
View Source
var ( GroupCreateFile uint = 20 GroupCreateDirectory uint = 21 GroupDeleteFile uint = 22 GroupDeleteDirectory uint = 23 GroupUpdateFileName uint = 24 GroupUpdateFileData uint = 25 GroupUpdateFileKey uint = 26 GroupPublishKey uint = 27 )
Group action
View Source
var ( SeaStoreFile uint = 30 SeaConfirmOperations uint = 31 )
Sea Action
Functions ¶
This section is empty.
Types ¶
type SeaStoragePayload ¶
type SeaStoragePayload struct { Action uint `default:"Unset(0)"` Name string `default:""` PWD string `default:"/"` Target []string `default:"nil"` Key string `default:""` FileInfo storage.FileInfo `default:"FileInfo{}"` UserOperations []user.Operation `default:"nil"` SeaOperations []sea.Operation `default:"nil"` }
func NewSeaStoragePayload ¶
func SeaStoragePayloadFromBytes ¶
func SeaStoragePayloadFromBytes(payloadData []byte) (*SeaStoragePayload, error)
func (*SeaStoragePayload) ToBytes ¶
func (ssp *SeaStoragePayload) ToBytes() []byte
Click to show internal directories.
Click to hide internal directories.