package build
import "github.com/docker/docker/api/server/backend/build"
Index ¶
- type Backend
- func NewBackend(components ImageComponent, builder Builder, buildkit *buildkit.Builder, es *daemonevents.Events) (*Backend, error)
- func (b *Backend) Build(ctx context.Context, config backend.BuildConfig) (string, error)
- func (b *Backend) Cancel(ctx context.Context, id string) error
- func (b *Backend) PruneCache(ctx context.Context, opts types.BuildCachePruneOptions) (*types.BuildCachePruneReport, error)
- func (b *Backend) RegisterGRPC(s *grpc.Server)
- type Builder
- type ImageComponent
- type Tagger
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend provides build functionality to the API router
func NewBackend ¶
func NewBackend(components ImageComponent, builder Builder, buildkit *buildkit.Builder, es *daemonevents.Events) (*Backend, error)
NewBackend creates a new build backend from components
func (*Backend) Build ¶
Build builds an image from a Source
func (*Backend) Cancel ¶
Cancel cancels the build by ID
func (*Backend) PruneCache ¶
func (b *Backend) PruneCache(ctx context.Context, opts types.BuildCachePruneOptions) (*types.BuildCachePruneReport, error)
PruneCache removes all cached build sources
func (*Backend) RegisterGRPC ¶
RegisterGRPC registers buildkit controller to the grpc server.
type Builder ¶
Builder defines interface for running a build
type ImageComponent ¶
type ImageComponent interface { SquashImage(from string, to string) (string, error) TagImageWithReference(image.ID, reference.Named) error }
ImageComponent provides an interface for working with images
type Tagger ¶
type Tagger struct {
// contains filtered or unexported fields
}
Tagger is responsible for tagging an image created by a builder
func NewTagger ¶
NewTagger returns a new Tagger for tagging the images of a build. If any of the names are invalid tags an error is returned.
func (*Tagger) TagImages ¶
TagImages creates image tags for the imageID
Source Files ¶
- Version
- v20.10.14+incompatible
- Published
- Mar 24, 2022
- Platform
- js/wasm
- Imports
- 15 packages
- Last checked
- 3 minutes ago –
Tools for package owners.