Versions in this module Expand all Collapse all v1 v1.1.10 Dec 12, 2023 Changes in this version + var CacheRecordType_name = map[int32]string + var CacheRecordType_value = map[string]int32 + var ErrIntOverflowChecksum = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthChecksum = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupChecksum = fmt.Errorf("proto: unexpected end of group") + func Checksum(ctx context.Context, ref cache.ImmutableRef, path string, opts ChecksumOpts, ...) (digest.Digest, error) + func ClearCacheContext(md cache.RefMetadata) + func NewFileHash(path string, fi os.FileInfo) (hash.Hash, error) + func NewFromStat(stat *fstypes.Stat) (hash.Hash, error) + func SetCacheContext(ctx context.Context, md cache.RefMetadata, cc CacheContext) error + func WriteV1TarsumHeaders(h *tar.Header, w io.Writer) + type CacheContext interface + Checksum func(ctx context.Context, ref cache.Mountable, p string, opts ChecksumOpts, ...) (digest.Digest, error) + HandleChange func(kind fsutil.ChangeKind, p string, fi os.FileInfo, err error) error + func GetCacheContext(ctx context.Context, md cache.RefMetadata) (CacheContext, error) + type CacheRecord struct + Digest github_com_opencontainers_go_digest.Digest + Linkname string + Type CacheRecordType + func (*CacheRecord) Descriptor() ([]byte, []int) + func (*CacheRecord) ProtoMessage() + func (m *CacheRecord) GetLinkname() string + func (m *CacheRecord) GetType() CacheRecordType + func (m *CacheRecord) Marshal() (dAtA []byte, err error) + func (m *CacheRecord) MarshalTo(dAtA []byte) (int, error) + func (m *CacheRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CacheRecord) Reset() + func (m *CacheRecord) Size() (n int) + func (m *CacheRecord) String() string + func (m *CacheRecord) Unmarshal(dAtA []byte) error + func (m *CacheRecord) XXX_DiscardUnknown() + func (m *CacheRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CacheRecord) XXX_Merge(src proto.Message) + func (m *CacheRecord) XXX_Size() int + func (m *CacheRecord) XXX_Unmarshal(b []byte) error + type CacheRecordType int32 + const CacheRecordTypeDir + const CacheRecordTypeDirHeader + const CacheRecordTypeFile + const CacheRecordTypeSymlink + func (CacheRecordType) EnumDescriptor() ([]byte, []int) + func (x CacheRecordType) String() string + type CacheRecordWithPath struct + Path string + Record *CacheRecord + func (*CacheRecordWithPath) Descriptor() ([]byte, []int) + func (*CacheRecordWithPath) ProtoMessage() + func (m *CacheRecordWithPath) GetPath() string + func (m *CacheRecordWithPath) GetRecord() *CacheRecord + func (m *CacheRecordWithPath) Marshal() (dAtA []byte, err error) + func (m *CacheRecordWithPath) MarshalTo(dAtA []byte) (int, error) + func (m *CacheRecordWithPath) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CacheRecordWithPath) Reset() + func (m *CacheRecordWithPath) Size() (n int) + func (m *CacheRecordWithPath) String() string + func (m *CacheRecordWithPath) Unmarshal(dAtA []byte) error + func (m *CacheRecordWithPath) XXX_DiscardUnknown() + func (m *CacheRecordWithPath) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CacheRecordWithPath) XXX_Merge(src proto.Message) + func (m *CacheRecordWithPath) XXX_Size() int + func (m *CacheRecordWithPath) XXX_Unmarshal(b []byte) error + type CacheRecords struct + Paths []*CacheRecordWithPath + func (*CacheRecords) Descriptor() ([]byte, []int) + func (*CacheRecords) ProtoMessage() + func (m *CacheRecords) GetPaths() []*CacheRecordWithPath + func (m *CacheRecords) Marshal() (dAtA []byte, err error) + func (m *CacheRecords) MarshalTo(dAtA []byte) (int, error) + func (m *CacheRecords) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CacheRecords) Reset() + func (m *CacheRecords) Size() (n int) + func (m *CacheRecords) String() string + func (m *CacheRecords) Unmarshal(dAtA []byte) error + func (m *CacheRecords) XXX_DiscardUnknown() + func (m *CacheRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CacheRecords) XXX_Merge(src proto.Message) + func (m *CacheRecords) XXX_Size() int + func (m *CacheRecords) XXX_Unmarshal(b []byte) error + type ChecksumOpts struct + ExcludePatterns []string + FollowLinks bool + IncludePatterns []string + Wildcard bool + type Hashed interface + Digest func() digest.Digest