get_file_list

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

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileListGetter

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

func New

func New(client *http.Client, gdriveId string, storage *file_storage.FileStorage, sharedDrive bool) *FileListGetter

func (*FileListGetter) GetAndStoreFiles

func (g *FileListGetter) GetAndStoreFiles(filename string, pageCount int) ([]*FileOrFolder, error)

GetAndStoreFiles fetches files and folders from the Google Drive API

func (*FileListGetter) LoadFromFile

func (g *FileListGetter) LoadFromFile(filename string) ([]*FileOrFolder, error)

type FileOrFolder

type FileOrFolder struct {
	Id     string
	Name   string
	Parent string
}

FileOrFolder is a file or folder

func (*FileOrFolder) HasParent

func (f *FileOrFolder) HasParent() bool

func (*FileOrFolder) String

func (f *FileOrFolder) String() string

Jump to

Keyboard shortcuts

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