Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIDRecursive ¶
GetIDRecursive navigates up the directory tree
Types ¶
type FilesCreateCall ¶
type FilesCreateCall interface { Do(opts ...googleapi.CallOption) (*drive.File, error) Fields(s ...googleapi.Field) FilesCreateCall Media(r io.Reader, options ...googleapi.MediaOption) FilesCreateCall }
type FilesGetCall ¶
type FilesGetCall interface {
Download(opts ...googleapi.CallOption) (*http.Response, error)
}
type FilesListCall ¶
type FilesListCall interface { Spaces(spaces string) FilesListCall PageSize(pageSize int64) FilesListCall Q(q string) FilesListCall Fields(s ...googleapi.Field) FilesListCall Do(opts ...googleapi.CallOption) (*drive.FileList, error) }
type FilesService ¶
type FilesService interface { //Copy(string, *drive.File) *drive.FilesCopyCall Create(*drive.File) FilesCreateCall //Delete(string) *drive.FilesDeleteCall //EmptyTrash() *drive.FilesEmptyTrashCall //Export(string, string) *drive.FilesExportCall //GenerateIds() *drive.FilesGenerateIdsCall Get(string) FilesGetCall List() FilesListCall }
type ReadOnlyStore ¶
type Service ¶
type Service struct {
Files FilesService
}
type SimpleFileStore ¶
type SimpleFileStore interface { Create(path string, contents io.Reader) error Read(path string, contents io.Writer) error Update(path string, contents io.Reader) error Delete(path string) error List(path string) ([]File, error) TestPath(path string) (bool, error) }
SimpleFileStore is a simplied interface over a file store
func NewClient ¶
func NewClient() SimpleFileStore
NewClient runs the outh flow if necessary and builds an authenticated Google Drive client
Click to show internal directories.
Click to hide internal directories.