Versions in this module Expand all Collapse all v0 v0.1.0 Mar 30, 2021 Changes in this version + var Set = wire.NewSet(ProvideStore, wire.Struct(new(Server), "*"), ...) + type File struct + func (f *File) IsDir() bool + func (f *File) ModTime() time.Time + func (f *File) Mode() fs.FileMode + func (f *File) Name() string + func (f *File) Size() int64 + func (f *File) Stat() (fs.FileInfo, error) + func (f *File) String() string + func (f *File) Sys() interface{} + type FileMeta struct + CTime time.Time + MTime time.Time + Meta map[string]string + Path string + Tenant *tenant.ID + Version int64 + type FileSystem struct + func (f *FileSystem) Delete(ctx context.Context, name string) error + func (f *FileSystem) Open(name string) (fs.File, error) + func (f *FileSystem) OpenVersion(ctx context.Context, name string, version int64) (*File, error) + func (f *FileSystem) Put(ctx context.Context, meta *FileMeta, hash blob.Hash) error + func (f *FileSystem) ReadDir(name string) ([]fs.DirEntry, error) + func (f *FileSystem) Stat(name string) (fs.FileInfo, error) + func (f *FileSystem) Tenant() *tenant.ID + type Server struct + Config *config.Config + DB *pgxpool.Pool + FS *Store + func (s *Server) Delete(ctx context.Context, req *file.DeleteRequest) (*emptypb.Empty, error) + func (s *Server) List(ctx context.Context, req *file.ListRequest) (*file.ListResponse, error) + func (s *Server) Retrieve(ctx context.Context, req *file.RetrievalRequest) (*file.RetrievalResponse, error) + type Store struct + func ProvideStore(ctx context.Context, blobs *blob.Store, config *config.Config, ...) (*Store, func(), error) + func (s *Store) FileSystem(tenant *tenant.ID) *FileSystem