plg_backend_gdrive

package
v0.0.0-...-bec2cf3 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GDrive

type GDrive struct {
	Client *drive.Service
	Config *oauth2.Config
}

func (GDrive) Cat

func (g GDrive) Cat(path string) (io.ReadCloser, error)

func (GDrive) Init

func (g GDrive) Init(params map[string]string, app *App) (IBackend, error)

func (GDrive) LoginForm

func (g GDrive) LoginForm() Form

func (GDrive) Ls

func (g GDrive) Ls(path string) ([]os.FileInfo, error)

func (GDrive) Mkdir

func (g GDrive) Mkdir(path string) error

func (GDrive) Mv

func (g GDrive) Mv(from string, to string) error

func (GDrive) OAuthToken

func (g GDrive) OAuthToken(ctx *map[string]interface{}) error

func (GDrive) OAuthURL

func (g GDrive) OAuthURL() string

func (GDrive) Rm

func (g GDrive) Rm(path string) error

func (GDrive) Save

func (g GDrive) Save(path string, reader io.Reader) error

func (GDrive) Touch

func (g GDrive) Touch(path string) error

type GDriveMarker

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

Jump to

Keyboard shortcuts

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