Documentation ¶
Index ¶
- type Storage
- func (s *Storage) CheckFileType(originalFilename string, source plugin.UploadSource) bool
- func (s *Storage) ConfigFields() []plugin.ConfigField
- func (s *Storage) ConfigReceiver(config []byte) error
- func (s *Storage) Info() plugin.Info
- func (s *Storage) UploadFile(ctx *plugin.GinContext, source plugin.UploadSource) (resp plugin.UploadFileResponse)
- type StorageConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
Config *StorageConfig
}
func (*Storage) CheckFileType ¶
func (s *Storage) CheckFileType(originalFilename string, source plugin.UploadSource) bool
func (*Storage) ConfigFields ¶
func (s *Storage) ConfigFields() []plugin.ConfigField
func (*Storage) ConfigReceiver ¶
func (*Storage) UploadFile ¶
func (s *Storage) UploadFile(ctx *plugin.GinContext, source plugin.UploadSource) (resp plugin.UploadFileResponse)
type StorageConfig ¶
type StorageConfig struct { Endpoint string `json:"endpoint"` BucketName string `json:"bucket_name"` ObjectKeyPrefix string `json:"object_key_prefix"` AccessKeyID string `json:"access_key_id"` AccessKeySecret string `json:"access_key_secret"` VisitUrlPrefix string `json:"visit_url_prefix"` MaxFileSize string `json:"max_file_size"` }
Click to show internal directories.
Click to hide internal directories.