mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-04-26 14:40:19 -05:00
24 lines
712 B
Go
24 lines
712 B
Go
package core
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Resource struct {
|
|
ID uuid.UUID `json:"id"`
|
|
ParentID *uuid.UUID `json:"parent"`
|
|
Name string `json:"name"`
|
|
Dir bool `json:"dir"`
|
|
Created time.Time `json:"created"`
|
|
Modified time.Time `json:"modified"`
|
|
Deleted *time.Time `json:"deleted"`
|
|
ContentSize int64 `json:"csize"`
|
|
ContentType string `json:"ctype"`
|
|
ContentSHA256 string `json:"csha256"`
|
|
Permissions string `json:"permissions"`
|
|
UserPermissions int32 `json:"-"`
|
|
InheritedPermissions string `json:"-"`
|
|
}
|