Documentation
¶
Index ¶
Constants ¶
View Source
const ScopeName = "github.com/kofuk/premises/runner/internal/commands/mclauncher/world"
Variables ¶
This section is empty.
Functions ¶
func PrepareUploadData ¶
Types ¶
type ExtractionPipeline ¶
type ExtractionPipeline struct { D Decompressor U Unarchiver C *FileCreator }
type FileCreator ¶
type FileCreator struct {
// contains filtered or unexported fields
}
func NewFileCreator ¶
func NewFileCreator(outDir string) (*FileCreator, error)
func (*FileCreator) CreateFile ¶
func (*FileCreator) Finalize ¶
func (c *FileCreator) Finalize() error
type TarUnarchiver ¶
type TarUnarchiver struct{}
func (*TarUnarchiver) Unarchive ¶
func (*TarUnarchiver) Unarchive(r io.Reader, c *FileCreator) error
type Unarchiver ¶
type Unarchiver interface {
Unarchive(io.Reader, *FileCreator) error
}
type WorldService ¶
type WorldService struct {
// contains filtered or unexported fields
}
func New ¶
func New(endpoint, authKey string) *WorldService
func (*WorldService) DownloadWorldData ¶
func (*WorldService) GetLatestKey ¶
func (*WorldService) UploadWorldData ¶
type ZipUnarchiver ¶
type ZipUnarchiver struct{}
func (*ZipUnarchiver) Unarchive ¶
func (z *ZipUnarchiver) Unarchive(r io.Reader, c *FileCreator) error
Click to show internal directories.
Click to hide internal directories.