layout

package
v0.0.0-...-f1be9fa Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package layout is used to defining the distro package files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssembleOptions

type AssembleOptions struct {
	RegistryOverrides []images.RegistryOverride
	OCIConcurrency    int
	CachePath         string
	SkipSBOM          bool
	types.RemoteOptions
}

AssembleOptions options

type ClusterPath

type ClusterPath struct {
	ManifestFile string
	BaseDir      string
}

ClusterPath object that contains the manifest file and base directory

func ResolveClusterPath

func ResolveClusterPath(path string) (ClusterPath, error)

ResolveClusterPath returns an object of ClusterPath from a given path

type Distro

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

Distro struct

func New

func New(cfg *types.DistroConfig) (*Distro, error)

New creates a new Distro object

type DistroLayout

type DistroLayout struct {
	Distro distro.ZarfDistro
	// contains filtered or unexported fields
}

DistroLayout struct

func AssembleDistro

func AssembleDistro(ctx context.Context, d distro.ZarfDistro, distroPath string, opts AssembleOptions) (*DistroLayout, error)

AssembleDistro creates the actual tarballs

func LoadFromDir

func LoadFromDir(ctx context.Context, dirPath string, _ DistroLayoutOptions) (*DistroLayout, error)

LoadFromDir loads and validates a package from the given directory path.

func LoadFromTar

func LoadFromTar(ctx context.Context, tarPath string, opts DistroLayoutOptions) (*DistroLayout, error)

LoadFromTar unpacks the given archive (any compress/format) and loads it.

func NewDistroLayout

func NewDistroLayout(dir string, distro v1alpha1.ZarfDistro) *DistroLayout

NewDistroLayout returns an DistroLayout object

func (*DistroLayout) Archive

func (d *DistroLayout) Archive(ctx context.Context, dirPath string, _ int) (string, error)

Archive creates a tarball from the package layout and returns the path to that tarball

func (*DistroLayout) Cleanup

func (d *DistroLayout) Cleanup() error

Cleanup removes any temporary directories created.

func (*DistroLayout) DirPath

func (d *DistroLayout) DirPath() string

DirPath returns dirPath

func (*DistroLayout) FileName

func (d *DistroLayout) FileName() (string, error)

FileName returns the name of the Zarf package should have when exported to the file system

func (*DistroLayout) GetImageDirPath

func (d *DistroLayout) GetImageDirPath() string

GetImageDirPath returns the path to where the image tar balls should be stored in

type DistroLayoutOptions

type DistroLayoutOptions struct{}

DistroLayoutOptions struct

type DistroPath

type DistroPath struct {
	ManifestFile string
	BaseDir      string
}

DistroPath object that contains the manifest file and base directory

func ResolveDistroPath

func ResolveDistroPath(path string) (DistroPath, error)

ResolveDistroPath returns an object of DistroPath from a given path

Jump to

Keyboard shortcuts

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