vcs

package
v0.0.0-...-829ed5c Latest Latest
Warning

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

Go to latest
Published: May 13, 2014 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blob

type Blob interface {
	Size() int64
	Contents() []byte
}

type Commit

type Commit interface {
	Message() string
	Tree() (Tree, error)
	Author() *Signature
}

type Git

type Git struct{}

func (Git) OpenRepository

func (_ Git) OpenRepository(path string) (Repository, error)

type Oid

type Oid git.Oid

type Reference

type Reference interface {
	Resolve() (Reference, error)
	Target() *Oid
}

type Repository

type Repository interface {
	LookupReference(name string) (Reference, error)
	LookupBlob(oid *Oid) (Blob, error)
	LookupCommit(oid *Oid) (Commit, error)
}

type Signature

type Signature git.Signature

type Tree

type Tree interface {
	Walk(callback TreeWalkCallback) error
}

type TreeEntry

type TreeEntry struct {
	Name     string
	Id       *Oid
	Type     git.ObjectType
	Filemode int
}

type TreeWalkCallback

type TreeWalkCallback func(string, *TreeEntry) int

type VCS

type VCS interface {
	OpenRepository(path string) (Repository, error)
}

Jump to

Keyboard shortcuts

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