Documentation ¶
Index ¶
- type File
- func (f File) GetByFolderID(ctx context.Context, folderID string, sort types.Sort) (files []types.File, err error)
- func (f File) GetByID(ctx context.Context, id string) (ff types.File, err error)
- func (f File) IsExists(ctx context.Context, id string) (ok bool, err error)
- func (f File) MarkDelete(ctx context.Context, id []string) error
- func (f File) RemoveMeta(ctx context.Context, id string) error
- func (f File) SaveMeta(ctx context.Context, file types.File) (created types.File, err error)
- func (f File) UpdateFolderID(ctx context.Context, id []string, folderID string) error
- func (f File) UpdateName(ctx context.Context, id, name string) (updated types.File, err error)
- type Folder
- func (f Folder) Create(ctx context.Context, folder types.Folder) (ff types.Folder, err error)
- func (f Folder) Delete(ctx context.Context, id string) error
- func (f Folder) ExistsByID(ctx context.Context, parentID string) (exists bool, err error)
- func (f Folder) ExistsByParentIDName(ctx context.Context, parentID *string, name string) (exists bool, err error)
- func (f Folder) Get(ctx context.Context, id string) (*types.Folder, error)
- func (f Folder) GetByParent(ctx context.Context, parentID *string, sort types.Sort) (folders []*types.Folder, err error)
- func (f Folder) Update(ctx context.Context, folder types.Folder) (ff types.Folder, err error)
- type Sort
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (File) GetByFolderID ¶
func (File) UpdateFolderID ¶
type Folder ¶
type Folder struct {
// contains filtered or unexported fields
}
func (Folder) ExistsByID ¶
func (Folder) ExistsByParentIDName ¶
func (Folder) GetByParent ¶
Click to show internal directories.
Click to hide internal directories.