description

package
v0.0.0-...-05344fa Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DriveCacheConfig

type DriveCacheConfig struct {
	CacheEabled           bool      `json:"cacheEabled"`
	CacheList             *[]string `json:"cacheList"`
	FileRefreshInterval   int       `json:"fileRefreshInterval"`
	FolderRefreshInterval int       `json:"folderRefreshInterval"`
}

DriveCacheConfig configures the drive files cache.

type DriveVolumeMount

type DriveVolumeMount struct {
	Type     *string `json:"type"`
	Source   *string `json:"source"`
	Target   *string `json:"target"`
	Password *string `json:"password"`
}

DriveVolumeMount configures the volume mounts.

type MicrosoftGraphAPI

type MicrosoftGraphAPI interface {
	UseMicrosoftGraphAPIGet(string) ([]byte, error)
}

type OneDriveDescription

type OneDriveDescription struct {
	OneDriveName      *string                       `json:"oneDriveName"`
	RootPath          string                        `json:"rootPath,omitempty"`
	RefreshInterval   int64                         `json:"refreshInterval,omitempty"`
	DriveVolumeMounts []DriveVolumeMount            `json:"driveVolumeMounts,omitempty"`
	CacheConfig       *DriveCacheConfig             `json:"driveCacheConfig,omitempty"`
	DriveDescription  *graphapi.MicrosoftGraphDrive `json:"driveDescription,omitempty"`
}

OneDriveDescription describes the OneDrive local client

func (*OneDriveDescription) DriveRootPathToRelativePath

func (odd *OneDriveDescription) DriveRootPathToRelativePath(str string) string

func (*OneDriveDescription) FullDriveRootPathToRelativePath

func (odd *OneDriveDescription) FullDriveRootPathToRelativePath(str string) string

func (*OneDriveDescription) Get

func (odd *OneDriveDescription) Get() error

func (*OneDriveDescription) GetRefreshInterval

func (odd *OneDriveDescription) GetRefreshInterval() int64

func (*OneDriveDescription) Init

func (*OneDriveDescription) RelativePathToDriveRootPath

func (odd *OneDriveDescription) RelativePathToDriveRootPath(str string) string

func (*OneDriveDescription) RelativePathToFullDriveRootPath

func (odd *OneDriveDescription) RelativePathToFullDriveRootPath(str string) string

func (*OneDriveDescription) SetDriveDescription

func (odd *OneDriveDescription) SetDriveDescription(input *graphapi.MicrosoftGraphDrive) error

func (*OneDriveDescription) UseMicrosoftGraphAPIMeDriveChildren

func (odd *OneDriveDescription) UseMicrosoftGraphAPIMeDriveChildren(str string) string

func (*OneDriveDescription) UseMicrosoftGraphAPIMeDriveChildrenPath

func (odd *OneDriveDescription) UseMicrosoftGraphAPIMeDriveChildrenPath(str string) string

func (*OneDriveDescription) UseMicrosoftGraphAPIMeDriveContentPath

func (odd *OneDriveDescription) UseMicrosoftGraphAPIMeDriveContentPath(str string) string

func (*OneDriveDescription) UseMicrosoftGraphAPIMeDriveExpandChildrenPath

func (odd *OneDriveDescription) UseMicrosoftGraphAPIMeDriveExpandChildrenPath(str string) string

func (*OneDriveDescription) UseMicrosoftGraphAPIMeDriveItem

func (odd *OneDriveDescription) UseMicrosoftGraphAPIMeDriveItem(str string) string

func (*OneDriveDescription) UseMicrosoftGraphAPIMeDrivePath

func (odd *OneDriveDescription) UseMicrosoftGraphAPIMeDrivePath(str string) string

Jump to

Keyboard shortcuts

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