legacy

package
v0.0.0-...-fd1ce1a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

package legacy provides support for importing data from legacy sandstorm installations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(mongoPort int, passwdFile string, snapshotDir string) error

Take a snapshot of a legacy sandstorm installation's mongo database. The format of the snapshot will be a directory contianing one file per collection, each of which is a sequence of bson values, prefixed with their length as a little-endian uint32.

Parameters:

mongoPort - Port on which mongo is listening passwdFile - File storing the mongo user password snapshotDir - Directory in which to store the snapshot

func Import

func Import(sqlitePath, snapshotDir string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL