Documentation
¶
Index ¶
- func Init(r2config R2Config) (store.Store, error)
- type R2
- func (r *R2) Copy(srcKey string, destKey string) error
- func (r *R2) Delete(key string) error
- func (r *R2) Exists(key string) (bool, error)
- func (r2 *R2) Get(key string) (io.ReadCloser, error)
- func (r2 *R2) Put(key string, r io.Reader, dataLength int64) error
- func (r *R2) PutFile(key string, localFile string) error
- func (r *R2) Rename(srcKey string, destKey string) error
- func (r *R2) Size(key string) (int64, error)
- func (r *R2) Url(key string) string
- type R2Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type R2 ¶
type R2 struct {
// contains filtered or unexported fields
}
type R2Config ¶
type R2Config struct { AccountId string `mapstructure:"account_id" json:"account_id" yaml:"account_id"` AccessKey string `mapstructure:"access_key" json:"access_key" yaml:"access_key"` SecretKey string `mapstructure:"secret_key" json:"secret_key" yaml:"secret_key"` Bucket string `mapstructure:"bucket" json:"bucket" yaml:"bucket"` }
Click to show internal directories.
Click to hide internal directories.