Documentation ¶
Overview ¶
Package bundle provides primitives for bundling apps for portability.
Index ¶
Constants ¶
View Source
const ( // AppSourceName is the required name to be used for the source file. This // is needed so we know what we're searching for in the archive. Note, we // rename an app filename from a manifest when we create the bundle to // ensure it can be unpacked. We could get around this if we loaded all // files in the bundle, though we risk abuse with really large bundles. AppSourceName = "app.star" // AppBundleName is the standard name for a created bundle. AppBundleName = "bundle.tar.gz" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppBundle ¶
AppBundle represents the unpacked bundle in our system.
func InitFromPath ¶
InitFromPath translates a directory containing an app manifest and source into an AppBundle.
func LoadBundle ¶
LoadBundle loads a compressed archive into an AppBundle.
func (*AppBundle) WriteBundle ¶
WriteBundle writes a compressed archive to the provided writer.
func (*AppBundle) WriteBundleToPath ¶
WriteBundleToPath is a helper to be able to write the bundle to a provided directory.
Click to show internal directories.
Click to hide internal directories.