localstorage

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalStorage

type LocalStorage struct {
	RootDir string
	TempDir string
}

LocalStorage manages the locally stored LFS objects for a repository.

func New

func New(storageDir, tempDir string) (*LocalStorage, error)

func (*LocalStorage) AllObjects

func (s *LocalStorage) AllObjects() []Object

AllObjects returns a slice of the the objects stored in this LocalStorage object. This does not necessarily mean referenced by commits, just stored. Note: reports final SHA only, extensions are ignored.

func (*LocalStorage) BuildObjectPath

func (s *LocalStorage) BuildObjectPath(oid string) (string, error)

func (*LocalStorage) ClearTempObjects

func (s *LocalStorage) ClearTempObjects() error

func (*LocalStorage) ObjectPath

func (s *LocalStorage) ObjectPath(oid string) string

func (*LocalStorage) ScanObjectsChan

func (s *LocalStorage) ScanObjectsChan() <-chan Object

ScanObjectsChan returns a channel of all the objects stored in this LocalStorage object. This does not necessarily mean referenced by commits, just stored. You should not alter the store until this channel is closed. Note: reports final SHA only, extensions are ignored.

type Object

type Object struct {
	Oid  string
	Size int64
}

Object represents a locally stored LFS object.

Jump to

Keyboard shortcuts

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