puller

package
v0.0.0-...-30fe120 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package puller implements the logic for pull operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgressTracker

type ProgressTracker func(target oras.Target) oras.Target

ProgressTracker type of the tracker that the puller accepts. It implements the tracker logic.

type Puller

type Puller struct {
	Client *auth.Client
	// contains filtered or unexported fields
}

Puller implements pull operations.

func NewPuller

func NewPuller(client *auth.Client, tracker ProgressTracker) *Puller

NewPuller create a new puller that can be used for pull operations. The client must be ready to be used by the puller.

func (*Puller) Pull

func (p *Puller) Pull(ctx context.Context, ref, destDir, os, arch string) (*oci.RegistryResult, error)

Pull an artifact from a remote registry. Ref format follows: REGISTRY/REPO[:TAG|@DIGEST]. Ex. localhost:5000/hello:latest.

Jump to

Keyboard shortcuts

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