Documentation
¶
Overview ¶
Package gitfs presents a file tree downloaded from a remote Git repo as an in-memory fs.FS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloneParams ¶
type CloneParams struct {
// MaxPackSize is the positive maximum size of the received pack. It also
// bounds the decoded objects and deltas retained while unpacking. It has no
// default.
MaxPackSize int64
Filters []string // Git object filter specifications.
}
CloneParams controls a clone. MaxPackSize must be positive.
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
A Repo is a connection to a remote repository served over HTTP or HTTPS.
func NewRepoWithClient ¶
NewRepoWithClient connects to a Git repository using client. A nil client uses http.DefaultClient.
func (*Repo) CloneHash ¶
func (r *Repo) CloneHash(h Hash, params *CloneParams) (*Tree, error)
CloneHash returns the Tree for the given hash.
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
A Tree is an fs.FS serving a Git file system tree rooted at a given tree object hash.
Click to show internal directories.
Click to hide internal directories.