package build
import "github.com/docker/docker/api/server/router/build"
Index ¶
- func BuilderVersion(features map[string]bool) types.BuilderVersion
- func NewRouter(b Backend, d experimentalProvider, features *map[string]bool) router.Router
- type Backend
Functions ¶
func BuilderVersion ¶
func BuilderVersion(features map[string]bool) types.BuilderVersion
BuilderVersion derives the default docker builder version from the config Note: it is valid to have BuilderVersion unset which means it is up to the client to choose which builder to use.
func NewRouter ¶
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.BuildCachePruneOptions) (*types.BuildCachePruneReport, error) Cancel(context.Context, string) 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
- v20.10.0-beta1+incompatible
- Published
- Oct 9, 2020
- Platform
- js/wasm
- Imports
- 26 packages
- Last checked
- 33 minutes ago –
Tools for package owners.