gdrive

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DriveFile added in v0.0.3

type DriveFile struct {
	Remote     *drive.File
	Descriptor *os.File
	Path       string
	Size       int64
}

type DriveService

type DriveService struct {
	// contains filtered or unexported fields
}

func NewDriveService

func NewDriveService(conf *config.Configuration, logger logging.Logger) (*DriveService, error)

func (*DriveService) DownloadFile

func (ds *DriveService) DownloadFile(driveFile *DriveFile) error

func (*DriveService) GetFiles added in v0.0.3

func (s *DriveService) GetFiles(folder *drive.File) ([]*DriveFile, error)

func (*DriveService) GetFolder added in v0.0.3

func (s *DriveService) GetFolder(folderId string) (*drive.File, error)

Jump to

Keyboard shortcuts

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