Documentation ¶
Index ¶
- type LocalRepositoryController
- type LocalRepositoryFinderImpl
- func (inst *LocalRepositoryFinderImpl) Locate(ctx context.Context, path string) (*dto.LocalRepository, error)
- func (inst *LocalRepositoryFinderImpl) LocateLayout(ctx context.Context, path string) (store.RepositoryLayout, error)
- func (inst *LocalRepositoryFinderImpl) Search(ctx context.Context, path string, depthLimit int) ([]*dto.LocalRepository, error)
- type LocalRepositoryServiceImpl
- func (inst *LocalRepositoryServiceImpl) ConvertDtoToEntity(ctx context.Context, o1 *dto.LocalRepository) (*entity.LocalRepository, error)
- func (inst *LocalRepositoryServiceImpl) ConvertEntityToDto(ctx context.Context, o1 *entity.LocalRepository) (*dto.LocalRepository, error)
- func (inst *LocalRepositoryServiceImpl) Find(ctx context.Context, id dxo.LocalRepositoryID, ...) (*dto.LocalRepository, error)
- func (inst *LocalRepositoryServiceImpl) FindByName(ctx context.Context, name string, opt *service.LocalRepositoryOptions) (*dto.LocalRepository, error)
- func (inst *LocalRepositoryServiceImpl) FindByPath(ctx context.Context, path string, opt *service.LocalRepositoryOptions) (*dto.LocalRepository, error)
- func (inst *LocalRepositoryServiceImpl) Insert(ctx context.Context, o1 *dto.LocalRepository) (*dto.LocalRepository, error)
- func (inst *LocalRepositoryServiceImpl) InsertOrFetch(ctx context.Context, o1 *dto.LocalRepository, ...) (*dto.LocalRepository, error)
- func (inst *LocalRepositoryServiceImpl) ListAll(ctx context.Context, opt *service.LocalRepositoryOptions) ([]*dto.LocalRepository, error)
- func (inst *LocalRepositoryServiceImpl) ListByIds(ctx context.Context, ids []dxo.LocalRepositoryID, ...) ([]*dto.LocalRepository, error)
- func (inst *LocalRepositoryServiceImpl) Remove(ctx context.Context, id dxo.LocalRepositoryID) error
- func (inst *LocalRepositoryServiceImpl) Update(ctx context.Context, id dxo.LocalRepositoryID, o1 *dto.LocalRepository) (*dto.LocalRepository, error)
- type LocalRepositoryStateLoaderImpl
- type MainRepositoryServiceImpl
- type RemoteRepositoryController
- type RemoteRepositoryServiceImpl
- func (inst *RemoteRepositoryServiceImpl) Find(ctx context.Context, id dxo.RemoteRepositoryID) (*dto.RemoteRepository, error)
- func (inst *RemoteRepositoryServiceImpl) FindByName(ctx context.Context, name string) (*dto.RemoteRepository, error)
- func (inst *RemoteRepositoryServiceImpl) Insert(ctx context.Context, o *dto.RemoteRepository) (*dto.RemoteRepository, error)
- func (inst *RemoteRepositoryServiceImpl) ListAll(ctx context.Context) ([]*dto.RemoteRepository, error)
- func (inst *RemoteRepositoryServiceImpl) Remove(ctx context.Context, id dxo.RemoteRepositoryID) error
- func (inst *RemoteRepositoryServiceImpl) Update(ctx context.Context, id dxo.RemoteRepositoryID, o *dto.RemoteRepository) (*dto.RemoteRepository, error)
- type RepositoryDaoImpl
- func (inst *RepositoryDaoImpl) Find(id dxo.LocalRepositoryID) (*entity.LocalRepository, error)
- func (inst *RepositoryDaoImpl) FindByDotGit(path string) (*entity.LocalRepository, error)
- func (inst *RepositoryDaoImpl) FindByName(name string) (*entity.LocalRepository, error)
- func (inst *RepositoryDaoImpl) FindByPath(path string) (*entity.LocalRepository, error)
- func (inst *RepositoryDaoImpl) FindByUUID(uuid dxo.UUID) (*entity.LocalRepository, error)
- func (inst *RepositoryDaoImpl) FindByWorkingDir(path string) (*entity.LocalRepository, error)
- func (inst *RepositoryDaoImpl) Insert(o *entity.LocalRepository) (*entity.LocalRepository, error)
- func (inst *RepositoryDaoImpl) ListAll() ([]*entity.LocalRepository, error)
- func (inst *RepositoryDaoImpl) ListByIds(ids []dxo.LocalRepositoryID) ([]*entity.LocalRepository, error)
- func (inst *RepositoryDaoImpl) Remove(id dxo.LocalRepositoryID) error
- func (inst *RepositoryDaoImpl) Update(id dxo.LocalRepositoryID, o1 *entity.LocalRepository) (*entity.LocalRepository, error)
- type RepositoryImportController
- type RepositoryImportServiceImpl
- func (inst *RepositoryImportServiceImpl) Find(ctx context.Context, o1 *vo.RepositoryImport) (*vo.RepositoryImport, error)
- func (inst *RepositoryImportServiceImpl) FindOrLocate(ctx context.Context, o1 *vo.RepositoryImport) (*vo.RepositoryImport, error)
- func (inst *RepositoryImportServiceImpl) Locate(ctx context.Context, o1 *vo.RepositoryImport) (*vo.RepositoryImport, error)
- func (inst *RepositoryImportServiceImpl) Save(ctx context.Context, vo1 *vo.RepositoryImport) (*vo.RepositoryImport, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalRepositoryController ¶
type LocalRepositoryController struct { markup.RestController `class:"rest-controller"` RepoService service.LocalRepositoryService `inject:"#LocalRepositoryService"` Responder glass.MainResponder `inject:"#glass-main-responder"` }
LocalRepositoryController 仓库控制器
func (*LocalRepositoryController) Init ¶
func (inst *LocalRepositoryController) Init(ec glass.EngineConnection) error
Init 初始化
type LocalRepositoryFinderImpl ¶
type LocalRepositoryFinderImpl struct { markup.Component `id:"LocalRepositoryFinder"` GitLibAgent store.LibAgent `inject:"#git-lib-agent"` }
LocalRepositoryFinderImpl ...
func (*LocalRepositoryFinderImpl) Locate ¶
func (inst *LocalRepositoryFinderImpl) Locate(ctx context.Context, path string) (*dto.LocalRepository, error)
Locate ...
func (*LocalRepositoryFinderImpl) LocateLayout ¶
func (inst *LocalRepositoryFinderImpl) LocateLayout(ctx context.Context, path string) (store.RepositoryLayout, error)
LocateLayout ...
func (*LocalRepositoryFinderImpl) Search ¶
func (inst *LocalRepositoryFinderImpl) Search(ctx context.Context, path string, depthLimit int) ([]*dto.LocalRepository, error)
Search ...
type LocalRepositoryServiceImpl ¶
type LocalRepositoryServiceImpl struct { markup.Component `id:"LocalRepositoryService"` GitLibAgent store.LibAgent `inject:"#git-lib-agent"` LocalRepositoryDAO dao.LocalRepositoryDAO `inject:"#LocalRepositoryDAO"` UUIDGenService service.UUIDGenService `inject:"#UUIDGenService"` RepoFinder service.LocalRepositoryFinder `inject:"#LocalRepositoryFinder"` LrStateLoader service.LocalRepositoryStateLoader `inject:"#LocalRepositoryStateLoader"` FileSystemService service.FileSystemService `inject:"#FileSystemService"` LocationService service.LocationService `inject:"#LocationService"` ProjectService service.ProjectService `inject:"#ProjectService"` }
LocalRepositoryServiceImpl ...
func (*LocalRepositoryServiceImpl) ConvertDtoToEntity ¶
func (inst *LocalRepositoryServiceImpl) ConvertDtoToEntity(ctx context.Context, o1 *dto.LocalRepository) (*entity.LocalRepository, error)
ConvertDtoToEntity ...
func (*LocalRepositoryServiceImpl) ConvertEntityToDto ¶
func (inst *LocalRepositoryServiceImpl) ConvertEntityToDto(ctx context.Context, o1 *entity.LocalRepository) (*dto.LocalRepository, error)
ConvertEntityToDto ...
func (*LocalRepositoryServiceImpl) Find ¶
func (inst *LocalRepositoryServiceImpl) Find(ctx context.Context, id dxo.LocalRepositoryID, opt *service.LocalRepositoryOptions) (*dto.LocalRepository, error)
Find ...
func (*LocalRepositoryServiceImpl) FindByName ¶
func (inst *LocalRepositoryServiceImpl) FindByName(ctx context.Context, name string, opt *service.LocalRepositoryOptions) (*dto.LocalRepository, error)
FindByName ...
func (*LocalRepositoryServiceImpl) FindByPath ¶
func (inst *LocalRepositoryServiceImpl) FindByPath(ctx context.Context, path string, opt *service.LocalRepositoryOptions) (*dto.LocalRepository, error)
FindByPath ...
func (*LocalRepositoryServiceImpl) Insert ¶
func (inst *LocalRepositoryServiceImpl) Insert(ctx context.Context, o1 *dto.LocalRepository) (*dto.LocalRepository, error)
Insert ...
func (*LocalRepositoryServiceImpl) InsertOrFetch ¶
func (inst *LocalRepositoryServiceImpl) InsertOrFetch(ctx context.Context, o1 *dto.LocalRepository, opt *service.LocalRepositoryOptions) (*dto.LocalRepository, error)
InsertOrFetch ...
func (*LocalRepositoryServiceImpl) ListAll ¶
func (inst *LocalRepositoryServiceImpl) ListAll(ctx context.Context, opt *service.LocalRepositoryOptions) ([]*dto.LocalRepository, error)
ListAll ...
func (*LocalRepositoryServiceImpl) ListByIds ¶
func (inst *LocalRepositoryServiceImpl) ListByIds(ctx context.Context, ids []dxo.LocalRepositoryID, opt *service.LocalRepositoryOptions) ([]*dto.LocalRepository, error)
ListByIds ...
func (*LocalRepositoryServiceImpl) Remove ¶
func (inst *LocalRepositoryServiceImpl) Remove(ctx context.Context, id dxo.LocalRepositoryID) error
Remove ...
func (*LocalRepositoryServiceImpl) Update ¶
func (inst *LocalRepositoryServiceImpl) Update(ctx context.Context, id dxo.LocalRepositoryID, o1 *dto.LocalRepository) (*dto.LocalRepository, error)
Update ...
type LocalRepositoryStateLoaderImpl ¶
type LocalRepositoryStateLoaderImpl struct { markup.Component `id:"LocalRepositoryStateLoader"` LocalRepoService service.LocalRepositoryService `inject:"#LocalRepositoryService"` Dao dao.LocalRepositoryDAO `inject:"#LocalRepositoryDAO"` GitLibAgent store.LibAgent `inject:"#git-lib-agent"` }
LocalRepositoryStateLoaderImpl ...
func (*LocalRepositoryStateLoaderImpl) LoadState ¶
func (inst *LocalRepositoryStateLoaderImpl) LoadState(ctx context.Context, repo0 *dto.LocalRepository) error
LoadState ...
type MainRepositoryServiceImpl ¶
type MainRepositoryServiceImpl struct { markup.Component `id:"MainRepositoryService"` // MainRepoPath string `inject:"${wpm.system-main-repository.path}"` AppDataService service.AppDataService `inject:"#AppDataService"` GitLA store.LibAgent `inject:"#git-lib-agent"` // contains filtered or unexported fields }
MainRepositoryServiceImpl ...
func (*MainRepositoryServiceImpl) GetInfo ¶
func (inst *MainRepositoryServiceImpl) GetInfo(ctx context.Context) (*dto.MainRepository, error)
GetInfo ...
func (*MainRepositoryServiceImpl) GetRepository ¶
func (inst *MainRepositoryServiceImpl) GetRepository(ctx context.Context) (store.Repository, error)
GetRepository ...
type RemoteRepositoryController ¶
type RemoteRepositoryController struct { markup.RestController `class:"rest-controller"` RepoService service.RemoteRepositoryService `inject:"#RemoteRepositoryService"` Responder glass.MainResponder `inject:"#glass-main-responder"` }
RemoteRepositoryController 仓库控制器
func (*RemoteRepositoryController) Init ¶
func (inst *RemoteRepositoryController) Init(ec glass.EngineConnection) error
Init 初始化
type RemoteRepositoryServiceImpl ¶
RemoteRepositoryServiceImpl ...
func (*RemoteRepositoryServiceImpl) Find ¶
func (inst *RemoteRepositoryServiceImpl) Find(ctx context.Context, id dxo.RemoteRepositoryID) (*dto.RemoteRepository, error)
Find ...
func (*RemoteRepositoryServiceImpl) FindByName ¶
func (inst *RemoteRepositoryServiceImpl) FindByName(ctx context.Context, name string) (*dto.RemoteRepository, error)
FindByName ...
func (*RemoteRepositoryServiceImpl) Insert ¶
func (inst *RemoteRepositoryServiceImpl) Insert(ctx context.Context, o *dto.RemoteRepository) (*dto.RemoteRepository, error)
Insert ...
func (*RemoteRepositoryServiceImpl) ListAll ¶
func (inst *RemoteRepositoryServiceImpl) ListAll(ctx context.Context) ([]*dto.RemoteRepository, error)
ListAll ...
func (*RemoteRepositoryServiceImpl) Remove ¶
func (inst *RemoteRepositoryServiceImpl) Remove(ctx context.Context, id dxo.RemoteRepositoryID) error
Remove ...
func (*RemoteRepositoryServiceImpl) Update ¶
func (inst *RemoteRepositoryServiceImpl) Update(ctx context.Context, id dxo.RemoteRepositoryID, o *dto.RemoteRepository) (*dto.RemoteRepository, error)
Update ...
type RepositoryDaoImpl ¶
type RepositoryDaoImpl struct { markup.Component `id:"LocalRepositoryDAO"` Agent dbagent.GormDBAgent `inject:"#GormDBAgent"` UUIDGenService service.UUIDGenService `inject:"#UUIDGenService"` }
RepositoryDaoImpl ...
func (*RepositoryDaoImpl) Find ¶
func (inst *RepositoryDaoImpl) Find(id dxo.LocalRepositoryID) (*entity.LocalRepository, error)
Find ...
func (*RepositoryDaoImpl) FindByDotGit ¶
func (inst *RepositoryDaoImpl) FindByDotGit(path string) (*entity.LocalRepository, error)
FindByDotGit ...
func (*RepositoryDaoImpl) FindByName ¶
func (inst *RepositoryDaoImpl) FindByName(name string) (*entity.LocalRepository, error)
FindByName ...
func (*RepositoryDaoImpl) FindByPath ¶
func (inst *RepositoryDaoImpl) FindByPath(path string) (*entity.LocalRepository, error)
FindByPath ...
func (*RepositoryDaoImpl) FindByUUID ¶
func (inst *RepositoryDaoImpl) FindByUUID(uuid dxo.UUID) (*entity.LocalRepository, error)
FindByUUID ...
func (*RepositoryDaoImpl) FindByWorkingDir ¶
func (inst *RepositoryDaoImpl) FindByWorkingDir(path string) (*entity.LocalRepository, error)
FindByWorkingDir ...
func (*RepositoryDaoImpl) Insert ¶
func (inst *RepositoryDaoImpl) Insert(o *entity.LocalRepository) (*entity.LocalRepository, error)
Insert ...
func (*RepositoryDaoImpl) ListAll ¶
func (inst *RepositoryDaoImpl) ListAll() ([]*entity.LocalRepository, error)
ListAll ...
func (*RepositoryDaoImpl) ListByIds ¶
func (inst *RepositoryDaoImpl) ListByIds(ids []dxo.LocalRepositoryID) ([]*entity.LocalRepository, error)
ListByIds ...
func (*RepositoryDaoImpl) Remove ¶
func (inst *RepositoryDaoImpl) Remove(id dxo.LocalRepositoryID) error
Remove ...
func (*RepositoryDaoImpl) Update ¶
func (inst *RepositoryDaoImpl) Update(id dxo.LocalRepositoryID, o1 *entity.LocalRepository) (*entity.LocalRepository, error)
Update ...
type RepositoryImportController ¶
type RepositoryImportController struct { markup.RestController `class:"rest-controller"` RepoStateLoader service.LocalRepositoryStateLoader `inject:"#LocalRepositoryStateLoader"` ImportService service.RepositoryImportService `inject:"#RepositoryImportService"` Responder glass.MainResponder `inject:"#glass-main-responder"` }
RepositoryImportController 仓库控制器
func (*RepositoryImportController) Init ¶
func (inst *RepositoryImportController) Init(ec glass.EngineConnection) error
Init 初始化
type RepositoryImportServiceImpl ¶
type RepositoryImportServiceImpl struct { markup.Component `id:"RepositoryImportService"` RepositoryService service.LocalRepositoryService `inject:"#LocalRepositoryService"` RepoFinder service.LocalRepositoryFinder `inject:"#LocalRepositoryFinder"` }
RepositoryImportServiceImpl ...
func (*RepositoryImportServiceImpl) Find ¶
func (inst *RepositoryImportServiceImpl) Find(ctx context.Context, o1 *vo.RepositoryImport) (*vo.RepositoryImport, error)
Find ...
func (*RepositoryImportServiceImpl) FindOrLocate ¶
func (inst *RepositoryImportServiceImpl) FindOrLocate(ctx context.Context, o1 *vo.RepositoryImport) (*vo.RepositoryImport, error)
FindOrLocate ...
func (*RepositoryImportServiceImpl) Locate ¶
func (inst *RepositoryImportServiceImpl) Locate(ctx context.Context, o1 *vo.RepositoryImport) (*vo.RepositoryImport, error)
Locate ...
func (*RepositoryImportServiceImpl) Save ¶
func (inst *RepositoryImportServiceImpl) Save(ctx context.Context, vo1 *vo.RepositoryImport) (*vo.RepositoryImport, error)
Save ...
Source Files ¶
- local_repository_controller.go
- local_repository_dao_impl.go
- local_repository_finder_impl.go
- local_repository_service_impl.go
- local_repository_state_loader_impl.go
- main_repository_service_imp.go
- remote_repository_controller.go
- remote_repository_service_imp.go
- repository_import_controller.go
- repository_import_service_impl.go
- repository_submodules_loader.go
- repository_worktrees_loader.go
- user_main_repository_controller.go
- user_main_repository_service_imp.go