Documentation ¶
Overview ¶
Package backup provides backup functionality.
Index ¶
- type ArtifactsService
- 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)
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 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 ¶
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.