{"modulePath":"github.com/github/git-media","version":"v2.3.4+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package localstorage\n\nPackage localstorage handles LFS content stored locally NOTE: Subject to change, do not rely on this package from outside git-lfs source\n\n## Variables\n\n```go\nvar (\n\tTempDir = filepath.Join(os.TempDir(), \"git-lfs\")\n)\n```\n\n## Functions\n\n```go\nfunc InitStorage() error\n```\n\n```go\nfunc InitStorageOrFail()\n```\n\n```go\nfunc ResetTempDir() error\n```\n\n```go\nfunc ResolveDirs()\n```\n\n```go\nfunc TempFile(prefix string) (*os.File, error)\n```\n\n## Types\n\n```go\ntype LocalStorage struct {\n\tRootDir string\n\tTempDir string\n}\n```\nLocalStorage manages the locally stored LFS objects for a repository.\n\n```go\nfunc NewStorage(storageDir, tempDir string) (*LocalStorage, error)\n```\n\n```go\nfunc Objects() *LocalStorage\n```\n\n```go\nfunc (s *LocalStorage) AllObjects() []Object\n```\nAllObjects 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.\n\n```go\nfunc (s *LocalStorage) BuildObjectPath(oid string) (string, error)\n```\n\n```go\nfunc (s *LocalStorage) ClearTempObjects() error\n```\n\n```go\nfunc (s *LocalStorage) ObjectPath(oid string) string\n```\n\n```go\nfunc (s *LocalStorage) ScanObjectsChan() \u003c-chan Object\n```\nScanObjectsChan 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.\n\n```go\ntype Object struct {\n\tOid  string\n\tSize int64\n}\n```\nObject represents a locally stored LFS object.\n\n","path":"github.com/github/git-media/localstorage","name":"localstorage","synopsis":"Package localstorage handles LFS content stored locally NOTE: Subject to change, do not rely on this package from outside git-lfs source","isRedistributable":true}
