cache

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 8 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRemoteCache

func NewRemoteCache(url RemoteURL, customHeaders http.Header) cache.ArtifactCache

NewRemoteCache is the factory method for RemoteCache

Types

type RemoteCache

type RemoteCache struct {
	// contains filtered or unexported fields
}

RemoteCache implements remote cache

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, imageInfo types.ArtifactInfo) error

PutArtifact sends artifact to remote client

func (RemoteCache) PutBlob added in v0.9.0

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

PutBlob sends blobInfo to remote client

type RemoteURL

type RemoteURL string

RemoteURL to hold remote host

Jump to

Keyboard shortcuts

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