backup

package
v2.16.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: AGPL-3.0 Imports: 7 Imported by: 1

Documentation

Overview

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 LocationsService

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

LocationsService represents backup locations API.

func NewLocationsService

func NewLocationsService(db *reform.DB) *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.

Jump to

Keyboard shortcuts

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