package converter
import "github.com/moby/buildkit/util/converter"
Index ¶
- func New(ctx context.Context, cs content.Store, desc ocispecs.Descriptor, comp compression.Config) (converter.ConvertFunc, error)
- func NewWithRewriteTimestamp(ctx context.Context, cs content.Store, desc ocispecs.Descriptor, comp compression.Config, rewriteTimestamp *time.Time, immDiffIDs map[digest.Digest]struct{}) (converter.ConvertFunc, error)
Functions ¶
func New ¶
func New(ctx context.Context, cs content.Store, desc ocispecs.Descriptor, comp compression.Config) (converter.ConvertFunc, error)
New returns converter function according to the specified compression type. If no conversion is needed, this returns nil without error.
func NewWithRewriteTimestamp ¶
func NewWithRewriteTimestamp(ctx context.Context, cs content.Store, desc ocispecs.Descriptor, comp compression.Config, rewriteTimestamp *time.Time, immDiffIDs map[digest.Digest]struct{}) (converter.ConvertFunc, error)
NewWithRewriteTimestamp returns converter function according to the specified compression type and the epoch. If no conversion is needed, this returns nil without error.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
util/converter/tarconverter |
- Version
- v0.20.0-rc2
- Published
- Feb 13, 2025
- Platform
- js/wasm
- Imports
- 20 packages
- Last checked
- 1 hour ago –
Tools for package owners.