Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Item ¶
type Item struct {
Source ocispec.Descriptor
Target ocispec.Descriptor
}
type RemoteCache ¶
type RemoteCache struct {
// ref is the reference of cache manifest in remote registry.
Ref string
// contains filtered or unexported fields
}
RemoteCache manages the map of source and target layer after conversion, it's local records of the remote cache manifest.
func Get ¶
func Get(ctx context.Context, dgst digest.Digest) (*RemoteCache, *ocispec.Descriptor)
func Update ¶
func Update(ctx context.Context, dgst digest.Digest, labels map[string]string) (*RemoteCache, *ocispec.Descriptor)
func (*RemoteCache) Fetch ¶
func (rc *RemoteCache) Fetch(ctx context.Context, platformMC platforms.MatchComparer) (*ocispec.Descriptor, error)
Fetch fetchs cache manifest from remote registry.
func (*RemoteCache) Push ¶
func (rc *RemoteCache) Push(ctx context.Context, orgDesc, newDesc *ocispec.Descriptor, platformMC platforms.MatchComparer) error
Push merges local and remote cache records, then push cache manifest to remote registry.
Click to show internal directories.
Click to hide internal directories.