objects

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Compression git.Compression
	Digest      git.Digest
	Pool        afs.ReaderPool

	AllObjects    Set
	PackedObjects Set
	SparseObjects Set
}

Context ... 是 objects 的相关组件专用的上下文

func (*Context) NewPackContext

func (inst *Context) NewPackContext(pid git.PackID) *PackContext

NewPackContext ...

type PackContext

type PackContext struct {
	Parent *Context
	PID    git.PackID
	Self   Set
}

PackContext ... 表示一个具体包的上下文

type Set

type Set interface {
	SetR
	SetW
}

Set ...

type SetR

type SetR interface {
	Contains(oid git.ObjectID) bool
	ReadObjectHead(oid git.ObjectID) (*git.Object, error)
	OpenObjectReader(oid git.ObjectID) (*git.Object, io.ReadCloser, error)
}

SetR ...

type SetW

type SetW interface {
	WriteObject(head *git.Object, data io.Reader) (*git.Object, error)
}

SetW ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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