Documentation ¶
Index ¶
- Constants
- func FileTime(name string) (time.Time, error)
- func Restore(zr *zip.Reader, containerID string, dc client.ContainerAPIClient) error
- func RestoreMCWorld(zr *zip.Reader, containerID string, dc client.ContainerAPIClient) error
- func SaveHoldQuery(command io.Writer, logs *bufio.Reader) ([]string, error)
- func SaveResume(command io.Writer, logs *bufio.Reader) error
- func SortFilesByDate(files []os.FileInfo) []os.FileInfo
Constants ¶
View Source
const (
FileNameTimeLayout = "15-04_02-01-2006" // The format of the file timestamp for the Go time package formatter
)
Variables ¶
This section is empty.
Functions ¶
func Restore ¶
Restore reads from the given zip.ReadCloser, copying each of the files to the directory containing the server files.
func RestoreMCWorld ¶
RestoreMCWorld reads from the given zip.Reader, copying each of the files to the default world directory.
func SaveHoldQuery ¶
SaveHoldQuery runs the `save hold` bedrock server command. It then repeatedly runs the `save query` command. When the server is ready for world files to be copied, a list of suggested files to back up is returned. SaveResume must be run after SaveHoldQuery.
func SaveResume ¶
SaveResume runs the `save resume` bedrock server command and validates the successful response. It must be run after after every call to SaveHoldQuery.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.