Versions in this module Expand all Collapse all v0 v0.0.1 Apr 20, 2023 Changes in this version + func GetOrCreateDirectory(ctx context.Context, client *drive.Service, dirName string, parentID string) (*drive.File, error) + func GetOrCreateFile(ctx context.Context, svc *GoogleDriveService, fileName string, media io.Reader, ...) (*drive.File, error) + type Compession int + const GZipCompression + const NoCompression + const ZipCompression + type GoogleDriveService struct + func NewGoogleDriveService(client *http.Client, compression ...Compession) *GoogleDriveService + func (svc *GoogleDriveService) CreateDirArchive(dirname string, paths []string) (archive string, err error) + func (svc *GoogleDriveService) CreateFileArchive(localPath string) (archive string, err error) + func (svc *GoogleDriveService) MkdirAll(dirPath string, gdriveParentId string) (dirmap map[string]string, dirId string, err error) + func (svc *GoogleDriveService) UploadDirectory(dirname string, drivePath string) (driveFiles []*drive.File, err error) + func (svc *GoogleDriveService) UploadFile(localPath string, fileInfo fs.FileInfo, drivePath string) (*drive.File, error)