Documentation ¶
Index ¶
- func GetProviders() []string
- type COSProvider
- type Config
- type Constructor
- type KODOProvider
- type MINIOProvider
- type MockProvider
- func (m *MockProvider) ObjectDelete(key string) error
- func (m *MockProvider) ObjectsDelete(keys []string) error
- func (m *MockProvider) PublicURL(key string) (url string)
- func (m *MockProvider) SetupCORS() error
- func (m *MockProvider) SignedGetURL(key, filename string) (url string, err error)
- func (m *MockProvider) SignedPutURL(key, filetype string, public bool) (url string, headers http.Header, err error)
- type NOSProvider
- type OBSProvider
- type OSSProvider
- type Provider
- func New(conf Config) (Provider, error)
- func NewCOSProvider(conf Config) (Provider, error)
- func NewKODOProvider(conf Config) (Provider, error)
- func NewMINIOProvider(conf Config) (Provider, error)
- func NewNOSProvider(conf Config) (Provider, error)
- func NewOBSProvider(conf Config) (Provider, error)
- func NewOSSProvider(conf Config) (Provider, error)
- func NewS3Provider(conf Config) (Provider, error)
- func NewUS3Provider(conf Config) (Provider, error)
- func NewUSSProvider(conf Config) (Provider, error)
- type S3Provider
- func (p *S3Provider) ObjectDelete(key string) error
- func (p *S3Provider) ObjectsDelete(objectKeys []string) error
- func (p *S3Provider) PublicURL(key string) string
- func (p *S3Provider) SetupCORS() error
- func (p *S3Provider) SignedGetURL(key, filename string) (string, error)
- func (p *S3Provider) SignedPutURL(key, filetype string, public bool) (string, http.Header, error)
- type US3Provider
- type USSProvider
- func (p *USSProvider) ObjectDelete(key string) error
- func (p *USSProvider) ObjectsDelete(keys []string) error
- func (p *USSProvider) PublicURL(key string) (url string)
- func (p *USSProvider) SetupCORS() error
- func (p *USSProvider) SignedGetURL(key, filename string) (url string, err error)
- func (p *USSProvider) SignedPutURL(key, filetype string, public bool) (url string, headers http.Header, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProviders ¶
func GetProviders() []string
Types ¶
type COSProvider ¶
type COSProvider struct { S3Provider // contains filtered or unexported fields }
腾讯云
func (*COSProvider) SetupCORS ¶
func (p *COSProvider) SetupCORS() error
type Constructor ¶
type KODOProvider ¶
type KODOProvider struct { S3Provider // contains filtered or unexported fields }
七牛云
func (*KODOProvider) SetupCORS ¶
func (p *KODOProvider) SetupCORS() error
type MINIOProvider ¶
type MINIOProvider struct { S3Provider // contains filtered or unexported fields }
MinIO
func (*MINIOProvider) SetupCORS ¶
func (p *MINIOProvider) SetupCORS() error
type MockProvider ¶
type MockProvider struct { }
func (*MockProvider) ObjectDelete ¶
func (m *MockProvider) ObjectDelete(key string) error
func (*MockProvider) ObjectsDelete ¶
func (m *MockProvider) ObjectsDelete(keys []string) error
func (*MockProvider) PublicURL ¶
func (m *MockProvider) PublicURL(key string) (url string)
func (*MockProvider) SetupCORS ¶
func (m *MockProvider) SetupCORS() error
func (*MockProvider) SignedGetURL ¶
func (m *MockProvider) SignedGetURL(key, filename string) (url string, err error)
func (*MockProvider) SignedPutURL ¶
type NOSProvider ¶
type NOSProvider struct { S3Provider // contains filtered or unexported fields }
网易云
func (*NOSProvider) SetupCORS ¶
func (p *NOSProvider) SetupCORS() error
type OBSProvider ¶
type OBSProvider struct { S3Provider // contains filtered or unexported fields }
华为云
func (*OBSProvider) SetupCORS ¶
func (p *OBSProvider) SetupCORS() error
type OSSProvider ¶
type OSSProvider struct { S3Provider // contains filtered or unexported fields }
阿里云
func (*OSSProvider) SetupCORS ¶
func (p *OSSProvider) SetupCORS() error
type Provider ¶
type Provider interface { SetupCORS() error SignedPutURL(key, filetype string, public bool) (url string, headers http.Header, err error) SignedGetURL(key, filename string) (url string, err error) PublicURL(key string) (url string) ObjectDelete(key string) error ObjectsDelete(keys []string) error }
func NewCOSProvider ¶
func NewKODOProvider ¶
func NewMINIOProvider ¶
func NewNOSProvider ¶
func NewOBSProvider ¶
func NewOSSProvider ¶
func NewS3Provider ¶
func NewUS3Provider ¶
func NewUSSProvider ¶
type S3Provider ¶
type S3Provider struct {
// contains filtered or unexported fields
}
func (*S3Provider) ObjectDelete ¶
func (p *S3Provider) ObjectDelete(key string) error
func (*S3Provider) ObjectsDelete ¶
func (p *S3Provider) ObjectsDelete(objectKeys []string) error
func (*S3Provider) PublicURL ¶
func (p *S3Provider) PublicURL(key string) string
func (*S3Provider) SetupCORS ¶
func (p *S3Provider) SetupCORS() error
func (*S3Provider) SignedGetURL ¶
func (p *S3Provider) SignedGetURL(key, filename string) (string, error)
func (*S3Provider) SignedPutURL ¶
type US3Provider ¶
type US3Provider struct { S3Provider // contains filtered or unexported fields }
UCloud
func (*US3Provider) SetupCORS ¶
func (p *US3Provider) SetupCORS() error
type USSProvider ¶
type USSProvider struct {
// contains filtered or unexported fields
}
又拍云
func (*USSProvider) ObjectDelete ¶
func (p *USSProvider) ObjectDelete(key string) error
func (*USSProvider) ObjectsDelete ¶
func (p *USSProvider) ObjectsDelete(keys []string) error
func (*USSProvider) PublicURL ¶
func (p *USSProvider) PublicURL(key string) (url string)
func (*USSProvider) SetupCORS ¶
func (p *USSProvider) SetupCORS() error
func (*USSProvider) SignedGetURL ¶
func (p *USSProvider) SignedGetURL(key, filename string) (url string, err error)
func (*USSProvider) SignedPutURL ¶
Click to show internal directories.
Click to hide internal directories.