objext

package
v0.0.0-...-8817f42 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeCommit

func DecodeCommit(o EncodedObject) (c *object.Commit, err error)

func DecodeTree

func DecodeTree(o EncodedObject) (t *object.Tree, err error)

func Tree2String

func Tree2String(t *object.Tree) string

Types

type BytesObject

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

func NewBytesObject

func NewBytesObject(b []byte, oe *packext.ObjEntry) *BytesObject

func (*BytesObject) Hash

func (o *BytesObject) Hash() plumbing.Hash

func (*BytesObject) Reader

func (o *BytesObject) Reader() (io.Reader, error)

func (*BytesObject) Size

func (o *BytesObject) Size() int64

func (*BytesObject) Type

func (o *BytesObject) Type() plumbing.ObjectType

type EncodedObject

type EncodedObject interface {
	Reader() (io.Reader, error)
	Type() plumbing.ObjectType
	Hash() plumbing.Hash
	Size() int64
}

Jump to

Keyboard shortcuts

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