Documentation ¶
Index ¶
- Constants
- type BackupStoreDriver
- func (s *BackupStoreDriver) Download(src, dst string) error
- func (s *BackupStoreDriver) FileExists(filePath string) bool
- func (s *BackupStoreDriver) FileSize(filePath string) int64
- func (s *BackupStoreDriver) GetURL() string
- func (s *BackupStoreDriver) Kind() string
- func (s *BackupStoreDriver) List(listPath string) ([]string, error)
- func (s *BackupStoreDriver) Read(src string) (io.ReadCloser, error)
- func (s *BackupStoreDriver) Remove(names ...string) error
- func (s *BackupStoreDriver) Upload(src, dst string) error
- func (s *BackupStoreDriver) Write(dst string, rs io.ReadSeeker) error
- type Service
- func (s *Service) Close()
- func (s *Service) DeleteObjects(keys []string) error
- func (s *Service) GetObject(key string) (io.ReadCloser, error)
- func (s *Service) HeadObject(key string) (*s3.HeadObjectOutput, error)
- func (s *Service) ListObjects(key, delimiter string) ([]*s3.Object, []*s3.CommonPrefix, error)
- func (s *Service) New() (*s3.S3, error)
- func (s *Service) PutObject(key string, reader io.ReadSeeker) error
Constants ¶
View Source
const (
KIND = "s3"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupStoreDriver ¶
type BackupStoreDriver struct {
// contains filtered or unexported fields
}
func (*BackupStoreDriver) Download ¶
func (s *BackupStoreDriver) Download(src, dst string) error
func (*BackupStoreDriver) FileExists ¶
func (s *BackupStoreDriver) FileExists(filePath string) bool
func (*BackupStoreDriver) FileSize ¶
func (s *BackupStoreDriver) FileSize(filePath string) int64
func (*BackupStoreDriver) GetURL ¶
func (s *BackupStoreDriver) GetURL() string
func (*BackupStoreDriver) Kind ¶
func (s *BackupStoreDriver) Kind() string
func (*BackupStoreDriver) List ¶
func (s *BackupStoreDriver) List(listPath string) ([]string, error)
func (*BackupStoreDriver) Read ¶
func (s *BackupStoreDriver) Read(src string) (io.ReadCloser, error)
func (*BackupStoreDriver) Remove ¶
func (s *BackupStoreDriver) Remove(names ...string) error
func (*BackupStoreDriver) Upload ¶
func (s *BackupStoreDriver) Upload(src, dst string) error
func (*BackupStoreDriver) Write ¶
func (s *BackupStoreDriver) Write(dst string, rs io.ReadSeeker) error
type Service ¶
func (*Service) DeleteObjects ¶
func (*Service) HeadObject ¶
func (s *Service) HeadObject(key string) (*s3.HeadObjectOutput, error)
func (*Service) ListObjects ¶
Click to show internal directories.
Click to hide internal directories.