Documentation ¶
Index ¶
- func New(config *Config) flysystem.IAdapter
- type Config
- type FSKodo
- func (a *FSKodo) Copy(source, destination string) (bool, error)
- func (a *FSKodo) Delete(path string) (int64, error)
- func (a *FSKodo) DiskName() string
- func (a *FSKodo) Exists(path string) (bool, error)
- func (a *FSKodo) GFSAdapter() gfs.IAdapter
- func (a *FSKodo) MimeType(path string) (string, error)
- func (a *FSKodo) Move(source, destination string) (bool, error)
- func (a *FSKodo) Read(path string) ([]byte, error)
- func (a *FSKodo) Size(path string) (int64, error)
- func (a *FSKodo) URL(path string) (*url.URL, error)
- func (a *FSKodo) Update(path string, contents []byte) (string, error)
- func (a *FSKodo) UpdateStream(path, resource string) (string, error)
- func (a *FSKodo) Write(path string, contents []byte) (string, error)
- func (a *FSKodo) WriteReader(path string, reader io.Reader) (string, error)
- func (a *FSKodo) 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"` AccessKey string `json:"access_key" xml:"AccessKey" yaml:"AccessKey"` SecretKey string `json:"secret_key" xml:"SecretKey" yaml:"SecretKey"` Bucket string `json:"bucket" xml:"Bucket" yaml:"Bucket"` Policy *storage.PutPolicy `json:"policy" xml:"Policy" yaml:"Policy"` Config *storage.Config `json:"config" xml:"Config" yaml:"Config"` PathPrefix string `json:"path_prefix" xml:"PathPrefix" yaml:"PathPrefix"` }
type FSKodo ¶ added in v0.1.1
type FSKodo struct { gfs.AbstractAdapter Config *Config // contains filtered or unexported fields }
func (*FSKodo) GFSAdapter ¶ added in v0.3.0
func (*FSKodo) UpdateStream ¶ added in v0.1.1
func (*FSKodo) WriteReader ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.