Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElementCreateHandler ¶
type ElementCreateHandler interface {
OnCreate() error
}
type ElementDestroyHandler ¶
type ElementDestroyHandler interface {
OnDestroy() error
}
type ElementFactory ¶
type ElementFactory interface {
Create(core RepositoryCore)
}
type RepositoryCore ¶
type RepositoryCore struct { Path fs.Path // the core repository directory Objects objects.ObjectStore Config config.GitConfig HEAD head.GitHEAD Index index.GitIndex Refs refs.GitRefs // contains filtered or unexported fields }
RepositoryCore 表示一个仓库的对内面貌
func (*RepositoryCore) Close ¶
func (inst *RepositoryCore) Close() error
Close 方法用于关闭一个 RepositoryCore,以便释放该对象持有的所有资源
type RepositoryCoreFactory ¶
type RepositoryCoreFactory struct {
// contains filtered or unexported fields
}
RepositoryCoreFactory 是用于创建 RepositoryCore 的工厂
func (*RepositoryCoreFactory) Open ¶
func (inst *RepositoryCoreFactory) Open(path fs.Path) (*RepositoryCore, error)
Open 方法打开指定位置的仓库
type RepositoryDriver ¶
type RepositoryDriver struct {
Factory *RepositoryCoreFactory
}
Click to show internal directories.
Click to hide internal directories.