Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorCorruptedObject = errors.New("corrupted object") ErrorCorruptedObjectHeader = fmt.Errorf("%w: corrupted header", ErrorCorruptedObject) ErrorUnknownObjectType = errors.New("unknown object type") ErrorSizeNotMatch = errors.New("object size does not match") ErrorUnknownFileMode = errors.New("unknown file mode") )
Functions ¶
func StripObjectHeader ¶
Types ¶
type Blob ¶
type Blob struct { LazyObject // contains filtered or unexported fields }
type LazyObject ¶
type LazyObject struct {
// contains filtered or unexported fields
}
func (*LazyObject) Compressed ¶
func (lo *LazyObject) Compressed() ([]byte, error)
func (*LazyObject) Digest ¶
func (lo *LazyObject) Digest() string
type Object ¶
type Object interface { // Object's bytes Raw() []byte // Compressed object's bytes Compressed() ([]byte, error) // Object's digest (hex string) Digest() string // Representation for pretty-printing an object String() string Type() string }
func ParseObject ¶
type ObjectModeType ¶
type ObjectModeType string
const ( ModeNormal ObjectModeType = "100644" ModeExecutable ObjectModeType = "100755" ModeSymbolicLink ObjectModeType = "120000" ModeTree ObjectModeType = "40000" )
type Tree ¶
type Tree struct { LazyObject // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.