guard

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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