packager

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2018 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(name string, ops ...func(*types.App) error) (*types.App, error)

Extract extracts the app content if argument is an archive, or does nothing if a dir. It returns source file, effective app name, and cleanup function If appname is empty, it looks into cwd, and all subdirs for a single matching .dockerapp If nothing is found, it looks for an image and loads it

func ExtractImagePayloadToDiskFiles added in v0.6.0

func ExtractImagePayloadToDiskFiles(appDir string, payload map[string]string) error

ExtractImagePayloadToDiskFiles extracts all the files out of the image payload and onto disk creating all necessary folders in between.

func Fork added in v0.4.0

func Fork(originName, forkName, outputDir string, maintainers []string) error

Fork pulls an application and creates a local fork for the user to modify

func Init

func Init(name string, composeFile string, description string, maintainers []string, singleFile bool) error

Init is the entrypoint initialization function. It generates a new application package based on the provided parameters.

func Merge

func Merge(app *types.App, target io.Writer) error

Merge converts an app-package to the single-file merged version

func Pack

func Pack(appname string, target io.Writer) error

Pack packs the app as a single file

func Pull

func Pull(repotag string, outputDir string) (string, error)

Pull loads an app from a registry and returns the extracted dir name

func Push

func Push(app *types.App, namespace, tag, repo string) (string, error)

Push pushes an app to a registry. Returns the image digest.

func Split

func Split(app *types.App, outputDir string) error

Split converts an app package to the split version

func Unpack

func Unpack(appname, targetDir string) error

Unpack extracts a packed app

Types

This section is empty.

Jump to

Keyboard shortcuts

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