model

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrChrootViolation = errors.New("the path is escaping chroot environment")
	ErrOverwriteFile   = errors.New("cannot overwrite file at destination")
)

Functions

This section is empty.

Types

type GetFile

type GetFile wsft.GetFile

func (GetFile) AbsolutePath

func (f GetFile) AbsolutePath(chroot string) (string, error)

func (GetFile) Validate

func (f GetFile) Validate() error

type StatFile

type StatFile wsft.StatFile

func (StatFile) AbsolutePath

func (f StatFile) AbsolutePath(chroot string) (string, error)

func (StatFile) Validate

func (s StatFile) Validate() error

type UploadRequest

type UploadRequest wsft.UploadRequest

func (UploadRequest) DestinationPath

func (f UploadRequest) DestinationPath(chroot string) (string, error)

func (UploadRequest) Validate

func (f UploadRequest) Validate() error

Jump to

Keyboard shortcuts

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