Documentation ¶
Overview ¶
Package googledrive provides an abstraction layer over the Google Drive API. It simplifies creating and uploading files to Google Drive by wrapping the complex API calls into more manageable functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // CreateFolder creates a new folder in Google Drive. // folderName is the name of the new folder. parentFolders is an optional list of // parent folder IDs where the new folder will be created. // Returns the ID of the created folder or an error if the operation fails. CreateFolder(folderName string, parentFolders ...string) (string, error) // UploadFile uploads a file to Google Drive. // file is a pointer to the os.File object to be uploaded. parentFolders is an // optional list of parent folder IDs where the file will be uploaded. // Returns the ID of the uploaded file or an error if the operation fails. UploadFile(file *os.File, parentFolders ...string) (string, error) }
Client defines the interface for interacting with Google Drive. It abstracts the functionality for creating folders and uploading files.
Click to show internal directories.
Click to hide internal directories.