Documentation ¶
Index ¶
- Constants
- func InodeToPath(app *App, un *utils.UserNamespace, inode int64) string
- func PathToInode(app *App, un *utils.UserNamespace, fullpath string) int64
- type App
- type Edge
- type EventHolder
- type FS
- type FileEvent
- type FileType
- type PreferOptions
- type SiyouFaasApi
- func (api SiyouFaasApi) Delete(uri string, f func(iris.Context))
- func (api SiyouFaasApi) Exec(uri string, ctx iris.Context)
- func (api SiyouFaasApi) Get(uri string, f func(iris.Context))
- func (api SiyouFaasApi) Post(uri string, f func(iris.Context))
- func (api SiyouFaasApi) Put(uri string, f func(iris.Context))
Constants ¶
View Source
const ( FileEventAdd = iota + 1 FileEventDelete )
View Source
const ( EventStatusError = 3 EventStatusFinish = 4 )
View Source
const (
AppCodeEnvKey = "AppCode"
)
Variables ¶
This section is empty.
Functions ¶
func InodeToPath ¶ added in v0.1.7
func InodeToPath(app *App, un *utils.UserNamespace, inode int64) string
InodeToPath inode转fullpath
func PathToInode ¶ added in v0.1.7
func PathToInode(app *App, un *utils.UserNamespace, fullpath string) int64
PathToInode fullpath为用户空间的相对fullpath
Types ¶
type App ¶
type App struct { Api SiyouFaasApi AppInfo *entity.AppRegisterInfo // contains filtered or unexported fields }
type EventHolder ¶ added in v0.1.7
type EventHolder struct {
// contains filtered or unexported fields
}
func NewEventHolder ¶ added in v0.1.7
func NewEventHolder(appName string, app *App) *EventHolder
NewEventHolder 初始化事件监听器
func (*EventHolder) SetPrefer ¶ added in v0.1.7
func (e *EventHolder) SetPrefer(options ...PreferOptions)
SetPrefer 设置偏好与回调函数
type FS ¶ added in v0.1.7
type FS struct { *utils.UserNamespace EventFileInode int64 AppCodeName string // contains filtered or unexported fields }
func (*FS) AppOpenFile ¶ added in v0.1.7
type FileType ¶ added in v0.1.7
type FileType string
const ( // mimeType main FileTypeAll FileType = "all" FileTypeText FileType = "text" FileTypeImage FileType = "image" FileTypeAudio FileType = "audio" FileTypeVideo FileType = "video" FileTypeMessage FileType = "message" FileTypeCompress FileType = "compress" // other type FileTypeImageVideo FileType = "image-video" FileTypeDoc FileType = "doc" FileTypeBt FileType = "bt" FileTypeEbook FileType = "ebook" FileTypeSoftware FileType = "software" FileTypeOther FileType = "other" )
type PreferOptions ¶ added in v0.1.7
type SiyouFaasApi ¶
type SiyouFaasApi map[string]func(iris.Context)
func (SiyouFaasApi) Delete ¶
func (api SiyouFaasApi) Delete(uri string, f func(iris.Context))
func (SiyouFaasApi) Exec ¶
func (api SiyouFaasApi) Exec(uri string, ctx iris.Context)
func (SiyouFaasApi) Get ¶
func (api SiyouFaasApi) Get(uri string, f func(iris.Context))
func (SiyouFaasApi) Post ¶
func (api SiyouFaasApi) Post(uri string, f func(iris.Context))
func (SiyouFaasApi) Put ¶
func (api SiyouFaasApi) Put(uri string, f func(iris.Context))
Click to show internal directories.
Click to hide internal directories.