Documentation ¶
Index ¶
- type Base
- type CreateDirParam
- type DeleteParam
- type FilesParam
- type Guardian
- func (g *Guardian) CreateDir(ctx *context.Context)
- func (g *Guardian) Delete(ctx *context.Context)
- func (g *Guardian) Files(ctx *context.Context)
- func (g *Guardian) GetPrefix(ctx *context.Context) string
- func (g *Guardian) Move(ctx *context.Context)
- func (g *Guardian) Preview(ctx *context.Context)
- func (g *Guardian) Rename(ctx *context.Context)
- func (g *Guardian) Update(r root.Roots, p permission.Permission)
- func (g *Guardian) Upload(ctx *context.Context)
- type MoveParam
- type PreviewParam
- type RenameParam
- type UploadParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateDirParam ¶
func GetCreateDirParam ¶
func GetCreateDirParam(ctx *context.Context) *CreateDirParam
type DeleteParam ¶
func GetDeleteParam ¶
func GetDeleteParam(ctx *context.Context) *DeleteParam
type FilesParam ¶
type FilesParam struct {
*Base
}
func GetFilesParam ¶
func GetFilesParam(ctx *context.Context) *FilesParam
type Guardian ¶
type Guardian struct {
// contains filtered or unexported fields
}
func New ¶
func New(r root.Roots, c db.Connection, p permission.Permission) *Guardian
func (*Guardian) Update ¶
func (g *Guardian) Update(r root.Roots, p permission.Permission)
type MoveParam ¶
func GetMoveParam ¶
type PreviewParam ¶
type PreviewParam struct {
Base
}
func GetPreviewParam ¶
func GetPreviewParam(ctx *context.Context) *PreviewParam
type RenameParam ¶
func GetRenameParam ¶
func GetRenameParam(ctx *context.Context) *RenameParam
type UploadParam ¶
type UploadParam struct { Base Files map[string][]*multipart.FileHeader }
func GetUploadParam ¶
func GetUploadParam(ctx *context.Context) *UploadParam
Source Files ¶
Click to show internal directories.
Click to hide internal directories.