gateway

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DriveFolderMimeType = "application/vnd.google-apps.folder"

Variables

This section is empty.

Functions

This section is empty.

Types

type DriveFileProvider

type DriveFileProvider interface {
	List(param *repository.QueryListParam) (*drive.FileList, error)
	Download(string) ([]byte, error)
}

func NewDriveFileProvider

func NewDriveFileProvider() DriveFileProvider

type DriveFileTimestamp

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

func NewDriveFileTimestamp

func NewDriveFileTimestamp(t time.Time) DriveFileTimestamp

func (DriveFileTimestamp) String

func (t DriveFileTimestamp) String() string

type LocalFileProvider

type LocalFileProvider interface {
	List(param *repository.QueryListParam) ([]os.DirEntry, error)
	Read(filePath string) ([]byte, error)
	Write(filePath string, content []byte) error
	Copy(destPath string, srcPath string) error
}

func NewLocalFileProvider

func NewLocalFileProvider() LocalFileProvider

Jump to

Keyboard shortcuts

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