Documentation ¶
Index ¶
Constants ¶
View Source
const (
MIMETypeFolder = "application/vnd.google-apps.folder"
)
Variables ¶
This section is empty.
Functions ¶
func NewServiceFromOauth2 ¶
Types ¶
type GdriveStorage ¶
type GdriveStorage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func NewStorage(root string, svc *drive.Service) (*GdriveStorage, error)
func (*GdriveStorage) Download ¶
func (drive *GdriveStorage) Download(w io.Writer, path string) error
func (*GdriveStorage) IsDownloadable ¶
func (drive *GdriveStorage) IsDownloadable(path string) (bool, error)
func (*GdriveStorage) List ¶
func (drive *GdriveStorage) List(path string) ([]storage.StorageEntry, error)
Click to show internal directories.
Click to hide internal directories.