backup

package
v2.17.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package backup provides backup functionality.

Package backup provides backup functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactsService

type ArtifactsService struct {
	// contains filtered or unexported fields
}

ArtifactsService represents artifacts API.

func NewArtifactsService

func NewArtifactsService(db *reform.DB) *ArtifactsService

NewArtifactsService creates new artifacts API service.

func (*ArtifactsService) Enabled

func (s *ArtifactsService) Enabled() bool

Enabled returns if service is enabled and can be used.

func (*ArtifactsService) ListArtifacts

ListArtifacts returns a list of all artifacts.

type BackupsService

type BackupsService struct {
	// contains filtered or unexported fields
}

BackupsService represents backups API.

func NewBackupsService

func NewBackupsService(db *reform.DB, jobsService jobsService) *BackupsService

NewBackupsService creates new backups API service.

func (*BackupsService) RestoreBackup

RestoreBackup starts restore backup job.

func (*BackupsService) StartBackup

StartBackup starts on-demand backup.

type LocationsService

type LocationsService struct {
	// contains filtered or unexported fields
}

LocationsService represents backup locations API.

func NewLocationsService

func NewLocationsService(db *reform.DB, s3 awsS3) *LocationsService

NewLocationsService creates new backup locations API service.

func (*LocationsService) AddLocation

AddLocation adds new backup location.

func (*LocationsService) ChangeLocation

ChangeLocation changes existing backup location.

func (*LocationsService) Enabled

func (s *LocationsService) Enabled() bool

Enabled returns if service is enabled and can be used.

func (*LocationsService) ListLocations

ListLocations returns list of all available backup locations.

func (*LocationsService) RemoveLocation

RemoveLocation removes backup location.

func (*LocationsService) TestLocationConfig

TestLocationConfig tests backup location and credentials.

type RestoreHistoryService

type RestoreHistoryService struct {
	// contains filtered or unexported fields
}

RestoreHistoryService represents restore history API.

func NewRestoreHistoryService

func NewRestoreHistoryService(db *reform.DB) *RestoreHistoryService

NewRestoreHistoryService creates new restore history API service.

func (*RestoreHistoryService) Enabled

func (s *RestoreHistoryService) Enabled() bool

Enabled returns if service is enabled and can be used.

func (*RestoreHistoryService) ListRestoreHistory

ListRestoreHistory returns a list of restore history.

Jump to

Keyboard shortcuts

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