modify

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: AGPL-3.0 Imports: 33 Imported by: 0

Documentation

Overview

Package modify converts Zarf packages into recreatable local source and back.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disassemble

func Disassemble(ctx context.Context, opts Options) (string, error)

Disassemble converts one Zarf package into recreatable local source.

func Reassemble

func Reassemble(ctx context.Context, opts ReassembleOptions) (string, error)

Reassemble recreates a Zarf package from source produced by Disassemble.

Types

type Options

type Options struct {
	PackageOptions
	Source               string
	Architecture         string
	OutputDir            string
	VerificationStrategy layout.VerificationStrategy
	Warn                 func(string, ...any)
}

Options holds inputs for disassembling a Zarf package into local source.

type PackageOptions

type PackageOptions struct {
	PlainHTTP     bool
	SkipTLSVerify bool
	TmpDir        string
	CachePath     string
	Concurrency   int
}

PackageOptions holds Zarf package settings shared by disassembly and reassembly.

type ReassembleOptions

type ReassembleOptions struct {
	PackageOptions
	SourceDir            string
	Output               string
	MaxPackageSizeMB     int
	SigningKeyPath       string
	SigningKeyPassword   string
	WithBuildMachineInfo bool
}

ReassembleOptions holds inputs for recreating a package from disassembled source.

Jump to

Keyboard shortcuts

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