backupconfig

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Cluster struct {
		Storage struct {
			VolumeGroup   string `json:"volumeGroup"`
			LogicalVolume string `json:"logicalVolume"`
			FileSystem    string `json:"fileSystem"`
		} `json:"storage"`

		Snapshot struct {
			MountPath    string `json:"mountPath"`
			Opts         string `json:"opts"`
			SnapshotName string `json:"snapshotName"`
			Size         string `json:"size"`
		} `json:"snapshot"`

		ReplicaConfs []string `json:"replicaConfs"`
	} `json:"cluster"`

	S3 struct {
		Bucket     string `json:"bucket"`
		ObjectPath string `json:"objectPath"`
	} `json:"s3"`
}

Config describes the configuration of a MongoD host and the attributes necessary for performing an LVM snapshot and subsequent backup

func BackupConfig

func BackupConfig(configPath string) (replconf Config, err error)

BackupConfig converts a yaml config describing a MongoD Host's storage configuration and replica set(s) and makes it available as a struct for the purpose of running a backup against its various replsets

Jump to

Keyboard shortcuts

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