alpha
This commit is contained in:
16
ifs.go
16
ifs.go
@@ -1,25 +1,15 @@
|
||||
package models
|
||||
package pfs
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"git.gm6.ru/icewind/pfs/models"
|
||||
"git.gm6.ru/icewind/pfs/stat"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type IFSStat struct {
|
||||
ID uuid.UUID
|
||||
Name string
|
||||
IsDir bool
|
||||
Created time.Time
|
||||
LastModified time.Time
|
||||
OwnerID uuid.UUID
|
||||
}
|
||||
|
||||
type IFS interface {
|
||||
DirCreate(dir *models.Dir, userID uuid.UUID) error
|
||||
DirRemove(dirID uuid.UUID, userID uuid.UUID) error
|
||||
DirRead(dirID uuid.UUID, userID uuid.UUID) ([]IFSStat, error)
|
||||
DirRead(dirID uuid.UUID, userID uuid.UUID) ([]stat.FSStat, error)
|
||||
FileCreate(file *models.File) error
|
||||
FileRemove(fileID uuid.UUID, userID uuid.UUID) error
|
||||
FileRead(fileID uuid.UUID, userID uuid.UUID) (*models.File, error)
|
||||
|
||||
Reference in New Issue
Block a user