Documentation
¶
Overview ¶
Package sdobjectstore 对象存储服务,用于存储文件(例如阿里云OSS)
Index ¶
Constants ¶
View Source
const ( DiscardTarget = TargetType(1) FileTarget = TargetType(2) HttpTarget = TargetType(3) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliyunOssOptions ¶
type AliyunOssOptions struct { Endpoint string `json:"endpoint" toml:"endpoint"` AccessKey string `json:"access_key" toml:"access_key"` AccessSecret string `json:"access_secret" toml:"access_secret"` Bucket string `json:"bucket" toml:"bucket"` Prefix string `json:"prefix" toml:"prefix"` InternalPrefix string `json:"internal_prefix" toml:"internal_prefix"` }
type Interface ¶
var (
Discard Interface = discard{}
)
func NewAliyunOSS ¶
func NewAliyunOSS(opts *AliyunOssOptions) (Interface, error)
type Options ¶
type Options struct { Type string `json:"type" toml:"type"` Root string `json:"root" toml:"root"` Endpoint string `json:"endpoint" toml:"endpoint"` AccessKey string `json:"access_key" toml:"access_key"` AccessSecret string `json:"access_secret" toml:"access_secret"` Bucket string `json:"bucket" toml:"bucket"` Prefix string `json:"prefix" toml:"prefix"` InternalPrefix string `json:"internal_prefix" toml:"internal_prefix"` }
type Source ¶
type Target ¶
type Target struct { Typ TargetType Prefix string InternalPrefix string Path string }
func (*Target) InternalUrl ¶
type TargetType ¶
type TargetType int
Click to show internal directories.
Click to hide internal directories.