googleapis

package
v0.0.0-...-56fa2b3 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DriveClient

type DriveClient struct {
	*drive.Service
}

DriveClient hg

func GetService

func GetService() *DriveClient

func (*DriveClient) CreateFile

func (srv *DriveClient) CreateFile(folderID string, file *multipart.FileHeader) (models.File, error)

CreateFile Creates a file in google drive and return the file id and filename

func (*DriveClient) CreateFolder

func (srv *DriveClient) CreateFolder(folderName string) (string, error)

CreateFolder Creates a folder in google drive

func (*DriveClient) DeleteFile

func (srv *DriveClient) DeleteFile(fileID string) error

DeleteFile deletes

Jump to

Keyboard shortcuts

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