Documentation ¶
Index ¶
- Variables
- type CDN
- func (c *CDN) CheckFileType(filePath string) bool
- func (c *CDN) ConfigFields() []plugin.ConfigField
- func (c *CDN) ConfigReceiver(config []byte) error
- func (c *CDN) GetStaticPrefix() string
- func (c *CDN) Info() plugin.Info
- func (c *CDN) Upload(filePath string, file io.ReadSeeker, size int64) (err error)
- type CDNConfig
- type Client
Constants ¶
This section is empty.
Variables ¶
View Source
var Info embed.FS
Functions ¶
This section is empty.
Types ¶
type CDN ¶
func (*CDN) CheckFileType ¶
func (*CDN) ConfigFields ¶
func (c *CDN) ConfigFields() []plugin.ConfigField
func (*CDN) ConfigReceiver ¶
func (*CDN) GetStaticPrefix ¶
GetStaticPrefix get static prefix
type CDNConfig ¶
type CDNConfig 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.