Documentation ¶
Index ¶
- func AddFolderPermission(ctx context.Context, config auth.Config, folderID, email, role string) error
- func CopyFileToFolder(ctx context.Context, config auth.Config, fileID, folderID string) (*drive.File, error)
- func CreateFolder(ctx context.Context, config auth.Config, name string) (*drive.File, error)
- func DeleteFileOrFolder(ctx context.Context, config auth.Config, folderFileID string) error
- func RemoveFolderPermission(ctx context.Context, config auth.Config, folderID, email string) error
- func RenameFolder(ctx context.Context, config auth.Config, folderID, newName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFolderPermission ¶
func AddFolderPermission(ctx context.Context, config auth.Config, folderID, email, role string) error
AddFolderPermission adds permissions to the folder for a specific email.
func CopyFileToFolder ¶
func CopyFileToFolder(ctx context.Context, config auth.Config, fileID, folderID string) (*drive.File, error)
CopyFileToFolder copies a file to the specified folder.
func CreateFolder ¶
CreateFolder creates a new folder in Google Drive.
func DeleteFileOrFolder ¶
DeleteFolder deletes a file or folder from Google Drive.
func RemoveFolderPermission ¶
RemoveFolderPermission removes a permission from a folder for a specific user.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.