gdrive

package
v0.0.0-...-63b751e Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleDriveStorage

type GoogleDriveStorage struct {
	FolderId           string
	ServiceAccountFile string
}

type MyGoogleDriveClient

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

func NewGoogleDriveStorage

func NewGoogleDriveStorage(gds *GoogleDriveStorage) (*MyGoogleDriveClient, error)

NewGoogleDriveStorage creates a new MyGoogleDriveClient instance

func (*MyGoogleDriveClient) GetBackupPath

func (g *MyGoogleDriveClient) GetBackupPath(outName string) (string, error)

GetBackupPath returns the backup path for Google Drive

func (*MyGoogleDriveClient) WriteBackup

func (g *MyGoogleDriveClient) WriteBackup(data []byte, resource string) error

WriteBackup writes the backup data to Google Drive

Jump to

Keyboard shortcuts

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