driveext

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureFolder

func EnsureFolder(driveService *drive.Service, folderID string) error

func NewService

func NewService() (*drive.Service, error)

Types

type DriveFile

type DriveFile struct {
	Path string
	*drive.File
}

func (*DriveFile) String

func (df *DriveFile) String() string

type DriveFiles

type DriveFiles []*DriveFile

func ListFiles

func ListFiles(driveService *drive.Service, folderID string) (DriveFiles, error)

func (DriveFiles) String

func (files DriveFiles) String() []string

type FileState

type FileState struct {
	File      *DriveFile
	LocalPath string
	// contains filtered or unexported fields
}

func EvaluateFileState

func EvaluateFileState(file *DriveFile, localPath string) (*FileState, error)

func (*FileState) Offset

func (fs *FileState) Offset() int64

func (*FileState) Valid

func (fs *FileState) Valid() (bool, error)

Jump to

Keyboard shortcuts

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