packager

package
v0.2.1-0...-40cb59e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(appname string) (string, func(), error)

Extract extracts the app content if argument is an archive, or does nothing if a dir. It returns 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 ExtractVariables

func ExtractVariables(composeRaw string) ([]string, error)

ExtractVariables returns the list of variables used by given compose raw data

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(appname string, 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(appname, namespace, tag string) error

Push pushes an app to a registry

func Save

func Save(appname, namespace, tag string) (string, error)

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

func Split

func Split(appname string, 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