Documentation ¶
Index ¶
- Constants
- type S3ObjectStoreDriver
- func (s *S3ObjectStoreDriver) Download(src, dst string) error
- func (s *S3ObjectStoreDriver) FileExists(filePath string) bool
- func (s *S3ObjectStoreDriver) FileSize(filePath string) int64
- func (s *S3ObjectStoreDriver) GetURL() string
- func (s *S3ObjectStoreDriver) Kind() string
- func (s *S3ObjectStoreDriver) List(listPath string) ([]string, error)
- func (s *S3ObjectStoreDriver) Read(src string) (io.ReadCloser, error)
- func (s *S3ObjectStoreDriver) Remove(names ...string) error
- func (s *S3ObjectStoreDriver) Upload(src, dst string) error
- func (s *S3ObjectStoreDriver) Write(dst string, rs io.ReadSeeker) error
- type S3Service
- func (s *S3Service) Close()
- func (s *S3Service) DeleteObjects(keys []string) error
- func (s *S3Service) GetObject(key string) (io.ReadCloser, error)
- func (s *S3Service) HeadObject(key string) (*s3.HeadObjectOutput, error)
- func (s *S3Service) ListObjects(key, delimiter string) ([]*s3.Object, []*s3.CommonPrefix, error)
- func (s *S3Service) New() (*s3.S3, error)
- func (s *S3Service) 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 S3ObjectStoreDriver ¶
type S3ObjectStoreDriver struct {
// contains filtered or unexported fields
}
func (*S3ObjectStoreDriver) Download ¶
func (s *S3ObjectStoreDriver) Download(src, dst string) error
func (*S3ObjectStoreDriver) FileExists ¶
func (s *S3ObjectStoreDriver) FileExists(filePath string) bool
func (*S3ObjectStoreDriver) FileSize ¶
func (s *S3ObjectStoreDriver) FileSize(filePath string) int64
func (*S3ObjectStoreDriver) GetURL ¶
func (s *S3ObjectStoreDriver) GetURL() string
func (*S3ObjectStoreDriver) Kind ¶
func (s *S3ObjectStoreDriver) Kind() string
func (*S3ObjectStoreDriver) List ¶
func (s *S3ObjectStoreDriver) List(listPath string) ([]string, error)
func (*S3ObjectStoreDriver) Read ¶
func (s *S3ObjectStoreDriver) Read(src string) (io.ReadCloser, error)
func (*S3ObjectStoreDriver) Remove ¶
func (s *S3ObjectStoreDriver) Remove(names ...string) error
func (*S3ObjectStoreDriver) Upload ¶
func (s *S3ObjectStoreDriver) Upload(src, dst string) error
func (*S3ObjectStoreDriver) Write ¶
func (s *S3ObjectStoreDriver) Write(dst string, rs io.ReadSeeker) error
type S3Service ¶
func (*S3Service) DeleteObjects ¶
func (*S3Service) HeadObject ¶
func (s *S3Service) HeadObject(key string) (*s3.HeadObjectOutput, error)
func (*S3Service) ListObjects ¶
Click to show internal directories.
Click to hide internal directories.