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) (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) (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.13.0-beta1
- Published
- Sep 29, 2023
- Platform
- js/wasm
- Imports
- 19 packages
- Last checked
- 1 minute ago –
Tools for package owners.