data_load

package
v1.73.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Archives

func Archives() (map[string]DataDefinition, string)

func ArchivesAsJson

func ArchivesAsJson() (string, error)

func ListArchives

func ListArchives()

func LoadArchive

func LoadArchive(archiveName, sandboxName string, overwrite bool) error

func UnescapeJsonString added in v1.57.0

func UnescapeJsonString(bytes []byte) string

The JSON encoder by default converts "<" and ">" to their corresponding Unicode values Since this info is not used in HTML, we need to convert back from Unicode to plain text

Types

type DataDefinition

type DataDefinition struct {
	Description       string   `json:"description,omitempty"`        // Description of the database
	Origin            string   `json:"origin"`                       // [Required] Where is the archive
	FileName          string   `json:"file_name"`                    // [Required] File name that we will get locally
	InternalDirectory string   `json:"internal-directory,omitempty"` // Optional internal directory of the archive
	ChangeDirectory   bool     `json:"change-dir,omitempty"`         // Whether we need to operate within the internal directory
	LoadCommands      []string `json:"load-commands"`                // [Required] Set of commands used to load the archive
	Size              uint64   `json:"size,omitempty"`               // Size of original archive
	Sha256            string   `json:"sha256,omitempty"`             // SHA 256 checksum of the compressed archive
}

Jump to

Keyboard shortcuts

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