Documentation ¶
Index ¶
- type Azure
- func (a *Azure) GetObject(ctx context.Context, name string) (io.ReadCloser, error)
- func (a *Azure) GetPrefix() string
- func (a *Azure) ListObjects(ctx context.Context, prefix string) ([]string, error)
- func (a *Azure) PutObject(ctx context.Context, name string, data io.Reader, _ int64) error
- func (a *Azure) SetPrefix(prefix string)
- type S3
- func (s *S3) GetObject(ctx context.Context, objectName string) (io.ReadCloser, error)
- func (s *S3) GetPrefix() string
- func (s *S3) ListObjects(ctx context.Context, prefix string) ([]string, error)
- func (s *S3) PutObject(ctx context.Context, name string, data io.Reader, size int64) error
- func (s *S3) SetPrefix(prefix string)
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Azure ¶ added in v1.12.0
type Azure struct {
// contains filtered or unexported fields
}
Azure is a type for working with Azure Blob storages
func (*Azure) ListObjects ¶ added in v1.12.0
type S3 ¶
type S3 struct {
// contains filtered or unexported fields
}
S3 is a type for working with S3 storages
func NewS3 ¶
func NewS3(endpoint, accessKeyID, secretAccessKey, bucketName, prefix, region string, verifyTLS bool) (*S3, error)
NewS3 return new Manager, useSSL using ssl for connection with storage
func (*S3) ListObjects ¶
Click to show internal directories.
Click to hide internal directories.