Documentation ¶
Index ¶
- func NewRemoteCache(url string, customHeaders http.Header, insecure bool) cache.ArtifactCache
- func NopCache(ac cache.ArtifactCache) cache.Cache
- type RemoteCache
- func (c RemoteCache) DeleteBlobs(blobIDs []string) error
- func (c RemoteCache) MissingBlobs(imageID string, layerIDs []string) (bool, []string, error)
- func (c RemoteCache) PutArtifact(imageID string, artifactInfo types.ArtifactInfo) error
- func (c RemoteCache) PutBlob(diffID string, blobInfo types.BlobInfo) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRemoteCache ¶
NewRemoteCache is the factory method for RemoteCache
Types ¶
type RemoteCache ¶
type RemoteCache struct {
// contains filtered or unexported fields
}
RemoteCache implements remote cache
func (RemoteCache) DeleteBlobs ¶ added in v0.25.0
func (c RemoteCache) DeleteBlobs(blobIDs []string) error
DeleteBlobs removes blobs by IDs from RemoteCache
func (RemoteCache) MissingBlobs ¶ added in v0.9.0
MissingBlobs fetches missing blobs from RemoteCache
func (RemoteCache) PutArtifact ¶ added in v0.9.0
func (c RemoteCache) PutArtifact(imageID string, artifactInfo types.ArtifactInfo) error
PutArtifact sends artifact to remote client
Click to show internal directories.
Click to hide internal directories.