Documentation ¶
Index ¶
Constants ¶
View Source
const ( BlobstoreTypeDummy = "dummy" BlobstoreTypeLocal = "local" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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.