core

package
v0.0.0-...-422c924 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 6 Imported by: 0

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
}

Jump to

Keyboard shortcuts

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