 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type Filesystem
- func (f *Filesystem) Cleanup() error
- func (f *Filesystem) EachObject(fn func(Object) error) error
- func (f *Filesystem) LFSObjectDir() string
- func (f *Filesystem) LogDir() string
- func (f *Filesystem) ObjectExists(oid string, size int64) bool
- func (f *Filesystem) ObjectPath(oid string) (string, error)
- func (f *Filesystem) ObjectPathname(oid string) string
- func (f *Filesystem) ObjectReferencePath(oid string) string
- func (f *Filesystem) TempDir() string
 
- type Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filesystem ¶
type Filesystem struct {
	GitStorageDir string // parent of objects/lfs (may be same as GitDir but may not)
	LFSStorageDir string // parent of lfs objects and tmp dirs. Default: ".git/lfs"
	ReferenceDir  string // alternative local media dir (relative to clone reference repo)
	// contains filtered or unexported fields
}
    func New ¶
func New(gitdir, workdir, lfsdir string) *Filesystem
New initializes a new *Filesystem with the given directories. gitdir is the path to the bare repo, workdir is the path to the repository working directory, and lfsdir is the optional path to the `.git/lfs` directory.
func (*Filesystem) Cleanup ¶
func (f *Filesystem) Cleanup() error
func (*Filesystem) EachObject ¶
func (f *Filesystem) EachObject(fn func(Object) error) error
func (*Filesystem) LFSObjectDir ¶
func (f *Filesystem) LFSObjectDir() string
func (*Filesystem) LogDir ¶
func (f *Filesystem) LogDir() string
func (*Filesystem) ObjectExists ¶
func (f *Filesystem) ObjectExists(oid string, size int64) bool
func (*Filesystem) ObjectPath ¶
func (f *Filesystem) ObjectPath(oid string) (string, error)
func (*Filesystem) ObjectPathname ¶
func (f *Filesystem) ObjectPathname(oid string) string
func (*Filesystem) ObjectReferencePath ¶
func (f *Filesystem) ObjectReferencePath(oid string) string
func (*Filesystem) TempDir ¶
func (f *Filesystem) TempDir() string
 Click to show internal directories. 
   Click to hide internal directories.