package history
import "github.com/moby/buildkit/solver/llbsolver/history"
Index ¶
- type Queue
- func NewQueue(opt QueueOpt) (*Queue, error)
- func (h *Queue) AcquireFinalizer(ref string) (<-chan struct{}, func())
- func (h *Queue) Delete(ctx context.Context, ref string) error
- func (h *Queue) Finalize(ctx context.Context, ref string) error
- func (h *Queue) ImportError(ctx context.Context, err error) (_ *spb.Status, _ *controlapi.Descriptor, _ func(), retErr error)
- func (h *Queue) ImportStatus(ctx context.Context, ch chan *client.SolveStatus) (_ *StatusImportResult, _ func(), err error)
- func (h *Queue) Listen(ctx context.Context, req *controlapi.BuildHistoryRequest, f func(*controlapi.BuildHistoryEvent) error) error
- func (h *Queue) OpenBlobWriter(ctx context.Context, mt string) (_ *Writer, err error)
- func (h *Queue) Status(ctx context.Context, ref string, st chan<- *client.SolveStatus) error
- func (h *Queue) Update(ctx context.Context, e *controlapi.BuildHistoryEvent) error
- func (h *Queue) UpdateRef(ctx context.Context, ref string, upt func(r *controlapi.BuildHistoryRecord) error) error
- type QueueOpt
- type StatusImportResult
- type Writer
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
func NewQueue ¶
func (*Queue) AcquireFinalizer ¶
func (*Queue) Delete ¶
func (*Queue) Finalize ¶
func (*Queue) ImportError ¶
func (h *Queue) ImportError(ctx context.Context, err error) (_ *spb.Status, _ *controlapi.Descriptor, _ func(), retErr error)
func (*Queue) ImportStatus ¶
func (h *Queue) ImportStatus(ctx context.Context, ch chan *client.SolveStatus) (_ *StatusImportResult, _ func(), err error)
func (*Queue) Listen ¶
func (h *Queue) Listen(ctx context.Context, req *controlapi.BuildHistoryRequest, f func(*controlapi.BuildHistoryEvent) error) error
func (*Queue) OpenBlobWriter ¶
func (*Queue) Status ¶
func (*Queue) Update ¶
func (h *Queue) Update(ctx context.Context, e *controlapi.BuildHistoryEvent) error
func (*Queue) UpdateRef ¶
func (h *Queue) UpdateRef(ctx context.Context, ref string, upt func(r *controlapi.BuildHistoryRecord) error) error
type QueueOpt ¶
type QueueOpt struct {
DB db.Transactor
LeaseManager *leaseutil.Manager
ContentStore *containerdsnapshot.Store
CleanConfig *config.HistoryConfig
GarbageCollect func(context.Context) error
GracefulStop <-chan struct{}
}
type StatusImportResult ¶
type StatusImportResult struct {
Descriptor ocispecs.Descriptor
NumCachedSteps int
NumCompletedSteps int
NumTotalSteps int
NumWarnings int
}
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) Commit ¶
func (*Writer) Discard ¶
func (w *Writer) Discard()
func (*Writer) Write ¶
Source Files ¶
buildhistory.go filter.go migrate.go pubsub.go
- Version
- v0.29.0-rc1
- Published
- Mar 25, 2026
- Platform
- darwin/amd64
- Imports
- 35 packages
- Last checked
- 47 seconds ago –
Tools for package owners.