Documentation
¶
Index ¶
- type AppError
- type GetArchiveByIdException
- type GetArchivesException
- type GetBackupByIdException
- type GetBackupsException
- type GetLogByIdException
- type GetLogsException
- type GetQuotaByIdException
- type GetQuotasException
- type GetRestorationByIdException
- type GetRestorationsException
- type GetSynchronizationByIdException
- type GetSynchronizationsException
- type GetTransferByIdException
- type GetTransfersException
- type IArchiveService
- type IBackupService
- type ILogService
- type IQuotaService
- type IRestorationService
- type ISynchronizationService
- type ITransferService
- type NewArchiveException
- type NewBackupException
- type NewLogException
- type NewQuotaException
- type NewRestorationException
- type NewSynchronizationException
- type NewTransferException
- type Server
- type UpdateArchiveException
- type UpdateBackupException
- type UpdateLogException
- type UpdateQuotaException
- type UpdateRestorationException
- type UpdateSynchronizationException
- type UpdateTransferException
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetArchiveByIdException ¶
type GetArchiveByIdException int
func (GetArchiveByIdException) EnumIndex ¶
func (e GetArchiveByIdException) EnumIndex() int
func (GetArchiveByIdException) String ¶
func (e GetArchiveByIdException) String() string
type GetArchivesException ¶
type GetArchivesException int
const ( GetArchivesOK GetArchivesException = iota GetArchivesForbidden GetArchivesNotFound GetArchivesMethodNotAllowed GetArchivesInternalServerError )
func (GetArchivesException) EnumIndex ¶
func (e GetArchivesException) EnumIndex() int
func (GetArchivesException) String ¶
func (e GetArchivesException) String() string
type GetBackupByIdException ¶
type GetBackupByIdException int
func (GetBackupByIdException) EnumIndex ¶
func (e GetBackupByIdException) EnumIndex() int
func (GetBackupByIdException) String ¶
func (e GetBackupByIdException) String() string
type GetBackupsException ¶
type GetBackupsException int
const ( GetBackupsOK GetBackupsException = iota GetBackupsForbidden GetBackupsNotFound GetBackupsMethodNotAllowed GetBackupsInternalServerError )
func (GetBackupsException) EnumIndex ¶
func (e GetBackupsException) EnumIndex() int
func (GetBackupsException) String ¶
func (e GetBackupsException) String() string
type GetLogByIdException ¶
type GetLogByIdException int
func (GetLogByIdException) EnumIndex ¶
func (e GetLogByIdException) EnumIndex() int
func (GetLogByIdException) String ¶
func (e GetLogByIdException) String() string
type GetLogsException ¶
type GetLogsException int
const ( GetLogsOK GetLogsException = iota GetLogsForbidden GetLogsNotFound GetLogsMethodNotAllowed GetLogsInternalServerError )
func (GetLogsException) EnumIndex ¶
func (e GetLogsException) EnumIndex() int
func (GetLogsException) String ¶
func (e GetLogsException) String() string
type GetQuotaByIdException ¶
type GetQuotaByIdException int
func (GetQuotaByIdException) EnumIndex ¶
func (e GetQuotaByIdException) EnumIndex() int
func (GetQuotaByIdException) String ¶
func (e GetQuotaByIdException) String() string
type GetQuotasException ¶
type GetQuotasException int
const ( GetQuotasOK GetQuotasException = iota GetQuotasForbidden GetQuotasNotFound GetQuotasMethodNotAllowed GetQuotasInternalServerError )
func (GetQuotasException) EnumIndex ¶
func (e GetQuotasException) EnumIndex() int
func (GetQuotasException) String ¶
func (e GetQuotasException) String() string
type GetRestorationByIdException ¶
type GetRestorationByIdException int
const ( GetRestorationByIdOK GetRestorationByIdException = iota GetRestorationByIdForbidden GetRestorationByIdNotFound GetRestorationByIdMethodNotAllowed GetRestorationByIdInternalServerError )
func (GetRestorationByIdException) EnumIndex ¶
func (e GetRestorationByIdException) EnumIndex() int
func (GetRestorationByIdException) String ¶
func (e GetRestorationByIdException) String() string
type GetRestorationsException ¶
type GetRestorationsException int
const ( GetRestorationsOK GetRestorationsException = iota GetRestorationsForbidden GetRestorationsNotFound GetRestorationsMethodNotAllowed GetRestorationsInternalServerError )
func (GetRestorationsException) EnumIndex ¶
func (e GetRestorationsException) EnumIndex() int
func (GetRestorationsException) String ¶
func (e GetRestorationsException) String() string
type GetSynchronizationByIdException ¶
type GetSynchronizationByIdException int
func (GetSynchronizationByIdException) EnumIndex ¶
func (e GetSynchronizationByIdException) EnumIndex() int
func (GetSynchronizationByIdException) String ¶
func (e GetSynchronizationByIdException) String() string
type GetSynchronizationsException ¶
type GetSynchronizationsException int
const ( GetSynchronizationsOK GetSynchronizationsException = iota GetSynchronizationsForbidden GetSynchronizationsNotFound GetSynchronizationsMethodNotAllowed GetSynchronizationsInternalServerError )
func (GetSynchronizationsException) EnumIndex ¶
func (e GetSynchronizationsException) EnumIndex() int
func (GetSynchronizationsException) String ¶
func (e GetSynchronizationsException) String() string
type GetTransferByIdException ¶
type GetTransferByIdException int
func (GetTransferByIdException) EnumIndex ¶
func (e GetTransferByIdException) EnumIndex() int
func (GetTransferByIdException) String ¶
func (e GetTransferByIdException) String() string
type GetTransfersException ¶
type GetTransfersException int
const ( GetTransfersOK GetTransfersException = iota GetTransfersForbidden GetTransfersNotFound GetTransfersMethodNotAllowed GetTransfersInternalServerError )
func (GetTransfersException) EnumIndex ¶
func (e GetTransfersException) EnumIndex() int
func (GetTransfersException) String ¶
func (e GetTransfersException) String() string
type IArchiveService ¶
type IBackupService ¶
type ILogService ¶
type IQuotaService ¶
type IRestorationService ¶
type IRestorationService interface {
NewRestoration(backup *models.Backup) (*models.Restoration, *AppError)
UpdateRestoration(backup *models.Restoration) (*models.Restoration, *AppError)
GetRestorations() ([]*models.Restoration, *AppError)
GetRestorationById(id int64) (*models.Restoration, *AppError)
}
type ISynchronizationService ¶
type ISynchronizationService interface {
NewSynchronization() (*models.Synchronization, *AppError)
UpdateSynchronization(synchronization *models.Synchronization) (*models.Synchronization, *AppError)
}
type ITransferService ¶
type NewArchiveException ¶
type NewArchiveException int
const ( NewArchiveOK NewArchiveException = iota NewArchiveForbidden NewArchiveNotFound NewArchiveMethodNotAllowed NewArchiveInternalServerError NewArchiveBadGateway NewArchiveGatewayTimeout )
func (NewArchiveException) EnumIndex ¶
func (e NewArchiveException) EnumIndex() int
func (NewArchiveException) String ¶
func (e NewArchiveException) String() string
type NewBackupException ¶
type NewBackupException int
const ( NewBackupOK NewBackupException = iota NewBackupForbidden NewBackupNotFound NewBackupMethodNotAllowed NewBackupInternalServerError NewBackupBadGateway NewBackupGatewayTimeout )
func (NewBackupException) EnumIndex ¶
func (e NewBackupException) EnumIndex() int
func (NewBackupException) String ¶
func (e NewBackupException) String() string
type NewLogException ¶
type NewLogException int
const ( NewLogOK NewLogException = iota NewLogForbidden NewLogNotFound NewLogMethodNotAllowed NewLogInternalServerError NewLogBadGateway NewLogGatewayTimeout )
func (NewLogException) EnumIndex ¶
func (e NewLogException) EnumIndex() int
func (NewLogException) String ¶
func (e NewLogException) String() string
type NewQuotaException ¶
type NewQuotaException int
const ( NewQuotaOK NewQuotaException = iota NewQuotaForbidden NewQuotaNotFound NewQuotaMethodNotAllowed NewQuotaInternalServerError NewQuotaBadGateway NewQuotaGatewayTimeout )
func (NewQuotaException) EnumIndex ¶
func (e NewQuotaException) EnumIndex() int
func (NewQuotaException) String ¶
func (e NewQuotaException) String() string
type NewRestorationException ¶
type NewRestorationException int
const ( NewRestorationOK NewRestorationException = iota NewRestorationForbidden NewRestorationNotFound NewRestorationMethodNotAllowed NewRestorationInternalServerError NewRestorationBadGateway NewRestorationGatewayTimeout )
func (NewRestorationException) EnumIndex ¶
func (e NewRestorationException) EnumIndex() int
func (NewRestorationException) String ¶
func (e NewRestorationException) String() string
type NewSynchronizationException ¶
type NewSynchronizationException int
const ( NewSynchronizationOK NewSynchronizationException = iota NewSynchronizationForbidden NewSynchronizationNotFound NewSynchronizationMethodNotAllowed NewSynchronizationInternalServerError NewSynchronizationBadGateway NewSynchronizationGatewayTimeout )
func (NewSynchronizationException) EnumIndex ¶
func (e NewSynchronizationException) EnumIndex() int
func (NewSynchronizationException) String ¶
func (e NewSynchronizationException) String() string
type NewTransferException ¶
type NewTransferException int
const ( NewTransferOK NewTransferException = iota NewTransferForbidden NewTransferNotFound NewTransferMethodNotAllowed NewTransferInternalServerError NewTransferBadGateway NewTransferGatewayTimeout )
func (NewTransferException) EnumIndex ¶
func (e NewTransferException) EnumIndex() int
func (NewTransferException) String ¶
func (e NewTransferException) String() string
type Server ¶
type Server struct {
Name string
Backup IBackupService
Restoration IRestorationService
Transfer ITransferService
Synchronization ISynchronizationService
Quota IQuotaService
Log ILogService
Archive IArchiveService
}
type UpdateArchiveException ¶
type UpdateArchiveException int
const ( UpdateArchiveOK UpdateArchiveException = iota UpdateArchiveForbidden UpdateArchiveNotFound UpdateArchiveMethodNotAllowed UpdateArchiveInternalServerError UpdateArchiveBadGateway UpdateArchiveGatewayTimeout )
const ( GetArchiveByIdOK UpdateArchiveException = iota GetArchiveByIdForbidden GetArchiveByIdNotFound GetArchiveByIdMethodNotAllowed GetArchiveByIdInternalServerError )
func (UpdateArchiveException) EnumIndex ¶
func (e UpdateArchiveException) EnumIndex() int
func (UpdateArchiveException) String ¶
func (e UpdateArchiveException) String() string
type UpdateBackupException ¶
type UpdateBackupException int
const ( UpdateBackupOK UpdateBackupException = iota UpdateBackupForbidden UpdateBackupNotFound UpdateBackupMethodNotAllowed UpdateBackupInternalServerError UpdateBackupBadGateway UpdateBackupGatewayTimeout )
const ( GetBackupByIdOK UpdateBackupException = iota GetBackupByIdForbidden GetBackupByIdNotFound GetBackupByIdMethodNotAllowed GetBackupByIdInternalServerError )
func (UpdateBackupException) EnumIndex ¶
func (e UpdateBackupException) EnumIndex() int
func (UpdateBackupException) String ¶
func (e UpdateBackupException) String() string
type UpdateLogException ¶
type UpdateLogException int
const ( UpdateLogOK UpdateLogException = iota UpdateLogForbidden UpdateLogNotFound UpdateLogMethodNotAllowed UpdateLogInternalServerError UpdateLogBadGateway UpdateLogGatewayTimeout )
const ( GetLogByIdOK UpdateLogException = iota GetLogByIdForbidden GetLogByIdNotFound GetLogByIdMethodNotAllowed GetLogByIdInternalServerError )
func (UpdateLogException) EnumIndex ¶
func (e UpdateLogException) EnumIndex() int
func (UpdateLogException) String ¶
func (e UpdateLogException) String() string
type UpdateQuotaException ¶
type UpdateQuotaException int
const ( UpdateQuotaOK UpdateQuotaException = iota UpdateQuotaForbidden UpdateQuotaNotFound UpdateQuotaMethodNotAllowed UpdateQuotaInternalServerError UpdateQuotaBadGateway UpdateQuotaGatewayTimeout )
const ( GetQuotaByIdOK UpdateQuotaException = iota GetQuotaByIdForbidden GetQuotaByIdNotFound GetQuotaByIdMethodNotAllowed GetQuotaByIdInternalServerError )
func (UpdateQuotaException) EnumIndex ¶
func (e UpdateQuotaException) EnumIndex() int
func (UpdateQuotaException) String ¶
func (e UpdateQuotaException) String() string
type UpdateRestorationException ¶
type UpdateRestorationException int
const ( UpdateRestorationOK UpdateRestorationException = iota UpdateRestorationForbidden UpdateRestorationNotFound UpdateRestorationMethodNotAllowed UpdateRestorationInternalServerError UpdateRestorationBadGateway UpdateRestorationGatewayTimeout )
func (UpdateRestorationException) EnumIndex ¶
func (e UpdateRestorationException) EnumIndex() int
func (UpdateRestorationException) String ¶
func (e UpdateRestorationException) String() string
type UpdateSynchronizationException ¶
type UpdateSynchronizationException int
const ( UpdateSynchronizationOK UpdateSynchronizationException = iota UpdateSynchronizationForbidden UpdateSynchronizationNotFound UpdateSynchronizationMethodNotAllowed UpdateSynchronizationInternalServerError UpdateSynchronizationBadGateway UpdateSynchronizationGatewayTimeout )
const ( GetSynchronizationByIdOK UpdateSynchronizationException = iota GetSynchronizationByIdForbidden GetSynchronizationByIdNotFound GetSynchronizationByIdMethodNotAllowed GetSynchronizationByIdInternalServerError )
func (UpdateSynchronizationException) EnumIndex ¶
func (e UpdateSynchronizationException) EnumIndex() int
func (UpdateSynchronizationException) String ¶
func (e UpdateSynchronizationException) String() string
type UpdateTransferException ¶
type UpdateTransferException int
const ( UpdateTransferOK UpdateTransferException = iota UpdateTransferForbidden UpdateTransferNotFound UpdateTransferMethodNotAllowed UpdateTransferInternalServerError UpdateTransferBadGateway UpdateTransferGatewayTimeout )
const ( GetTransferByIdOK UpdateTransferException = iota GetTransferByIdForbidden GetTransferByIdNotFound GetTransferByIdMethodNotAllowed GetTransferByIdInternalServerError )
func (UpdateTransferException) EnumIndex ¶
func (e UpdateTransferException) EnumIndex() int
func (UpdateTransferException) String ¶
func (e UpdateTransferException) String() string
Click to show internal directories.
Click to hide internal directories.