Documentation
¶
Index ¶
- Variables
- func NewFileItem(name string, size int64, data io.ReadSeeker) iface.FileItem
- type Client
- func (r *Client) ListMediaItems(size int64, nextToken string) (string, []*MediaItem, error)
- func (r Client) UploadFile(ctx context.Context, fileInfo iface.FileItem) (string, error)
- func (r Client) UploadFilePart(ctx context.Context, fileInfo iface.FileItem) (string, error)
- func (r Client) UploadFileToLibrary(ctx context.Context, token string) (MediaItem, error)
- type MediaItem
- type MediaMetadata
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("media item not found") ErrServerFailed = errors.New("internal server error") )
Functions ¶
func NewFileItem ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ListMediaItems ¶
func (Client) UploadFile ¶
func (Client) UploadFilePart ¶
type MediaItem ¶
type MediaItem struct { ID string Description string ProductURL string BaseURL string MimeType string MediaMetadata MediaMetadata Filename string }
MediaItem represents of a media item (such as a photo or video) in Google Photos. See: https://developers.google.com/photos/library/reference/rest/v1/mediaItems
type MediaMetadata ¶
MediaMetadata represents metadata for a media item. See: https://developers.google.com/photos/library/reference/rest/v1/mediaItems
Click to show internal directories.
Click to hide internal directories.