Documentation
¶
Index ¶
- func CheckMD5(filename, sum string) error
- func CheckResourceExist(ctx context.Context, path string) bool
- func DeleteResource(ctx context.Context, resID types.SFID) error
- func FetchOrCreateResource(ctx context.Context, f *multipart.FileHeader) (*models.Resource, error)
- func IsDirExists(path string) bool
- func IsPathExists(path string) bool
- func ListResource(ctx context.Context) ([]models.Resource, error)
- func UnTar(dst, src string) (err error)
- func Upload(ctx context.Context, f *multipart.FileHeader, id string) (root, fullName, sum string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckResourceExist ¶ added in v1.0.0
func DeleteResource ¶ added in v1.0.0
func FetchOrCreateResource ¶
func IsDirExists ¶
func IsPathExists ¶
func ListResource ¶ added in v1.0.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.