Documentation
¶
Index ¶
- func New() driver.Driver
- type Addition
- type Error
- type Files
- type GooglePhoto
- func (d *GooglePhoto) Config() driver.Config
- func (d *GooglePhoto) Copy(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *GooglePhoto) Drop(ctx context.Context) error
- func (d *GooglePhoto) GetAddition() driver.Additional
- func (d *GooglePhoto) Init(ctx context.Context, storage model.Storage) error
- func (d *GooglePhoto) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *GooglePhoto) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *GooglePhoto) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error
- func (d *GooglePhoto) Move(ctx context.Context, srcObj, dstDir model.Obj) error
- func (d *GooglePhoto) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) error
- func (d *GooglePhoto) Remove(ctx context.Context, obj model.Obj) error
- func (d *GooglePhoto) Rename(ctx context.Context, srcObj model.Obj, newName string) error
- type MediaItem
- type MediaMetadata
- type Photo
- type TokenError
- type Video
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GooglePhoto ¶
func (*GooglePhoto) Config ¶
func (d *GooglePhoto) Config() driver.Config
func (*GooglePhoto) GetAddition ¶
func (d *GooglePhoto) GetAddition() driver.Additional
func (*GooglePhoto) Put ¶
func (d *GooglePhoto) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, up driver.UpdateProgress) error
type MediaItem ¶
type MediaItem struct {
Id string `json:"id"`
BaseURL string `json:"baseUrl"`
MimeType string `json:"mimeType"`
FileName string `json:"filename"`
MediaMetadata MediaMetadata `json:"mediaMetadata"`
}
type MediaMetadata ¶
type TokenError ¶
Click to show internal directories.
Click to hide internal directories.