service

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backup

type Backup struct {
	Service util.Service
	Files   []File
}

swagger:response backup

type Backups added in v1.5.0

type Backups []Backup

swagger:response backups

type File

type File struct {
	Key          string
	Filepath     string
	Filename     string
	Size         int64
	LastModified time.Time
}

type Service

type Service struct {
	App      *cfenv.App
	S3       *s3.Client
	Services []util.Service
}

Service is used interact with services and dump/restore backups

func Get

func Get() *Service

func (*Service) Backup

func (s *Service) Backup(service util.Service) error

func (*Service) BackupExists

func (s *Service) BackupExists(serviceType, serviceName, filename string) bool

func (*Service) DeleteBackup

func (s *Service) DeleteBackup(serviceType, serviceName, filename string) error

func (*Service) DownloadBackup

func (s *Service) DownloadBackup(serviceType, serviceName, filename string) (*os.File, error)

func (*Service) GetBackup

func (s *Service) GetBackup(serviceType, serviceName, filename string) (*Backup, error)

func (*Service) GetBackups

func (s *Service) GetBackups(serviceType, serviceName string) ([]Backup, error)

func (*Service) GetService

func (s *Service) GetService(serviceType, serviceName string) util.Service

func (*Service) GetServices

func (s *Service) GetServices(serviceType, serviceName string) []util.Service

func (*Service) ReadBackup

func (s *Service) ReadBackup(serviceType, serviceName, filename string) (io.Reader, error)

func (*Service) Restore

func (s *Service) Restore(service util.Service, filename string) error

func (*Service) RetentionCleanup

func (s *Service) RetentionCleanup(service util.Service) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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