mkr

package
v0.0.0-...-c90b9a4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImage

func BuildImage(buildcontext io.Reader, image string) (err error)

BuildImage builds a Docker image from the passed build context.

func MakeRelease

func MakeRelease(sourcecode io.Reader, config MakeReleaseConfig) (release io.ReadCloser, err error)

MakeRelease builds a release from a sourcecode tar with a makefile specifying the mkrelease* targets. The release is returned as a Reader of a tar file. The caller shall close the returned Reader.

Types

type CopyCloser

type CopyCloser struct {
	io.ReadCloser
	// contains filtered or unexported fields
}

CopyCloser is a Reader returned from CopyFromContainer with some cleanup procedures to close the connection etc. upon closing the ReadCloser.

func (CopyCloser) Close

func (r CopyCloser) Close() (err error)

Close closes the ReadCloser and then runs further cleanup steps.

type MakeReleaseConfig

type MakeReleaseConfig struct {
	Image   string
	Env     []string
	Targets []string
}

MakeReleaseConfig is a struct holding information for the makerelease container. Give the name of the image to be used and possibly override the release targets.

Jump to

Keyboard shortcuts

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