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
Click to show internal directories.
Click to hide internal directories.