pusher

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package pusher contains functionality to push Zarf pkgs to remote bundles

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PkgRootManifest *oci.Manifest
	RemoteSrc       zoci.Remote
	RemoteDst       zoci.Remote
	PkgIter         int
	NumPkgs         int
	Bundle          *types.UDSBundle
}

Config contains the configuration for the remote pusher

type RemotePusher

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

RemotePusher contains methods for pulling remote Zarf packages into a bundle

func NewPkgPusher

func NewPkgPusher(pkg types.Package, cfg Config) RemotePusher

NewPkgPusher creates a pusher object to push Zarf pkgs to a remote bundle

func (*RemotePusher) LayersToRemoteBundle

func (p *RemotePusher) LayersToRemoteBundle(spinner *message.Spinner, currentPackageIter int, totalPackages int) ([]ocispec.Descriptor, error)

LayersToRemoteBundle pushes the Zarf pkg's layers to a remote bundle

func (*RemotePusher) Push

func (p *RemotePusher) Push() (ocispec.Descriptor, error)

Push pushes a Zarf pkg to a remote bundle

func (*RemotePusher) PushManifest

func (p *RemotePusher) PushManifest() (ocispec.Descriptor, error)

PushManifest pushes the Zarf pkg's manifest to a remote bundle

Jump to

Keyboard shortcuts

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