bundle

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// MaxBundleSize is the maximum total size of an extracted bundle (100MB).
	MaxBundleSize = 100 * 1024 * 1024
	// MaxFileSize is the maximum size of a single file in a bundle (10MB).
	MaxFileSize = 10 * 1024 * 1024
)
View Source
const BundleFormatVersion = "1.0"

BundleFormatVersion is the current bundle format version.

Variables

This section is empty.

Functions

func Export

func Export(yamlContent string, workspaceDir string, w io.Writer) error

Export creates a tar.gz bundle from a workflow's YAML content and workspace directory.

func ScanReferencedPaths

func ScanReferencedPaths(cfg *config.WorkflowConfig) []string

ScanReferencedPaths examines a workflow config and returns relative paths that are explicitly referenced in module configurations.

Types

type Manifest

type Manifest struct {
	Version     string                 `json:"version"`
	Name        string                 `json:"name"`
	Description string                 `json:"description,omitempty"`
	Files       []string               `json:"files"`
	Requires    *config.RequiresConfig `json:"requires,omitempty"`
}

Manifest describes the contents of a workflow bundle.

func Import

func Import(r io.Reader, destDir string) (*Manifest, string, error)

Import extracts a tar.gz bundle to the destination directory. Returns the manifest, path to the extracted workflow.yaml, and any error.

Jump to

Keyboard shortcuts

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