services

package
v0.0.0-...-8f56799 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: EPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppError

type AppError struct {
	Error   error
	Message string
	Code    int
}

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
	GetArchivesServiceUnavailable
)

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
	GetBackupsServiceUnavailable
)

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
	GetLogsServiceUnavailable
)

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
	GetQuotasServiceUnavailable
)

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
	GetRestorationByIdServiceUnavailable
)

func (GetRestorationByIdException) EnumIndex

func (e GetRestorationByIdException) EnumIndex() int

func (GetRestorationByIdException) String

type GetRestorationsException

type GetRestorationsException int
const (
	GetRestorationsOK GetRestorationsException = iota
	GetRestorationsForbidden
	GetRestorationsNotFound
	GetRestorationsMethodNotAllowed
	GetRestorationsInternalServerError
	GetRestorationsServiceUnavailable
)

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

type GetSynchronizationsException

type GetSynchronizationsException int
const (
	GetSynchronizationsOK GetSynchronizationsException = iota
	GetSynchronizationsForbidden
	GetSynchronizationsNotFound
	GetSynchronizationsMethodNotAllowed
	GetSynchronizationsInternalServerError
	GetSynchronizationsServiceUnavailable
)

func (GetSynchronizationsException) EnumIndex

func (e GetSynchronizationsException) EnumIndex() int

func (GetSynchronizationsException) 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
	GetTransfersServiceUnavailable
)

func (GetTransfersException) EnumIndex

func (e GetTransfersException) EnumIndex() int

func (GetTransfersException) String

func (e GetTransfersException) String() string

type IArchiveService

type IArchiveService interface {
	NewArchive() (*models.Archive, *AppError)
	UpdateArchive(archive *models.Archive) (*models.Archive, *AppError)
	GetArchives() ([]*models.Archive, *AppError)
	GetArchiveById(id int64) (*models.Archive, *AppError)
}

type IBackupService

type IBackupService interface {
	NewBackup() (*models.Backup, *AppError)
	UpdateBackup(backup *models.Backup) (*models.Backup, *AppError)
	GetBackups() ([]*models.Backup, *AppError)
	GetBackupById(id int64) (*models.Backup, *AppError)
}

type ILogService

type ILogService interface {
	NewLog() (*models.Log, *AppError)
	UpdateLog(log *models.Log) (*models.Log, *AppError)
	GetLogById(id int64) (*models.Log, *AppError)
}

type IQuotaService

type IQuotaService interface {
	GetQuotas() ([]*models.Quota, *AppError)
}

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 ITransferService interface {
	NewTransfer(backup *models.Backup) (*models.Transfer, *AppError)
	UpdateTransfer(backup *models.Transfer) (*models.Transfer, *AppError)
	GetTransfers() ([]*models.Transfer, *AppError)
	GetTransferById(id int64) (*models.Transfer, *AppError)
}

type NewArchiveException

type NewArchiveException int
const (
	NewArchiveOK NewArchiveException = iota
	NewArchiveForbidden
	NewArchiveNotFound
	NewArchiveMethodNotAllowed
	NewArchiveInternalServerError
	NewArchiveBadGateway
	NewArchiveServiceUnavailable
	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
	NewBackupServiceUnavailable
	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
	NewLogServiceUnavailable
	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
	NewQuotaServiceUnavailable
	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
	NewRestorationServiceUnavailable
	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
	NewSynchronizationServiceUnavailable
	NewSynchronizationGatewayTimeout
)

func (NewSynchronizationException) EnumIndex

func (e NewSynchronizationException) EnumIndex() int

func (NewSynchronizationException) String

type NewTransferException

type NewTransferException int
const (
	NewTransferOK NewTransferException = iota
	NewTransferForbidden
	NewTransferNotFound
	NewTransferMethodNotAllowed
	NewTransferInternalServerError
	NewTransferBadGateway
	NewTransferServiceUnavailable
	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
	UpdateArchiveServiceUnavailable
	UpdateArchiveGatewayTimeout
)
const (
	GetArchiveByIdOK UpdateArchiveException = iota
	GetArchiveByIdForbidden
	GetArchiveByIdNotFound
	GetArchiveByIdMethodNotAllowed
	GetArchiveByIdInternalServerError
	GetArchiveByIdServiceUnavailable
)

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
	UpdateBackupServiceUnavailable
	UpdateBackupGatewayTimeout
)
const (
	GetBackupByIdOK UpdateBackupException = iota
	GetBackupByIdForbidden
	GetBackupByIdNotFound
	GetBackupByIdMethodNotAllowed
	GetBackupByIdInternalServerError
	GetBackupByIdServiceUnavailable
)

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
	UpdateLogServiceUnavailable
	UpdateLogGatewayTimeout
)
const (
	GetLogByIdOK UpdateLogException = iota
	GetLogByIdForbidden
	GetLogByIdNotFound
	GetLogByIdMethodNotAllowed
	GetLogByIdInternalServerError
	GetLogByIdServiceUnavailable
)

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
	UpdateQuotaServiceUnavailable
	UpdateQuotaGatewayTimeout
)
const (
	GetQuotaByIdOK UpdateQuotaException = iota
	GetQuotaByIdForbidden
	GetQuotaByIdNotFound
	GetQuotaByIdMethodNotAllowed
	GetQuotaByIdInternalServerError
	GetQuotaByIdServiceUnavailable
)

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
	UpdateRestorationServiceUnavailable
	UpdateRestorationGatewayTimeout
)

func (UpdateRestorationException) EnumIndex

func (e UpdateRestorationException) EnumIndex() int

func (UpdateRestorationException) String

type UpdateSynchronizationException

type UpdateSynchronizationException int
const (
	UpdateSynchronizationOK UpdateSynchronizationException = iota
	UpdateSynchronizationForbidden
	UpdateSynchronizationNotFound
	UpdateSynchronizationMethodNotAllowed
	UpdateSynchronizationInternalServerError
	UpdateSynchronizationBadGateway
	UpdateSynchronizationServiceUnavailable
	UpdateSynchronizationGatewayTimeout
)
const (
	GetSynchronizationByIdOK UpdateSynchronizationException = iota
	GetSynchronizationByIdForbidden
	GetSynchronizationByIdNotFound
	GetSynchronizationByIdMethodNotAllowed
	GetSynchronizationByIdInternalServerError
	GetSynchronizationByIdServiceUnavailable
)

func (UpdateSynchronizationException) EnumIndex

func (e UpdateSynchronizationException) EnumIndex() int

func (UpdateSynchronizationException) String

type UpdateTransferException

type UpdateTransferException int
const (
	UpdateTransferOK UpdateTransferException = iota
	UpdateTransferForbidden
	UpdateTransferNotFound
	UpdateTransferMethodNotAllowed
	UpdateTransferInternalServerError
	UpdateTransferBadGateway
	UpdateTransferServiceUnavailable
	UpdateTransferGatewayTimeout
)
const (
	GetTransferByIdOK UpdateTransferException = iota
	GetTransferByIdForbidden
	GetTransferByIdNotFound
	GetTransferByIdMethodNotAllowed
	GetTransferByIdInternalServerError
	GetTransferByIdServiceUnavailable
)

func (UpdateTransferException) EnumIndex

func (e UpdateTransferException) EnumIndex() int

func (UpdateTransferException) String

func (e UpdateTransferException) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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