repositories

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

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

Init 初始化

type LocalRepositoryFinderImpl

type LocalRepositoryFinderImpl struct {
	markup.Component `id:"LocalRepositoryFinder"`

	GitLibAgent store.LibAgent `inject:"#git-lib-agent"`
}

LocalRepositoryFinderImpl ...

func (*LocalRepositoryFinderImpl) Locate

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

ConvertDtoToEntity ...

func (*LocalRepositoryServiceImpl) ConvertEntityToDto

ConvertEntityToDto ...

func (*LocalRepositoryServiceImpl) Find

Find ...

func (*LocalRepositoryServiceImpl) FindByName

FindByName ...

func (*LocalRepositoryServiceImpl) FindByPath

FindByPath ...

func (*LocalRepositoryServiceImpl) Insert

Insert ...

func (*LocalRepositoryServiceImpl) InsertOrFetch

InsertOrFetch ...

func (*LocalRepositoryServiceImpl) ListAll

ListAll ...

func (*LocalRepositoryServiceImpl) ListByIds

ListByIds ...

func (*LocalRepositoryServiceImpl) Remove

Remove ...

func (*LocalRepositoryServiceImpl) Update

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

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

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

Init 初始化

type RemoteRepositoryServiceImpl

type RemoteRepositoryServiceImpl struct {
	markup.Component `id:"RemoteRepositoryService"`
}

RemoteRepositoryServiceImpl ...

func (*RemoteRepositoryServiceImpl) Find

Find ...

func (*RemoteRepositoryServiceImpl) FindByName

FindByName ...

func (*RemoteRepositoryServiceImpl) Insert

Insert ...

func (*RemoteRepositoryServiceImpl) ListAll

ListAll ...

func (*RemoteRepositoryServiceImpl) Remove

Remove ...

func (*RemoteRepositoryServiceImpl) Update

Update ...

type RepositoryDaoImpl

type RepositoryDaoImpl struct {
	markup.Component `id:"LocalRepositoryDAO"`

	Agent          dbagent.GormDBAgent    `inject:"#GormDBAgent"`
	TrashService   service.TrashService   `inject:"#TrashService"`
	UUIDGenService service.UUIDGenService `inject:"#UUIDGenService"`
}

RepositoryDaoImpl ...

func (*RepositoryDaoImpl) Find

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

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

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

Init 初始化

type RepositoryImportServiceImpl

type RepositoryImportServiceImpl struct {
	markup.Component `id:"RepositoryImportService"`

	RepositoryService service.LocalRepositoryService `inject:"#LocalRepositoryService"`
	RepoFinder        service.LocalRepositoryFinder  `inject:"#LocalRepositoryFinder"`
}

RepositoryImportServiceImpl ...

func (*RepositoryImportServiceImpl) Find

Find ...

func (*RepositoryImportServiceImpl) FindOrLocate

FindOrLocate ...

func (*RepositoryImportServiceImpl) Locate

Locate ...

func (*RepositoryImportServiceImpl) Save

Save ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL