Documentation ¶
Index ¶
- type File
- type Provider
- type S3Provider
- func (s S3Provider) GetType() string
- func (s S3Provider) List(ctx context.Context, prefix string) ([]File, error)
- func (s S3Provider) Remove(ctx context.Context, absolutePath string) error
- func (s S3Provider) Upload(ctx context.Context, finalFilePath string, reader io.ReadSeeker) error
- func (s S3Provider) Validate(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { Validate(ctx context.Context) error List(ctx context.Context, prefix string) ([]File, error) Remove(ctx context.Context, absolutePath string) error Upload(ctx context.Context, finalFilePath string, reader io.ReadSeeker) error GetType() string }
func NewS3Provider ¶
func NewS3Provider(cfg configuration.S3Config) Provider
type S3Provider ¶
type S3Provider struct {
// contains filtered or unexported fields
}
func (S3Provider) GetType ¶
func (s S3Provider) GetType() string
func (S3Provider) Remove ¶
func (s S3Provider) Remove(ctx context.Context, absolutePath string) error
func (S3Provider) Upload ¶
func (s S3Provider) Upload(ctx context.Context, finalFilePath string, reader io.ReadSeeker) error
Click to show internal directories.
Click to hide internal directories.