{"modulePath":"github.com/GoCodeAlone/workflow","version":"v0.87.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package bundle\n\n## Constants\n\n```go\nconst (\n\t// MaxBundleSize is the maximum total size of an extracted bundle (100MB).\n\tMaxBundleSize = 100 * 1024 * 1024\n\t// MaxFileSize is the maximum size of a single file in a bundle (10MB).\n\tMaxFileSize = 10 * 1024 * 1024\n)\n```\n\n```go\nconst BundleFormatVersion = \"1.0\"\n```\nBundleFormatVersion is the current bundle format version.\n\n## Functions\n\n```go\nfunc Export(yamlContent string, workspaceDir string, w io.Writer) error\n```\nExport creates a tar.gz bundle from a workflow's YAML content and workspace directory.\n\n```go\nfunc ScanReferencedPaths(cfg *config.WorkflowConfig) []string\n```\nScanReferencedPaths examines a workflow config and returns relative paths that are explicitly referenced in module configurations.\n\n## Types\n\n```go\ntype Manifest struct {\n\tVersion     string                 `json:\"version\"`\n\tName        string                 `json:\"name\"`\n\tDescription string                 `json:\"description,omitempty\"`\n\tFiles       []string               `json:\"files\"`\n\tRequires    *config.RequiresConfig `json:\"requires,omitempty\"`\n}\n```\nManifest describes the contents of a workflow bundle.\n\n```go\nfunc Import(r io.Reader, destDir string) (*Manifest, string, error)\n```\nImport extracts a tar.gz bundle to the destination directory. Returns the manifest, path to the extracted workflow.yaml, and any error.\n\n","path":"github.com/GoCodeAlone/workflow/bundle","name":"bundle","synopsis":"","isRedistributable":true}
