Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type YandexObjStorage
- func (y *YandexObjStorage) GetCLink(path string) (cLink string)
- func (y *YandexObjStorage) GetURL(cLink string, options ...interface{}) string
- func (y *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)
- type YandexOption
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") )
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.4.0
func (y *YandexObjStorage) GetCLink(path string) (cLink string)
func (*YandexObjStorage) GetURL ¶
func (y *YandexObjStorage) GetURL(cLink string, options ...interface{}) string
func (*YandexObjStorage) Remove ¶
func (y *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)
type YandexOption ¶
type YandexOption int
const ( PublicLink YandexOption = iota + 1 LinkForPutObject )
Click to show internal directories.
Click to hide internal directories.