Documentation ¶
Index ¶
- type Backend
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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) 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 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
Click to show internal directories.
Click to hide internal directories.