Documentation ¶
Index ¶
- type BoltDBDriver
- func (d *BoltDBDriver) DeleteBlob(digest godigest.Digest, path string) error
- func (d *BoltDBDriver) GetBlob(digest godigest.Digest) (string, error)
- func (d *BoltDBDriver) HasBlob(digest godigest.Digest, blob string) bool
- func (d *BoltDBDriver) Name() string
- func (d *BoltDBDriver) PutBlob(digest godigest.Digest, path string) error
- type BoltDBDriverParameters
- type Cache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltDBDriver ¶
type BoltDBDriver struct {
// contains filtered or unexported fields
}
func NewCache ¶
func NewCache(parameters BoltDBDriverParameters, log zlog.Logger) *BoltDBDriver
func (*BoltDBDriver) DeleteBlob ¶
func (d *BoltDBDriver) DeleteBlob(digest godigest.Digest, path string) error
func (*BoltDBDriver) GetBlob ¶
func (d *BoltDBDriver) GetBlob(digest godigest.Digest) (string, error)
func (*BoltDBDriver) HasBlob ¶
func (d *BoltDBDriver) HasBlob(digest godigest.Digest, blob string) bool
func (*BoltDBDriver) Name ¶
func (d *BoltDBDriver) Name() string
type BoltDBDriverParameters ¶
type Cache ¶
type Cache interface { // Returns the human-readable "name" of the driver. Name() string // Retrieves the blob matching provided digest. GetBlob(digest godigest.Digest) (string, error) // Uploads blob to cachedb. PutBlob(digest godigest.Digest, path string) error // Check if blob exists in cachedb. HasBlob(digest godigest.Digest, path string) bool // Delete a blob from the cachedb. DeleteBlob(digest godigest.Digest, path string) error }
func NewBoltDBCache ¶
Click to show internal directories.
Click to hide internal directories.