Documentation ¶
Index ¶
- type Blob
- 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
- type DynamoDBDriver
- func (d *DynamoDBDriver) DeleteBlob(digest godigest.Digest, path string) error
- func (d *DynamoDBDriver) GetBlob(digest godigest.Digest) (string, error)
- func (d *DynamoDBDriver) HasBlob(digest godigest.Digest, path string) bool
- func (d *DynamoDBDriver) Name() string
- func (d *DynamoDBDriver) NewTable(tableName string) error
- func (d *DynamoDBDriver) PutBlob(digest godigest.Digest, path string) error
- type DynamoDBDriverParameters
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 (*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 ¶
func NewDynamoDBCache ¶
type DynamoDBDriver ¶
type DynamoDBDriver struct {
// contains filtered or unexported fields
}
func (*DynamoDBDriver) DeleteBlob ¶
func (d *DynamoDBDriver) DeleteBlob(digest godigest.Digest, path string) error
func (*DynamoDBDriver) GetBlob ¶
func (d *DynamoDBDriver) GetBlob(digest godigest.Digest) (string, error)
Returns the first path of the blob if it exists.
func (*DynamoDBDriver) HasBlob ¶
func (d *DynamoDBDriver) HasBlob(digest godigest.Digest, path string) bool
func (*DynamoDBDriver) Name ¶
func (d *DynamoDBDriver) Name() string
func (*DynamoDBDriver) NewTable ¶
func (d *DynamoDBDriver) NewTable(tableName string) error
Use ONLY for tests.
type DynamoDBDriverParameters ¶
type DynamoDBDriverParameters struct {
Endpoint, Region, TableName string
}
Click to show internal directories.
Click to hide internal directories.