puller

package
v0.3.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 12 Imported by: 2

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 Puller

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

Puller implements pull operations.

func NewPuller

func NewPuller(client remote.Client, plainHTTP bool, tracker output.Tracker) *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) Descriptor

func (p *Puller) Descriptor(ctx context.Context, ref string) (*v1.Descriptor, error)

Descriptor retrieves the descriptor of an artifact from a remote repository.

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.

func (*Puller) PullConfigLayer

func (p *Puller) PullConfigLayer(ctx context.Context, ref string) (*oci.ArtifactConfig, error)

PullConfigLayer fetches only the config layer from a given ref.

Jump to

Keyboard shortcuts

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