backup

package
v2.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TypeJSON = "json"
	TypeYAML = "yaml"

	LimitPerFile         = 50
	EntityNameIndexSplit = "__"
	DateSuffixLayout     = "20060102_150405"

	DefaultStorageExporter = "default_storage_exporter"
	BackupDetailsFilename  = "backup.yaml"
)

global backup/restore constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Backup

type Backup interface {
	Import(data interface{}) error
	List(filters []storageTY.Filter, pagination *storageTY.Pagination) (*storageTY.Result, error)
	GetEntityInterface() interface{}
}

used to import and export data to database via existing api

type BackupDetails

type BackupDetails struct {
	Filename          string          `json:"filename" yaml:"filename"`
	StorageExportType string          `json:"storage_export_type" yaml:"storage_export_type"`
	CreatedOn         time.Time       `json:"created_on" yaml:"created_on"`
	Version           version.Version `json:"version" yaml:"version"`
}

BackupDetails of a export

type BackupFile

type BackupFile struct {
	ID           string    `json:"id" yaml:"id"`
	LocationName string    `json:"locationName" yaml:"locationName"`
	ProviderType string    `json:"providerType" yaml:"providerType"`
	Directory    string    `json:"directory" yaml:"directory"`
	FileName     string    `json:"fileName" yaml:"fileName"`
	FileSize     int64     `json:"fileSize" yaml:"fileSize"`
	FullPath     string    `json:"fullPath" yaml:"fullPath"`
	ModifiedOn   time.Time `json:"modifiedOn" yaml:"modifiedOn"`
}

BackupFile details

type BackupLocationDisk

type BackupLocationDisk struct {
	TargetDirectory string
}

BackupLocationDisk details

type OnDemandBackupConfig

type OnDemandBackupConfig struct {
	Prefix            string `json:"prefix" yaml:"prefix"`
	StorageExportType string `json:"storageExportType" yaml:"storageExportType"`
	TargetLocation    string `json:"targetLocation" yaml:"targetLocation"`
	Handler           string `json:"handler" yaml:"handler"`
}

OnDemandBackupConfig config

Jump to

Keyboard shortcuts

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