Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultS3PathTransformer = func(path string) string {
return path
}
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Backup ¶
func (c *Client) Backup(directory, bucket string, transformer S3PathTransform) error
Backup simply backsup all the files present in the directory to the mentioned bucket in S3. It also applies path transformer to each fileentry when identifying the key under which it needs to be uploaded onto s3.
type S3PathTransform ¶
Click to show internal directories.
Click to hide internal directories.