Documentation ¶
Overview ¶
Package backup provides backup functionality.
Package backup provides backup functionality.
Index ¶
- type ArtifactsService
- type BackupsService
- type LocationsService
- func (s *LocationsService) AddLocation(ctx context.Context, req *backupv1beta1.AddLocationRequest) (*backupv1beta1.AddLocationResponse, error)
- func (s *LocationsService) ChangeLocation(ctx context.Context, req *backupv1beta1.ChangeLocationRequest) (*backupv1beta1.ChangeLocationResponse, error)
- func (s *LocationsService) Enabled() bool
- func (s *LocationsService) ListLocations(ctx context.Context, req *backupv1beta1.ListLocationsRequest) (*backupv1beta1.ListLocationsResponse, error)
- func (s *LocationsService) RemoveLocation(ctx context.Context, req *backupv1beta1.RemoveLocationRequest) (*backupv1beta1.RemoveLocationResponse, error)
- func (s *LocationsService) TestLocationConfig(_ context.Context, req *backupv1beta1.TestLocationConfigRequest) (*backupv1beta1.TestLocationConfigResponse, error)
- type RestoreHistoryService
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 ¶
func (s *ArtifactsService) ListArtifacts(context.Context, *backupv1beta1.ListArtifactsRequest) (*backupv1beta1.ListArtifactsResponse, error)
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 ¶
func (s *BackupsService) RestoreBackup( ctx context.Context, req *backupv1beta1.RestoreBackupRequest, ) (*backupv1beta1.RestoreBackupResponse, error)
RestoreBackup starts restore backup job.
func (*BackupsService) StartBackup ¶
func (s *BackupsService) StartBackup(ctx context.Context, req *backupv1beta1.StartBackupRequest) (*backupv1beta1.StartBackupResponse, error)
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 ¶
func (s *LocationsService) AddLocation(ctx context.Context, req *backupv1beta1.AddLocationRequest) (*backupv1beta1.AddLocationResponse, error)
AddLocation adds new backup location.
func (*LocationsService) ChangeLocation ¶
func (s *LocationsService) ChangeLocation(ctx context.Context, req *backupv1beta1.ChangeLocationRequest) (*backupv1beta1.ChangeLocationResponse, error)
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 ¶
func (s *LocationsService) ListLocations(ctx context.Context, req *backupv1beta1.ListLocationsRequest) (*backupv1beta1.ListLocationsResponse, error)
ListLocations returns list of all available backup locations.
func (*LocationsService) RemoveLocation ¶
func (s *LocationsService) RemoveLocation(ctx context.Context, req *backupv1beta1.RemoveLocationRequest) (*backupv1beta1.RemoveLocationResponse, error)
RemoveLocation removes backup location.
func (*LocationsService) TestLocationConfig ¶
func (s *LocationsService) TestLocationConfig( _ context.Context, req *backupv1beta1.TestLocationConfigRequest, ) (*backupv1beta1.TestLocationConfigResponse, error)
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 ¶
func (s *RestoreHistoryService) ListRestoreHistory( context.Context, *backupv1beta1.ListRestoreHistoryRequest, ) (*backupv1beta1.ListRestoreHistoryResponse, error)
ListRestoreHistory returns a list of restore history.