ops

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backup

func Backup(dg *dgraph.DGraph) error

Backup creates a backup request to Dgraph Instance, and polls for task completion provided the export request id and waits until the entire backup is complete once the backup is complete, it is written to local disk

func Clean

func Clean(dg *dgraph.DGraph) error

Clean removes the schema and all the content from the Dgraph Database

func Restore

func Restore(dg *dgraph.DGraph, i InputOptions, o OutputOptions) error

Restore will restore the data from local path to the provided dgraph instance

Types

type Entry

type Entry *map[string]string

type InputOptions

type InputOptions struct {
	JsonPath   string
	SchemaPath string
}

type OutputOptions

type OutputOptions struct {
	JsonPath   string
	SchemaPath string
}

Jump to

Keyboard shortcuts

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