local

package
v1.7.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransferService

func NewTransferService(lm leases.Manager, cs content.Store, is images.Store) transfer.Transferrer

Types

type ActiveJobs

type ActiveJobs interface {
	Status(string) (content.Status, bool)
}

type ProgressTracker

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

func NewProgressTracker

func NewProgressTracker(root, transferState string) *ProgressTracker

NewProgressTracker tracks content download progress

func (*ProgressTracker) Add

func (j *ProgressTracker) Add(desc ocispec.Descriptor)

Add adds a descriptor to be tracked

func (*ProgressTracker) AddChildren

func (j *ProgressTracker) AddChildren(desc ocispec.Descriptor, children []ocispec.Descriptor)

Adds hierarchy information

func (*ProgressTracker) HandleProgress

func (j *ProgressTracker) HandleProgress(ctx context.Context, pf transfer.ProgressFunc, pt StatusTracker)

func (*ProgressTracker) MarkExists

func (j *ProgressTracker) MarkExists(desc ocispec.Descriptor)

func (*ProgressTracker) Wait

func (j *ProgressTracker) Wait()

type StatusTracker

type StatusTracker interface {
	Active(context.Context, ...string) (ActiveJobs, error)
	Check(context.Context, digest.Digest) (bool, error)
}

func NewContentStatusTracker

func NewContentStatusTracker(cs content.Store) StatusTracker

Jump to

Keyboard shortcuts

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