packager

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: Apache-2.0 Imports: 26 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 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 Load

func Load(repotag string, outputDir string) error

Load loads an app from docker

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) error

Pull pulls an app from a registry

func Push

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

Push pushes an app to a registry

func Save

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

Save saves an app to docker and returns the image name.

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