package build

import "github.com/docker/cli/components/engine/api/server/router/build"

Index

Functions

func NewRouter

func NewRouter(b Backend, d experimentalProvider) router.Router

NewRouter initializes a new build router

Types

type Backend

type Backend interface {
	// Build a Docker image returning the id of the image
	// TODO: make this return a reference instead of string
	Build(context.Context, backend.BuildConfig) (string, error)

	// Prune build cache
	PruneCache(context.Context) (*types.BuildCachePruneReport, error)
}

Backend abstracts an image builder whose only purpose is to build an image referenced by an imageID.

Source Files

backend.go build.go build_routes.go

Version
v17.12.0-ce-rc1+incompatible
Published
Dec 7, 2017
Platform
linux/amd64
Imports
25 packages
Last checked
2 minutes ago

Tools for package owners.