Documentation ¶
Index ¶
- Variables
- type Entry
- type EntryType
- type FileInfo
- type FileReader
- func (f FileReader) Close() error
- func (f FileReader) DeadProps() (map[xml.Name]webdav.Property, error)
- func (f FileReader) Patch(patches []webdav.Proppatch) ([]webdav.Propstat, error)
- func (f FileReader) Read(p []byte) (n int, err error)
- func (f FileReader) Readdir(count int) ([]fs.FileInfo, error)
- func (f FileReader) Seek(offset int64, whence int) (int64, error)
- func (f FileReader) Stat() (fs.FileInfo, error)
- func (f FileReader) Write(p []byte) (n int, err error)
- type MetadataStore
- func (m MetadataStore) AddEntry(ctx context.Context, entry Entry, path string) error
- func (m MetadataStore) AddReference(ctx context.Context, ref Reference) error
- func (m MetadataStore) DeleteEntries(ctx context.Context, ids []string, ref Reference) error
- func (m MetadataStore) GetEntriesByParentID(ctx context.Context, id string) ([]Entry, error)
- func (m MetadataStore) GetEntry(ctx context.Context, id string) (Entry, error)
- func (m MetadataStore) GetReference(ctx context.Context, id string) (Reference, error)
- func (m MetadataStore) Init(ctx context.Context) error
- func (m MetadataStore) UpdateEntry(ctx context.Context, entry Entry) error
- func (m MetadataStore) UpdateEntryName(ctx context.Context, entry Entry, ref Reference) error
- type PhysicalStore
- type Reference
- type Server
- func (s *Server) Create(ctx context.Context, path string, flag int, perm os.FileMode, r io.Reader) (os.FileInfo, error)
- func (s *Server) Mkdir(ctx context.Context, path string, perm os.FileMode) error
- func (s *Server) OpenFile(ctx context.Context, path string, flag int, perm os.FileMode) (webdav.File, error)
- func (s *Server) RemoveAll(ctx context.Context, path string) error
- func (s *Server) Rename(ctx context.Context, oldPath, newPath string) error
- func (s *Server) Stat(ctx context.Context, path string) (os.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoSuchReference = errors.New("no such reference") ErrNoSuchEntry = errors.New("no such entry") )
View Source
var ErrNotSupported = errors.New("not supported")
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { ID string `dynamodbav:"id"` ParentID string `dynamodbav:"parent_id"` Name string `dynamodbav:"name"` Type EntryType `dynamodbav:"type"` Size int64 `dynamodbav:"size"` Modify time.Time `dynamodbav:"modify"` DeadProps map[string]string `dynamodbav:"dead_props"` Version int `dynamodbav:"version"` }
type FileReader ¶
type FileReader struct {
// contains filtered or unexported fields
}
func (FileReader) Close ¶
func (f FileReader) Close() error
type MetadataStore ¶
type MetadataStore struct { EntryTableName string ReferenceTableName string DynamoDBClient *dynamodb.Client }
func (MetadataStore) AddReference ¶
func (m MetadataStore) AddReference(ctx context.Context, ref Reference) error
func (MetadataStore) DeleteEntries ¶
func (MetadataStore) GetEntriesByParentID ¶
func (MetadataStore) GetReference ¶
func (MetadataStore) UpdateEntry ¶
func (m MetadataStore) UpdateEntry(ctx context.Context, entry Entry) error
func (MetadataStore) UpdateEntryName ¶
type PhysicalStore ¶
func (PhysicalStore) GetObject ¶
func (s PhysicalStore) GetObject(ctx context.Context, objectKey string) (io.ReadCloser, error)
func (PhysicalStore) PutObjectLarge ¶
Click to show internal directories.
Click to hide internal directories.