package cachedigest
import "github.com/moby/buildkit/util/cachedigest"
Index ¶
- Variables
- func FromBytes(dt []byte, t Type) (digest.Digest, error)
- func SetDefaultDB(db *DB)
- type DB
- func GetDefaultDB() *DB
- func NewDB(path string) (*DB, error)
- func (d *DB) All(ctx context.Context, cb func(key string, typ Type, frames []Frame) error) error
- func (d *DB) Close() error
- func (d *DB) FromBytes(dt []byte, typ Type) (digest.Digest, error)
- func (d *DB) Get(ctx context.Context, dgst string) (Type, []Frame, error)
- func (d *DB) NewHash(typ Type) *Hash
- func (d *DB) Wait()
- type Frame
- type FrameID
- type Hash
- func NewHash(typ Type) *Hash
- func (h *Hash) BlockSize() int
- func (h *Hash) Reset()
- func (h *Hash) Size() int
- func (h *Hash) Sum() digest.Digest
- func (h *Hash) Write(p []byte) (n int, err error)
- func (h *Hash) WriteNoDebug(p []byte) (n int, err error)
- type Record
- type Type
Variables ¶
Functions ¶
func FromBytes ¶
func SetDefaultDB ¶
func SetDefaultDB(db *DB)
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func GetDefaultDB ¶
func GetDefaultDB() *DB
func NewDB ¶
func (*DB) All ¶
func (*DB) Close ¶
func (*DB) FromBytes ¶
func (*DB) Get ¶
func (*DB) NewHash ¶
func (*DB) Wait ¶
func (d *DB) Wait()
type Frame ¶
type FrameID ¶
type FrameID uint32
func (FrameID) String ¶
type Hash ¶
type Hash struct {
// contains filtered or unexported fields
}
func NewHash ¶
func (*Hash) BlockSize ¶
func (*Hash) Reset ¶
func (h *Hash) Reset()
func (*Hash) Size ¶
func (*Hash) Sum ¶
func (*Hash) Write ¶
func (*Hash) WriteNoDebug ¶
type Record ¶
type Record struct {
Digest digest.Digest `json:"digest"`
Type Type `json:"type"`
Data []Frame `json:"data,omitempty"`
SubRecords []*Record `json:"subRecords,omitempty"`
}
func (*Record) LoadSubRecords ¶
type Type ¶
type Type string
const ( TypeJSON Type = "json" TypeString Type = "string" TypeStringList Type = "string-list" TypeDigestList Type = "digest-list" TypeFileList Type = "file-list" TypeFile Type = "file" )
func (Type) String ¶
Source Files ¶
- Version
- v0.28.0-rc2
- Published
- Feb 26, 2026
- Platform
- windows/amd64
- Imports
- 11 packages
- Last checked
- 4 minutes ago –
Tools for package owners.