pusher

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 10 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 either a local or remote bundle

Jump to

Keyboard shortcuts

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