Documentation
¶
Index ¶
- func SetupRouter(apiHandler *APIHandler) *chi.Mux
- type APIHandler
- func (a *APIHandler) HandleAddBackupRepoStorage(w http.ResponseWriter, r *http.Request)
- func (a *APIHandler) HandleCreateBackupRepo(w http.ResponseWriter, r *http.Request)
- func (a *APIHandler) HandleCreateStorage(w http.ResponseWriter, r *http.Request)
- func (a *APIHandler) HandleDeleteBackupRepo(w http.ResponseWriter, r *http.Request)
- func (a *APIHandler) HandleDeleteStorage(w http.ResponseWriter, r *http.Request)
- func (a *APIHandler) HandleGetBackupRepoByName(w http.ResponseWriter, r *http.Request)
- func (a *APIHandler) HandleGetBackupRepoStorages(w http.ResponseWriter, r *http.Request)
- func (a *APIHandler) HandleGetBackupRepos(w http.ResponseWriter, r *http.Request)
- func (a *APIHandler) HandleGetStorageByName(w http.ResponseWriter, r *http.Request)
- func (a *APIHandler) HandleGetStorages(w http.ResponseWriter, r *http.Request)
- func (a *APIHandler) HandleIndex(w http.ResponseWriter, r *http.Request)
- func (a *APIHandler) HandleRemoveBackupRepoStorage(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupRouter ¶
func SetupRouter(apiHandler *APIHandler) *chi.Mux
Types ¶
type APIHandler ¶
type APIHandler struct {
// contains filtered or unexported fields
}
func NewAPIHandler ¶
func NewAPIHandler(db *database.Database, bm *backuprepo.BackupRepoManager, sm *storage.StorageManager, scheduler *backup.BackupScheduler, templatesDir string) *APIHandler
func (*APIHandler) HandleAddBackupRepoStorage ¶ added in v0.3.0
func (a *APIHandler) HandleAddBackupRepoStorage(w http.ResponseWriter, r *http.Request)
func (*APIHandler) HandleCreateBackupRepo ¶
func (a *APIHandler) HandleCreateBackupRepo(w http.ResponseWriter, r *http.Request)
func (*APIHandler) HandleCreateStorage ¶ added in v0.3.0
func (a *APIHandler) HandleCreateStorage(w http.ResponseWriter, r *http.Request)
func (*APIHandler) HandleDeleteBackupRepo ¶ added in v0.3.0
func (a *APIHandler) HandleDeleteBackupRepo(w http.ResponseWriter, r *http.Request)
func (*APIHandler) HandleDeleteStorage ¶ added in v0.3.0
func (a *APIHandler) HandleDeleteStorage(w http.ResponseWriter, r *http.Request)
func (*APIHandler) HandleGetBackupRepoByName ¶
func (a *APIHandler) HandleGetBackupRepoByName(w http.ResponseWriter, r *http.Request)
func (*APIHandler) HandleGetBackupRepoStorages ¶ added in v0.3.0
func (a *APIHandler) HandleGetBackupRepoStorages(w http.ResponseWriter, r *http.Request)
func (*APIHandler) HandleGetBackupRepos ¶
func (a *APIHandler) HandleGetBackupRepos(w http.ResponseWriter, r *http.Request)
func (*APIHandler) HandleGetStorageByName ¶ added in v0.3.0
func (a *APIHandler) HandleGetStorageByName(w http.ResponseWriter, r *http.Request)
func (*APIHandler) HandleGetStorages ¶ added in v0.3.0
func (a *APIHandler) HandleGetStorages(w http.ResponseWriter, r *http.Request)
func (*APIHandler) HandleIndex ¶
func (a *APIHandler) HandleIndex(w http.ResponseWriter, r *http.Request)
func (*APIHandler) HandleRemoveBackupRepoStorage ¶ added in v0.3.0
func (a *APIHandler) HandleRemoveBackupRepoStorage(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.