Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Dump ¶
type Job ¶
type Job struct { Name string `yaml:"name"` DBDriver string `yaml:"dbdriver"` DBDsn string `yaml:"dbdsn"` Gzip bool `yaml:"gzip"` Unique bool `yaml:"unique"` SshHost string `yaml:"sshhost"` SshUser string `yaml:"sshuser"` SshKey string `yaml:"sshkey"` DumpOptions []string `yaml:"options"` Storage struct { Local []*local.Local `yaml:"local"` S3 []*s3.S3 `yaml:"s3"` GDrive []*gdrive.GDrive `yaml:"gdrive"` Dropbox []*dropbox.Dropbox `yaml:"dropbox"` } `yaml:"storage"` }
type MultiCloser ¶
type MultiCloser struct {
// contains filtered or unexported fields
}
func NewMultiCloser ¶
func NewMultiCloser(closers []io.Closer) *MultiCloser
func (*MultiCloser) Close ¶
func (m *MultiCloser) Close() error
type Option ¶
type Option func(job *Job)
func WithDumpOptions ¶
func WithSshHost ¶
func WithSshKey ¶
func WithSshUser ¶
Click to show internal directories.
Click to hide internal directories.