Versions in this module Expand all Collapse all v0 v0.1.0 Nov 4, 2024 Changes in this version + func PrepareUploadData() error + type Decompressor interface + ToDecompressed func(io.Reader) (io.Reader, error) + type ExtractionPipeline struct + C *FileCreator + D Decompressor + U Unarchiver + func (p *ExtractionPipeline) Run(r io.Reader) error + type FileCreator struct + func NewFileCreator(outDir string) (*FileCreator, error) + func (c *FileCreator) CreateFile(path string, isDir bool, content io.Reader) error + func (c *FileCreator) Finalize() error + type TarUnarchiver struct + func (*TarUnarchiver) Unarchive(r io.Reader, c *FileCreator) error + type Unarchiver interface + Unarchive func(io.Reader, *FileCreator) error + type WorldService struct + func New(endpoint, authKey string) *WorldService + func (w *WorldService) DownloadWorldData(config *runner.Config) error + func (w *WorldService) GetLatestKey(ctx context.Context, world string) (string, error) + func (w *WorldService) UploadWorldData(config *runner.Config) (string, error) + type XZDecompressor struct + func (*XZDecompressor) ToDecompressed(r io.Reader) (io.Reader, error) + type ZipUnarchiver struct + func (z *ZipUnarchiver) Unarchive(r io.Reader, c *FileCreator) error + type ZstdDecompressor struct + func (*ZstdDecompressor) ToDecompressed(r io.Reader) (io.Reader, error)