Documentation ¶
Overview ¶
Package s3backupstorage implements the BackupStorage interface for AWS S3.
AWS access credentials are configured via standard AWS means, such as: - AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables - credentials file at ~/.aws/credentials - if running on an EC2 instance, an IAM role See details at http://blogs.aws.amazon.com/security/post/Tx3D6U6WSFGOK2H/A-New-and-Standardized-Way-to-Manage-Credentials-in-the-AWS-SDKs
Index ¶
- type S3BackupHandle
- func (bh *S3BackupHandle) AbortBackup() error
- func (bh *S3BackupHandle) AddFile(filename string) (io.WriteCloser, error)
- func (bh *S3BackupHandle) Directory() string
- func (bh *S3BackupHandle) EndBackup() error
- func (bh *S3BackupHandle) Name() string
- func (bh *S3BackupHandle) ReadFile(filename string) (io.ReadCloser, error)
- type S3BackupStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3BackupHandle ¶
type S3BackupHandle struct {
// contains filtered or unexported fields
}
func (*S3BackupHandle) AbortBackup ¶
func (bh *S3BackupHandle) AbortBackup() error
func (*S3BackupHandle) AddFile ¶
func (bh *S3BackupHandle) AddFile(filename string) (io.WriteCloser, error)
func (*S3BackupHandle) Directory ¶
func (bh *S3BackupHandle) Directory() string
func (*S3BackupHandle) EndBackup ¶
func (bh *S3BackupHandle) EndBackup() error
func (*S3BackupHandle) Name ¶
func (bh *S3BackupHandle) Name() string
func (*S3BackupHandle) ReadFile ¶
func (bh *S3BackupHandle) ReadFile(filename string) (io.ReadCloser, error)
type S3BackupStorage ¶
type S3BackupStorage struct {
// contains filtered or unexported fields
}
func (*S3BackupStorage) Close ¶
func (bs *S3BackupStorage) Close() error
func (*S3BackupStorage) ListBackups ¶
func (bs *S3BackupStorage) ListBackups(dir string) ([]backupstorage.BackupHandle, error)
func (*S3BackupStorage) RemoveBackup ¶
func (bs *S3BackupStorage) RemoveBackup(dir, name string) error
func (*S3BackupStorage) StartBackup ¶
func (bs *S3BackupStorage) StartBackup(dir, name string) (backupstorage.BackupHandle, error)
Click to show internal directories.
Click to hide internal directories.