Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blobstore ¶
type Blobstore interface {
Get(blobID string) (LocalBlob, error)
Add(sourcePath string) (blobID string, err error)
}
func NewBlobstore ¶
func NewBlobstore(davClient boshdavcli.Client, uuidGenerator boshuuid.Generator, fs boshsys.FileSystem, logger boshlog.Logger) Blobstore
type Factory ¶
func NewBlobstoreFactory ¶
type LocalBlob ¶
type LocalBlob interface {
// Path returns the path to the local copy of the blob
Path() string
// Delete removes the local copy of the blob (does not effect the blobstore)
Delete() error
// DeleteSilently removes the local copy of the blob (does not effect the blobstore), logging instead of returning an error.
DeleteSilently()
}
LocalBlob represents a local copy of a blob retrieved from the blobstore
func NewLocalBlob ¶
Click to show internal directories.
Click to hide internal directories.