Documentation ¶
Index ¶
- Constants
- type BlobManager
- func (manager BlobManager) BlobExists(blobID string) bool
- func (manager BlobManager) Delete(blobID string) error
- func (manager BlobManager) Fetch(blobID string) (boshsys.File, error, int)
- func (manager BlobManager) GetPath(blobID string, digest boshcrypto.Digest) (string, error)
- func (manager BlobManager) Write(blobID string, reader io.Reader) error
- type BlobManagerInterface
- type Blobstore
- type DigestBlobstore
- type Provider
Constants ¶
View Source
const ( BlobstoreTypeDummy = "dummy" BlobstoreTypeLocal = "local" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobManager ¶
type BlobManager struct {
// contains filtered or unexported fields
}
func NewBlobManager ¶
func NewBlobManager(fs boshsys.FileSystem, blobstorePath string) (manager BlobManager)
func (BlobManager) BlobExists ¶
func (manager BlobManager) BlobExists(blobID string) bool
func (BlobManager) Delete ¶
func (manager BlobManager) Delete(blobID string) error
func (BlobManager) GetPath ¶
func (manager BlobManager) GetPath(blobID string, digest boshcrypto.Digest) (string, error)
type BlobManagerInterface ¶
type Blobstore ¶
type Blobstore interface { Get(blobID string) (fileName string, err error) CleanUp(fileName string) (err error) Create(fileName string) (blobID string, err error) Validate() (err error) Delete(blobId string) (err error) }
func NewExternalBlobstore ¶
func NewLocalBlobstore ¶
type DigestBlobstore ¶
type DigestBlobstore interface { // Assuming that local file system is available, // file handle is returned to downloaded blob. // Caller must not assume anything about layout of such scratch space. // Cleanup call is needed to properly cleanup downloaded blob. Get(blobID string, digest boshcrypto.Digest) (fileName string, err error) CleanUp(fileName string) (err error) Create(fileName string) (blobID string, digest boshcrypto.MultipleDigest, err error) Validate() (err error) Delete(blobId string) (err error) }
func NewDigestVerifiableBlobstore ¶
func NewDigestVerifiableBlobstore(blobstore Blobstore, fs boshsys.FileSystem, createAlgorithms []boshcrypto.Algorithm) DigestBlobstore
func NewRetryableBlobstore ¶
func NewRetryableBlobstore(blobstore DigestBlobstore, maxTries int, logger boshlog.Logger) DigestBlobstore
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.