Documentation
¶
Index ¶
- Variables
- type Builder
- type Config
- type Logger
- type Storage
- func (s *Storage) GetFile(ctx context.Context, bucket, path string) (*storageModel.File, error)
- func (s *Storage) GetFileMetaData(ctx context.Context, bucket, path string) (*storageModel.FileMetaData, error)
- func (s *Storage) RemoveFile(ctx context.Context, bucket, path string) error
- func (s *Storage) Start(ctx context.Context) error
- func (s *Storage) UploadFile(ctx context.Context, file *storageModel.File) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrS3ConfigIsRequired = errors.NewError("SYS", "S3 config is required") ErrLoggerIsRequired = errors.NewError("SYS", "Logger is required") )
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder() *Builder
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) GetFileMetaData ¶
func (s *Storage) GetFileMetaData(ctx context.Context, bucket, path string) (*storageModel.FileMetaData, error)
func (*Storage) RemoveFile ¶
func (*Storage) UploadFile ¶
Click to show internal directories.
Click to hide internal directories.