gDriveHelper

package
v0.0.0-...-2c1144f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

func CreateFolder(ctx context.Context, config auth.Config, name string) (*drive.File, error)

CreateFolder creates a new folder in Google Drive.

func DeleteFileOrFolder

func DeleteFileOrFolder(ctx context.Context, config auth.Config, folderFileID string) error

DeleteFolder deletes a file or folder from Google Drive.

func RemoveFolderPermission

func RemoveFolderPermission(ctx context.Context, config auth.Config, folderID, email string) error

RemoveFolderPermission removes a permission from a folder for a specific user.

func RenameFolder

func RenameFolder(ctx context.Context, config auth.Config, folderID, newName string) error

RenameFolder renames a folder in Google Drive.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL