Documentation ¶
Index ¶
- func New(config *Config) flysystem.IAdapter
- type Config
- type FSBos
- func (a *FSBos) Copy(source, destination string) (bool, error)
- func (a *FSBos) Delete(path string) (int64, error)
- func (a *FSBos) DiskName() string
- func (a *FSBos) Exists(path string) (bool, error)
- func (a *FSBos) GFSAdapter() gfs.IAdapter
- func (a *FSBos) MimeType(path string) (string, error)
- func (a *FSBos) Move(source, destination string) (bool, error)
- func (a *FSBos) Read(path string) ([]byte, error)
- func (a *FSBos) Size(path string) (int64, error)
- func (a *FSBos) URL(path string) (*url.URL, error)
- func (a *FSBos) Update(path string, contents []byte) (string, error)
- func (a *FSBos) UpdateStream(path, resource string) (string, error)
- func (a *FSBos) Write(path string, contents []byte) (string, error)
- func (a *FSBos) WriteReader(path string, reader io.Reader) (string, error)
- func (a *FSBos) WriteStream(path, resource string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { CDN string `json:"cdn" xml:"CDN" yaml:"CDN"` Ak string `json:"ak" xml:"Ak" yaml:"Ak"` Sk string `json:"sk" xml:"Sk" yaml:"Sk"` //https://cloud.baidu.com/doc/BOS/s/Ojwvyrpgd Endpoint string `json:"endpoint" xml:"Endpoint" yaml:"Endpoint"` RedirectDisabled bool `json:"redirect_disabled" xml:"RedirectDisabled" yaml:"RedirectDisabled"` Bucket string `json:"bucket" xml:"Bucket" yaml:"Bucket"` PathPrefix string `json:"path_prefix" xml:"PathPrefix" yaml:"PathPrefix"` }
type FSBos ¶ added in v0.1.1
type FSBos struct { gfs.AbstractAdapter Config *Config // contains filtered or unexported fields }
func (*FSBos) GFSAdapter ¶ added in v0.3.0
func (*FSBos) UpdateStream ¶ added in v0.1.1
func (*FSBos) WriteReader ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.