guard

package
v0.0.0-...-165d932 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Path     string
	Prefix   string
	FullPath string
	Error    error
}

type CreateDirParam

type CreateDirParam struct {
	Base
	Dir string
}

func GetCreateDirParam

func GetCreateDirParam(ctx *context.Context) *CreateDirParam

type DeleteParam

type DeleteParam struct {
	Path   string
	Prefix string
	Error  error
	Paths  []string
}

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 (*Guardian) CreateDir

func (g *Guardian) CreateDir(ctx *context.Context)

func (*Guardian) Delete

func (g *Guardian) Delete(ctx *context.Context)

func (*Guardian) Files

func (g *Guardian) Files(ctx *context.Context)

func (*Guardian) GetPrefix

func (g *Guardian) GetPrefix(ctx *context.Context) string

func (*Guardian) Move

func (g *Guardian) Move(ctx *context.Context)

func (*Guardian) Preview

func (g *Guardian) Preview(ctx *context.Context)

func (*Guardian) Rename

func (g *Guardian) Rename(ctx *context.Context)

func (*Guardian) Update

func (g *Guardian) Update(r root.Roots, p permission.Permission)

func (*Guardian) Upload

func (g *Guardian) Upload(ctx *context.Context)

type MoveParam

type MoveParam struct {
	Src    string
	Dist   string
	Prefix string
	Error  error
}

func GetMoveParam

func GetMoveParam(ctx *context.Context) *MoveParam

type PreviewParam

type PreviewParam struct {
	Base
}

func GetPreviewParam

func GetPreviewParam(ctx *context.Context) *PreviewParam

type RenameParam

type RenameParam struct {
	Src    string
	Dist   string
	Error  error
	Prefix string
}

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

Jump to

Keyboard shortcuts

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