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 + Client *Client + 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.ReadSeeker, size int64) (err error) + type CDNConfig struct + AccessKeyID string + AccessKeySecret string + AccessToken string + BucketName string + DisableSSL bool + Endpoint string + MaxFileSize string + ObjectKeyPrefix string + Region string + VisitUrlPrefix string + type Client struct + func NewS3Client(id, secret, token, endpoint, region, bucket string, disableSSL bool) *Client + func (s *Client) PutObject(key, ext string, file io.ReadSeeker) (err error)