cache

package
v0.44.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 9 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRemoteCache

func NewRemoteCache(url string, customHeaders http.Header, insecure bool) cache.ArtifactCache

NewRemoteCache is the factory method for RemoteCache

func NopCache added in v0.25.0

func NopCache(ac cache.ArtifactCache) cache.Cache

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

func (c RemoteCache) MissingBlobs(imageID string, layerIDs []string) (bool, []string, error)

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

func (RemoteCache) PutBlob added in v0.9.0

func (c RemoteCache) PutBlob(diffID string, blobInfo types.BlobInfo) error

PutBlob sends blobInfo to remote client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL