Categorygithub.com/Eun/gdriver
modulepackage
0.0.0-20230613142936-5ce02438cd0d
Repository: https://github.com/eun/gdriver.git
Documentation: pkg.go.dev

# README

GDriver

A golang implementation to access google drive by using traditional file-folder-path pattern.

    f, _ := os.Open("image1.jpeg")
    gdrive.PutFile("Holidays/image1.jpeg", f)
    gdrive.Delete("Pictures/Old Apartment Images")

Example

# Packages

No description provided by the author
No description provided by the author

# Functions

IsExist returns true if the error is an FileExistError.
IsNotExist returns true if the error is an FileNotExistError.
New creates a new Google Drive Driver, client must me an authenticated instance for google drive.
RootDirectory sets the root directory for all operations.

# Constants

HashMethodMD5 sets the method to MD5.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

CallbackError will be returned if the callback returned an error.
FileExistError will be thrown if an file exists.
FileInfo represents file information for a file or directory.
FileIsDirectoryError will be thrown if a file is a directory.
FileIsNotDirectoryError will be thrown if a file is not a directory.
FileNotExistError will be thrown if an file was not found.
GDriver can be used to access google drive in a traditional file-folder-path pattern.

# Interfaces

No description provided by the author

# Type aliases

HashMethod is the hashing method to use for GetFileHash.
No description provided by the author
Option can be used to pass optional Options to GDriver.