docker

package
v0.1.2-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImage

func BuildImage(dockerFileReader io.Reader, imagename string) error

func CreateDockerfile

func CreateDockerfile(
	buildpackURI,
	baseImage,
	port,
	codepath string,
	envmap map[string]string,
	downloader func(string) (string, error),
) (io.Reader, func(), error)

CreateDockerfile returns a reader which contains a dockerfiles contents as well as a function which can be used to cleanup any tmp dir created to store buildpacks when they are dloaded & unzipped it will also return an error if anything goes wrong

func PushImage

func PushImage(imageName string) error

PushImage - takes the image name as an argument in the format of / <org>/<name>:<tag>

func URIDownloader

func URIDownloader(downloadURI string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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