Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReadBucket ¶
func NewReadBucket( m *manifest.Manifest, blobSet *manifest.BlobSet, options ...ReadBucketOption, ) (storage.ReadBucket, error)
NewReadBucket takes a Manifest and BlobSet and builds a ReadBucket that contains the files in the Manifest.
Types ¶
type ReadBucketOption ¶
type ReadBucketOption func(*readBucketOptions)
ReadBucketOption is an option for a passed when creating a new manifest bucket.
func ReadBucketWithAllManifestBlobs ¶
func ReadBucketWithAllManifestBlobs() ReadBucketOption
ReadBucketWithAllManifestBlobs validates that all manifest digests have a corresponding blob in the blob set. If this option is not passed, then buckets with partial/incomplete blobs are allowed.
func ReadBucketWithNoExtraBlobs ¶
func ReadBucketWithNoExtraBlobs() ReadBucketOption
ReadBucketWithNoExtraBlobs validates that the passed blob set has no additional blobs beyond the ones in the manifest.
Click to show internal directories.
Click to hide internal directories.