build

package
v0.0.0-...-a4b3a0d Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	DockerImage     types.Image
	DockerImageInfo dtypes.ImageInspect

	Ctx    context.Context
	Client *client.Client

	GearRootPath string // $HOME/.gear/
	TmpDir       string // $HOME/.gear/tmp/

	RegularFiles   map[string]types.ExtendFileInfo
	IrregularFiles map[string]os.FileInfo

	Dockerfile types.Dockerfile
}

func InitBuilder

func InitBuilder(image types.Image) *Builder

func (*Builder) Build

func (b *Builder) Build()

func (*Builder) BuildGearImage

func (b *Builder) BuildGearImage()

func (*Builder) Destroy

func (b *Builder) Destroy()

func (*Builder) HasParsedThisImage

func (b *Builder) HasParsedThisImage() bool

This func detect whether this image has been built

func (*Builder) InitDockerfile

func (b *Builder) InitDockerfile()

func (*Builder) InitGearJSON

func (b *Builder) InitGearJSON()

func (*Builder) TarIrregularFiles

func (b *Builder) TarIrregularFiles()

func (*Builder) WalkThroughLayers

func (b *Builder) WalkThroughLayers(LayerDirs []string)

This Func is used to walk through the lowerdirs, calculate regular files' hash and copy irregular file to parsedImages path

Jump to

Keyboard shortcuts

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