Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type YandexObjStorage
- func (y *YandexObjStorage) GetCLink(path string) (cLink string)
- func (y *YandexObjStorage) GetURL(cLink string, options ...interface{}) (URL string)
- func (b *YandexObjStorage) Remove(cLink string) (err error)
- func (y *YandexObjStorage) Store(filePath, path string) (cLink string, err error)
- func (y *YandexObjStorage) StoreByCLink(filePath, cLink string) (err error)
Constants ¶
View Source
const ( SchemeHTTPWithSSL = "https" SchemeHTTPWithoutSSL = "http" )
Variables ¶
View Source
var ( ErrStorageKeyNotMatch = errors.New("Storage Key did not match!") ErrMethodNotImplemented = errors.New("Method is not implemented") )
View Source
var Instance = &YandexObjStorage{}
Functions ¶
This section is empty.
Types ¶
type YandexObjStorage ¶
type YandexObjStorage struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfg *Config) *YandexObjStorage
func (*YandexObjStorage) GetCLink ¶ added in v1.3.0
func (y *YandexObjStorage) GetCLink(path string) (cLink string)
func (*YandexObjStorage) GetURL ¶
func (y *YandexObjStorage) GetURL(cLink string, options ...interface{}) (URL string)
func (*YandexObjStorage) Remove ¶
func (b *YandexObjStorage) Remove(cLink string) (err error)
func (*YandexObjStorage) Store ¶
func (y *YandexObjStorage) Store(filePath, path string) (cLink string, err error)
func (*YandexObjStorage) StoreByCLink ¶ added in v1.4.0
func (y *YandexObjStorage) StoreByCLink(filePath, cLink string) (err error)
Click to show internal directories.
Click to hide internal directories.