Documentation ¶
Index ¶
- func IsValidServiceType(serviceType string) bool
- type Backup
- type CFService
- type File
- type Retention
- type Service
- func (s *Service) Backup(service CFService) error
- func (s *Service) BackupExists(serviceType, serviceName, filename string) bool
- func (s *Service) DeleteBackup(serviceType, serviceName, filename string) error
- func (s *Service) DownloadBackup(serviceType, serviceName, filename string) (*os.File, error)
- func (s *Service) GetBackup(serviceType, serviceName, filename string) (*Backup, error)
- func (s *Service) GetBackups(serviceType, serviceName string) ([]Backup, error)
- func (s *Service) GetService(serviceType, serviceName string) CFService
- func (s *Service) GetServices(serviceType, serviceName string) []CFService
- func (s *Service) ReadBackup(serviceType, serviceName, filename string) (io.Reader, error)
- func (s *Service) Restore(service CFService, filename string) error
- func (s *Service) RetentionCleanup(service CFService) error
- type ServiceType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidServiceType ¶
Types ¶
type CFService ¶
type CFService struct { Name string Label string Plan string Tags []string Timeout time.Duration Schedule string Retention Retention }
func (*CFService) Type ¶
func (cf *CFService) Type() ServiceType
type Service ¶
Service is used interact with services and dump/restore backups
func (*Service) BackupExists ¶
func (*Service) DeleteBackup ¶
func (*Service) DownloadBackup ¶
func (*Service) GetBackups ¶
func (*Service) GetService ¶
func (*Service) GetServices ¶
func (*Service) ReadBackup ¶
func (*Service) RetentionCleanup ¶
type ServiceType ¶
type ServiceType int
const ( Postgres ServiceType = iota MySQL MongoDB )
func ParseServiceType ¶
func ParseServiceType(serviceType string) ServiceType
func (ServiceType) String ¶
func (s ServiceType) String() string
Click to show internal directories.
Click to hide internal directories.