Documentation ¶
Index ¶
- type BackendFile
- type FileRepo
- func (r *FileRepo) Copy(to, from string) error
- func (r *FileRepo) DefaultBackend() backend.Backend
- func (r *FileRepo) Delete(name string) error
- func (r *FileRepo) Get(name string, body bool) (*backend.File, error)
- func (r *FileRepo) List(dir string) ([]string, error)
- func (r *FileRepo) ListFilesExcludingDefaultBackend(prefix string) ([]BackendFile, error)
- func (r *FileRepo) Put(name string, data io.Reader, offset int64, typ string) error
- func (f *FileRepo) SetBackend(tx *postgres.DBTx, id, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileRepo ¶
type FileRepo struct {
// contains filtered or unexported fields
}
func NewFileRepo ¶
func (*FileRepo) DefaultBackend ¶
func (*FileRepo) Get ¶
Get is like Open, except the FileStream is not populated (useful for HEAD requests)
func (*FileRepo) ListFilesExcludingDefaultBackend ¶
func (r *FileRepo) ListFilesExcludingDefaultBackend(prefix string) ([]BackendFile, error)
Click to show internal directories.
Click to hide internal directories.