Versions in this module Expand all Collapse all v0 v0.1.2 Oct 1, 2026 v0.1.1 Oct 1, 2026 Changes in this version + const DefaultQuota + const OpenAccessPath + func NewAdminModel(svc *Service) tea.Model + func NewPlugin(svc *Service) plugin.Plugin + func OpenAccessHandler() http.Handler + type Config struct + DefaultQuota int64 + Root string + type Conn struct + ID int64 + Key string + RX int64 + Remote string + Started time.Time + TX int64 + User string + type Entry struct + IsDir bool + ModTime time.Time + Name string + Size int64 + type FilesStore interface + FilesAccess func(userID int64) (store.FilesAccess, error) + FilesSetting func(key string) (string, bool, error) + ListUsers func(limit int) ([]store.User, error) + SetFilesQuota func(userID, bytes int64) error + SetFilesRevoked func(userID int64, revoked bool) error + SetFilesSetting func(key, value string) error + UserByFingerprint func(fp string) (store.User, bool, error) + UserByName func(name string) (store.User, bool, error) + type Member struct + Name string + PublicBytes int64 + type Service struct + func New(st FilesStore, cfg Config) (*Service, error) + func (s *Service) Access(userID int64) (store.FilesAccess, error) + func (s *Service) AnonRoot(name string) (root string, ok bool, err error) + func (s *Service) Kick(id int64) bool + func (s *Service) Members() ([]Member, error) + func (s *Service) OpenFor(name string) (*session, store.User, error) + func (s *Service) PublicList() ([]Entry, error) + func (s *Service) PublicRemove(name string) error + func (s *Service) PublicWritable() bool + func (s *Service) SafeJoin(root, rel string) (string, error) + func (s *Service) Sessions() []Conn + func (s *Service) SetPublicWrite(on bool) error + func (s *Service) SetQuota(userID, bytes int64) error + func (s *Service) SetRevoked(userID int64, revoked bool) error + func (s *Service) Subsystem() ssh.SubsystemHandler + func (s *Service) Usage(u store.User) (Usage, error) + func (s *Service) Users() ([]store.User, error) + func (s *Service) WebHandler(cfg WebConfig) http.Handler + type Usage struct + Bytes int64 + Quota int64 + func (u Usage) Free() int64 + type WebConfig struct + Authenticate func(user, pass string) (store.User, bool, error) + SessionTTL time.Duration + SiteBase string + Title string