Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Info embed.FS
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct { Config *StorageConfig Client *Client }
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"` AccessToken string `json:"access_token"` VisitUrlPrefix string `json:"visit_url_prefix"` MaxFileSize string `json:"max_file_size"` Region string `json:"region"` DisableSSL bool `json:"disable_ssl"` }
Click to show internal directories.
Click to hide internal directories.