object

package
v0.0.0-...-f01fb92 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_RECURSIVE_DEPTH = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Blob

type Blob struct {
	// contains filtered or unexported fields
}

func NewBlob

func NewBlob(filepath string) *Blob

func (*Blob) Hash

func (b *Blob) Hash() string

func (*Blob) Info

func (b *Blob) Info() string

func (*Blob) Name

func (b *Blob) Name() string

func (*Blob) Save

func (b *Blob) Save()

type Object

type Object interface {
	Hash() string
	Info() string // used to write tree objects to disk
}

type Tree

type Tree struct {
	// contains filtered or unexported fields
}

func NewTree

func NewTree(dirpath string) *Tree

func (*Tree) DirName

func (t *Tree) DirName() string

func (*Tree) Hash

func (t *Tree) Hash() string

func (*Tree) Info

func (t *Tree) Info() string

func (*Tree) Save

func (t *Tree) Save()

Jump to

Keyboard shortcuts

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