Documentation
¶
Overview ¶
Package source finds and downloads backups from S3-compatible storage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client reads backups from one source.
func New ¶
New returns a client. Problems with the configuration are reported by Latest, so they end up in the job's result.
type Config ¶
type Config struct {
ID string
Endpoint string
Region string
Bucket string
Prefix string
// Pattern is a glob matched against the file name, such as "*.dump.gz". Empty matches every file.
Pattern string
// ObjectKey tests this exact backup instead of the newest one.
ObjectKey string
AccessKey config.Secret
SecretKey config.Secret
}
Config describes where a source keeps its backups.