Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FSIndex ¶
type FSIndex struct {
// contains filtered or unexported fields
}
func NewFSIndex ¶
func NewFSIndex(
name string,
dirPath string,
useSubdir bool,
expectsBlobstoreIDs bool,
reporter Reporter,
blobs IndexBlobs,
fs boshsys.FileSystem,
) FSIndex
type FSIndexBlobs ¶
type FSIndexBlobs struct {
// contains filtered or unexported fields
}
func NewFSIndexBlobs ¶
func NewFSIndexBlobs(
dirPath string,
reporter Reporter,
blobstore boshblob.Blobstore,
sha1calc bicrypto.SHA1Calculator,
fs boshsys.FileSystem,
) FSIndexBlobs
type Index ¶
type Index interface {
Find(name, version string) (string, string, error)
Add(name, version, path, sha1 string) (string, string, error)
}
type IndexBlobs ¶
type IndexBlobs interface {
Get(name string, blobID string, sha1 string) (string, error)
Add(path, sha1 string) (string, string, error)
}
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider(
reporter Reporter,
blobstore boshblob.Blobstore,
sha1calc bicrypto.SHA1Calculator,
fs boshsys.FileSystem,
) Provider
func (Provider) DevAndFinalIndicies ¶
func (p Provider) DevAndFinalIndicies(dirPath string) (boshrel.ArchiveIndicies, boshrel.ArchiveIndicies)
type Reporter ¶
type Reporter interface {
IndexEntryStartedAdding(type_, desc string)
IndexEntryFinishedAdding(type_, desc string, err error)
IndexEntryDownloadStarted(type_, desc string)
IndexEntryDownloadFinished(type_, desc string, err error)
IndexEntryUploadStarted(type_, desc string)
IndexEntryUploadFinished(type_, desc string, err error)
}
Click to show internal directories.
Click to hide internal directories.