Documentation
¶
Index ¶
- type Backup
- type ContentTypeDAO
- type ExampleDAO
- type ExecutableDAO
- type InstalledFileDAO
- type IntentTemplateDAO
- type LocalRepositoryDAO
- type LocationDAO
- type MediaDAO
- type NamespaceDAO
- type ProjectDAO
- type RemoteRepositoryDAO
- type SettingDAO
- type SoftwarePackageDAO
- type StatisticDAO
- type SystemConfig
- type TrashDAO
- type UserConfig
- type WorktreeDAO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentTypeDAO ¶ added in v0.1.1
type ContentTypeDAO interface { Find(id dxo.ContentTypeID) (*entity.ContentType, error) FindByURN(urn dxo.ContentTypeURN) (*entity.ContentType, error) FindByName(name dxo.ContentTypeName) (*entity.ContentType, error) ListAll() ([]*entity.ContentType, error) ListByPattern(pattern string) ([]*entity.ContentType, error) Insert(o *entity.ContentType) (*entity.ContentType, error) Update(id dxo.ContentTypeID, o *entity.ContentType) (*entity.ContentType, error) Remove(id dxo.ContentTypeID) error }
ContentTypeDAO ...
type ExampleDAO ¶
type ExampleDAO interface { Find(id dxo.ExampleID) (*entity.Example, error) ListAll() ([]*entity.Example, error) Insert(o *entity.Example) (*entity.Example, error) Update(id dxo.ExampleID, o *entity.Example) (*entity.Example, error) Remove(id dxo.ExampleID) error }
ExampleDAO ...
type ExecutableDAO ¶
type ExecutableDAO interface { Find(id dxo.ExecutableID) (*entity.Executable, error) FindByPath(path string) (*entity.Executable, error) FindByName(name string) (*entity.Executable, error) ListAll() ([]*entity.Executable, error) Insert(o *entity.Executable) (*entity.Executable, error) Update(id dxo.ExecutableID, o *entity.Executable) (*entity.Executable, error) Remove(id dxo.ExecutableID) error }
ExecutableDAO ...
type InstalledFileDAO ¶ added in v0.1.8
type InstalledFileDAO interface { Find(id dxo.InstalledFileID) (*entity.InstalledFile, error) ListAll() ([]*entity.InstalledFile, error) Insert(o *entity.InstalledFile) (*entity.InstalledFile, error) Update(id dxo.InstalledFileID, o *entity.InstalledFile) (*entity.InstalledFile, error) Remove(id dxo.InstalledFileID) error }
InstalledFileDAO ...
type IntentTemplateDAO ¶
type IntentTemplateDAO interface { Find(id dxo.IntentTemplateID) (*entity.IntentTemplate, error) ListAll() ([]*entity.IntentTemplate, error) Insert(o *entity.IntentTemplate) (*entity.IntentTemplate, error) Update(id dxo.IntentTemplateID, o *entity.IntentTemplate) (*entity.IntentTemplate, error) Remove(id dxo.IntentTemplateID) error }
IntentTemplateDAO ...
type LocalRepositoryDAO ¶
type LocalRepositoryDAO interface { Find(id dxo.LocalRepositoryID) (*entity.LocalRepository, error) FindByName(name string) (*entity.LocalRepository, error) FindByUUID(uuid dxo.UUID) (*entity.LocalRepository, error) FindByPath(path string) (*entity.LocalRepository, error) FindByDotGit(path string) (*entity.LocalRepository, error) FindByWorkingDir(path string) (*entity.LocalRepository, error) ListAll() ([]*entity.LocalRepository, error) ListByIds(ids []dxo.LocalRepositoryID) ([]*entity.LocalRepository, error) Insert(o *entity.LocalRepository) (*entity.LocalRepository, error) Update(id dxo.LocalRepositoryID, o *entity.LocalRepository) (*entity.LocalRepository, error) Remove(id dxo.LocalRepositoryID) error }
LocalRepositoryDAO ...
type LocationDAO ¶ added in v0.1.1
type LocationDAO interface { Find(id dxo.LocationID) (*entity.Location, error) FindByPath(path string) (*entity.Location, error) ListAll() ([]*entity.Location, error) Insert(o *entity.Location) (*entity.Location, error) Update(id dxo.LocationID, o *entity.Location) (*entity.Location, error) Remove(id dxo.LocationID) error }
LocationDAO ...
type MediaDAO ¶
type MediaDAO interface { Find(id dxo.MediaID) (*entity.Media, error) FindByPath(path string) (*entity.Media, error) ListByIDs(ids []dxo.MediaID) ([]*entity.Media, error) ListAll() ([]*entity.Media, error) Insert(o *entity.Media) (*entity.Media, error) Update(id dxo.MediaID, o *entity.Media) (*entity.Media, error) Remove(id dxo.MediaID) error }
MediaDAO ...
type NamespaceDAO ¶ added in v0.1.1
type NamespaceDAO interface { Find(id dxo.NamespaceID) (*entity.Namespace, error) ListAll() ([]*entity.Namespace, error) Insert(o *entity.Namespace) (*entity.Namespace, error) Update(id dxo.NamespaceID, o *entity.Namespace) (*entity.Namespace, error) Remove(id dxo.NamespaceID) error }
NamespaceDAO ...
type ProjectDAO ¶
type ProjectDAO interface { Find(id dxo.ProjectID) (*entity.Project, error) FindByOwnerRepository(id dxo.LocalRepositoryID) ([]*entity.Project, error) FindByPath(path string) (*entity.Project, error) ListAll() ([]*entity.Project, error) ListByIds(ids []dxo.ProjectID) ([]*entity.Project, error) Insert(o *entity.Project) (*entity.Project, error) Update(id dxo.ProjectID, o *entity.Project) (*entity.Project, error) Remove(id dxo.ProjectID) error }
ProjectDAO ...
type RemoteRepositoryDAO ¶
type RemoteRepositoryDAO interface { Find(id dxo.RemoteRepositoryID) (*entity.RemoteRepository, error) FindByName(name string) (*entity.RemoteRepository, error) FindByPath(path string) (*entity.RemoteRepository, error) ListAll() ([]*entity.RemoteRepository, error) Insert(o *entity.RemoteRepository) (*entity.RemoteRepository, error) Update(id dxo.RemoteRepositoryID, o *entity.RemoteRepository) (*entity.RemoteRepository, error) Remove(id dxo.RemoteRepositoryID) error }
RemoteRepositoryDAO ...
type SettingDAO ¶ added in v0.0.14
type SettingDAO interface { Find(id dxo.SettingID) (*entity.Setting, error) FindByName(name string) (*entity.Setting, error) ListAll() ([]*entity.Setting, error) Insert(o *entity.Setting) (*entity.Setting, error) Update(id dxo.SettingID, o *entity.Setting) (*entity.Setting, error) Remove(id dxo.SettingID) error Put(name string, o *entity.Setting) Get(name string, def *entity.Setting) *entity.Setting }
SettingDAO ...
type SoftwarePackageDAO ¶ added in v0.1.1
type SoftwarePackageDAO interface { Find(id dxo.SoftwarePackageID) (*entity.SoftwarePackage, error) ListAll() ([]*entity.SoftwarePackage, error) ListByModuleName(moduleName string) ([]*entity.SoftwarePackage, error) Insert(o *entity.SoftwarePackage) (*entity.SoftwarePackage, error) Update(id dxo.SoftwarePackageID, o *entity.SoftwarePackage) (*entity.SoftwarePackage, error) Remove(id dxo.SoftwarePackageID) error }
SoftwarePackageDAO ...
type StatisticDAO ¶ added in v0.1.4
type StatisticDAO interface { CountBackups() int64 CountContentTypes() int64 CountExecutables() int64 CountIntentTemplates() int64 CountMediae() int64 CountPlugIns() int64 CountProjects() int64 CountRepositories() int64 CountRemotes() int64 }
StatisticDAO ...
type SystemConfig ¶
type SystemConfig interface { Get(name string) (*entity.SystemConfig, error) Save(name string, cfg *entity.SystemConfig) error GetProperties(name string) (collection.Properties, error) SaveProperties(name string, cfg collection.Properties) error }
type TrashDAO ¶ added in v0.1.2
type TrashDAO interface { ListAll() ([]*entity.Holder, error) Delete(h ...*entity.Holder) error Recover(h ...*entity.Holder) error }
TrashDAO 用来存取已经被软删除的对象
type UserConfig ¶
type UserConfig interface { Get(name string) (*entity.UserConfig, error) Save(name string, cfg *entity.UserConfig) error GetProperties(name string) (collection.Properties, error) SaveProperties(name string, cfg collection.Properties) error }
type WorktreeDAO ¶ added in v0.1.1
type WorktreeDAO interface { Find(id dxo.WorktreeID) (*entity.Worktree, error) FindByPath(path string) (*entity.Worktree, error) ListAll() ([]*entity.Worktree, error) Insert(o *entity.Worktree) (*entity.Worktree, error) Update(id dxo.WorktreeID, o *entity.Worktree) (*entity.Worktree, error) Remove(id dxo.WorktreeID) error }
WorktreeDAO ...
Source Files
¶
- backup_all_daos.go
- example_dao.go
- executable_dao.go
- installed_file_dao.go
- intent_dao.go
- location_dao.go
- media_dao.go
- namespace_dao.go
- plugin_dao.go
- project_dao.go
- project_type_dao.go
- repository_dao.go
- setting_dao.go
- statistic_dao.go
- system_config_dao.go
- trash_dao.go
- user_config_dao.go
- worktree_dao.go
Click to show internal directories.
Click to hide internal directories.