Documentation ¶
Index ¶
- 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) ListLocations(ctx context.Context, req *backupv1beta1.ListLocationsRequest) (*backupv1beta1.ListLocationsResponse, error)
- func (s *LocationsService) RemoveLocation(ctx context.Context, req *backupv1beta1.RemoveLocationRequest) (*backupv1beta1.RemoveLocationResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) 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.
Click to show internal directories.
Click to hide internal directories.