pusher

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PkgRootManifest *oci.ZarfOCIManifest
	RemoteSrc       *oci.OrasRemote
	RemoteDst       *oci.OrasRemote
	PkgIter         int
	NumPkgs         int
	Bundle          *types.UDSBundle
}

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)

todo: what does this fn return?

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