Documentation ¶
Index ¶
- func New(client ClientAPI) filestorage.FileStorager
- type ClientAPI
- type Name
- type S3
- func (s *S3) Copy(from, to string) error
- func (s *S3) Delete(name string) error
- func (s *S3) Exists(name string) (bool, error)
- func (s *S3) Get(name string) ([]byte, error)
- func (s *S3) List(name string) ([]*filestorage.FileStats, error)
- func (s *S3) Save(name string, data []byte) error
- func (s *S3) Stats(name string) (*filestorage.FileStats, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(client ClientAPI) filestorage.FileStorager
Types ¶
type ClientAPI ¶
type ClientAPI interface { GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error) PutObject(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.Options)) (*s3.PutObjectOutput, error) CopyObject(ctx context.Context, params *s3.CopyObjectInput, optFns ...func(*s3.Options)) (*s3.CopyObjectOutput, error) DeleteObject(ctx context.Context, params *s3.DeleteObjectInput, optFns ...func(*s3.Options)) (*s3.DeleteObjectOutput, error) HeadObject(ctx context.Context, params *s3.HeadObjectInput, optFns ...func(*s3.Options)) (*s3.HeadObjectOutput, error) ListObjectsV2(ctx context.Context, params *s3.ListObjectsV2Input, optFns ...func(*s3.Options)) (*s3.ListObjectsV2Output, error) }
Click to show internal directories.
Click to hide internal directories.