Add FileInfoStore and Cloud services for Focalboard multi product architecture (#20546)

* add FileInfoStore and Cloud services
Этот коммит содержится в:
Doug Lauder
2022-06-27 14:32:27 -04:00
коммит произвёл GitHub
родитель e31dbb5aeb
Коммит 5544e753e8
4 изменённых файлов: 77 добавлений и 24 удалений

Просмотреть файл

@@ -134,3 +134,17 @@ type FilestoreService interface {
WriteFile(fr io.Reader, path string) (int64, error)
RemoveFile(path string) error
}
// FileInfoStoreService is the API for accessing the file info store.
//
// The service shall be registered via app.FileInfoStoreKey service key.
type FileInfoStoreService interface {
GetFileInfo(fileID string) (*model.FileInfo, *model.AppError)
}
// CloudService is the API for accessing the cloud service APIs.
//
// The service shall be registered via app.CloudKey service key.
type CloudService interface {
GetCloudLimits() (*model.ProductLimits, error)
}