payload

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2019 License: MIT Imports: 7 Imported by: 4

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
	UserShare           uint = 19
)

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 NewSeaStoragePayload(action uint, name string, PWD string, target []string, key string, fileInfo storage.FileInfo, userOperations []user.Operation, seaOperations []sea.Operation) *SeaStoragePayload

func SeaStoragePayloadFromBytes

func SeaStoragePayloadFromBytes(payloadData []byte) (*SeaStoragePayload, error)

func (*SeaStoragePayload) ToBytes

func (ssp *SeaStoragePayload) ToBytes() []byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL