Documentation ¶
Index ¶
- func ExtractWorldArchiveIfNeeded() error
- func GetLastWorldHash(config *runner.Config) (string, bool, error)
- func PrepareUploadData(options UploadOptions) error
- func RemoveLastWorldHash(config *runner.Config) error
- func SaveLastWorldHash(config *runner.Config, hash string) error
- type BackupService
- func (self *BackupService) DownloadWorldData(config *runner.Config) error
- func (self *BackupService) GetLatestKey(world string) (string, error)
- func (self *BackupService) RemoveOldBackups(config *runner.Config) error
- func (self *BackupService) UploadWorldData(config *runner.Config, options UploadOptions) error
- type ProgressReader
- type ProgressWriter
- type UploadOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractWorldArchiveIfNeeded ¶
func ExtractWorldArchiveIfNeeded() error
func PrepareUploadData ¶
func PrepareUploadData(options UploadOptions) error
func RemoveLastWorldHash ¶
Types ¶
type BackupService ¶
type BackupService struct {
// contains filtered or unexported fields
}
func New ¶
func New(awsAccessKey, awsSecretKey, s3Endpoint, bucket string) *BackupService
func (*BackupService) DownloadWorldData ¶
func (self *BackupService) DownloadWorldData(config *runner.Config) error
func (*BackupService) GetLatestKey ¶
func (self *BackupService) GetLatestKey(world string) (string, error)
func (*BackupService) RemoveOldBackups ¶
func (self *BackupService) RemoveOldBackups(config *runner.Config) error
func (*BackupService) UploadWorldData ¶
func (self *BackupService) UploadWorldData(config *runner.Config, options UploadOptions) error
type ProgressReader ¶
type ProgressReader struct {
// contains filtered or unexported fields
}
type ProgressWriter ¶
type ProgressWriter struct {
// contains filtered or unexported fields
}
type UploadOptions ¶
Click to show internal directories.
Click to hide internal directories.