Help us shape the future of Go! Take the 2026 Go Developer Survey

appbundle

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package appbundle builds and parses per-app config ZIP bundles used for export/import.

Index

Constants

View Source
const SchemaVersion = 1

SchemaVersion is the current bundle schema version.

Variables

This section is empty.

Functions

func Build

func Build(appDir, slug, displayName, version string) ([]byte, error)

Build reads files from appDir and produces a ZIP byte slice.

Types

type AppMeta

type AppMeta struct {
	Slug        string `json:"slug"`
	DisplayName string `json:"display_name,omitempty"`
}

AppMeta describes the source app.

type Bundle

type Bundle struct {
	Manifest   Manifest
	Compose    []byte
	Sidecar    []byte
	EnvExample []byte
}

Bundle is the parsed contents of a bundle ZIP.

func Parse

func Parse(zipBytes []byte) (*Bundle, error)

Parse validates a ZIP and returns its contents.

type Manifest

type Manifest struct {
	SchemaVersion             int       `json:"schema_version"`
	ExportedAt                time.Time `json:"exported_at"`
	SourceSimpleDeployVersion string    `json:"source_simpledeploy_version"`
	App                       AppMeta   `json:"app"`
	Redacted                  []string  `json:"redacted"`
}

Manifest is the bundle metadata.

Jump to

Keyboard shortcuts

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