Documentation ¶
Index ¶
- Constants
- type Addition
- type Error
- 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) 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 Items
- type MediaItem
- type MediaMetadata
- type Photo
- type TokenError
- type Video
Constants ¶
View Source
const ( FETCH_ALL = "all" FETCH_ALBUMS = "albums" FETCH_ROOT = "root" FETCH_SHARE_ALBUMS = "share_albums" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct { driver.RootID RefreshToken string `json:"refresh_token" required:"true"` ClientID string `json:"client_id" required:"true" default:"202264815644.apps.googleusercontent.com"` ClientSecret string `json:"client_secret" required:"true" default:"X4Z3ca8xfWDb1Voo-F9a7ZxJ"` ShowArchive bool `json:"show_archive"` }
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"` Title string `json:"title,omitempty"` BaseURL string `json:"baseUrl,omitempty"` CoverPhotoBaseUrl string `json:"coverPhotoBaseUrl,omitempty"` MimeType string `json:"mimeType,omitempty"` FileName string `json:"filename,omitempty"` MediaMetadata MediaMetadata `json:"mediaMetadata,omitempty"` }
type MediaMetadata ¶
type TokenError ¶
Click to show internal directories.
Click to hide internal directories.