Versions in this module Expand all Collapse all v1 v1.0.3 Jan 7, 2025 Changes in this version + var Info embed.FS + type CDN struct + Config *CDNConfig + 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.Reader, size int64) (err error) + type CDNConfig struct + AccessKeyID string + AccessKeySecret string + BucketName string + Endpoint string + MaxFileSize string + ObjectKeyPrefix string + VisitUrlPrefix string + type CustomFile struct + func (f *CustomFile) Close() error + func (f *CustomFile) Read(p []byte) (n int, err error)