api

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	App     *cfenv.App
	S3      *s3.Client
	Service *service.Service
}

Handler holds all objects and configurations used across API requests

func New

func New() *Handler

func (*Handler) CreateBackup

func (h *Handler) CreateBackup(c echo.Context) error

func (*Handler) DeleteBackup

func (h *Handler) DeleteBackup(c echo.Context) error

func (*Handler) DownloadBackup

func (h *Handler) DownloadBackup(c echo.Context) error

func (*Handler) GetBackup

func (h *Handler) GetBackup(c echo.Context) error

func (*Handler) ListBackups

func (h *Handler) ListBackups(c echo.Context) error

func (*Handler) ListServices

func (h *Handler) ListServices(c echo.Context) error

func (*Handler) RegisterRoutes

func (h *Handler) RegisterRoutes(e *echo.Echo)

func (*Handler) RestoreBackup

func (h *Handler) RestoreBackup(c echo.Context) error

Jump to

Keyboard shortcuts

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