core

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DriveItemCachePayload

type DriveItemCachePayload struct {
	Description    *string                         `json:"description,omitempty"`
	File           *graphapi.MicrosoftGraphFile    `json:"file,omitempty"`
	Folder         *graphapi.MicrosoftGraphFolder  `json:"folder,omitempty"`
	Size           int64                           `json:"size"`
	Children       []DriveItemCachePayload         `json:"children,omitempty"`
	CreatedAt      time.Time                       `json:"createdAt"`
	LastModifiedAt time.Time                       `json:"lastModifiedAt"`
	Name           string                          `json:"name"`
	Reference      *DriveItemCachePayloadReference `json:"reference,omitempty"`
	DownloadURL    *string                         `json:"downloadUrl,omitempty"`
}

type DriveItemCachePayloadReference

type DriveItemCachePayloadReference struct {
	LastUpdateAt time.Time `json:"lastUpdateAt"`
	DriveType    string    `json:"driveType"` // personal, business, documentLibrary
	Path         string    `json:"path"`
}

type OneDrive

type OneDrive struct {
	MicrosoftEndPoints     graphapi.MicrosoftEndPoints     `json:"microsoftEndPoints"`
	AzureADAppRegistration graphapi.AzureADAppRegistration `json:"azureAdAppRegistration"`
	AzureADAuthFlowContext graphapi.AzureADAuthFlowContext `json:"azureAdAuthFlowContext"`
	OneDriveDescription    description.OneDriveDescription `json:"oneDriveDescription"`
	MicrosoftGraphAPI      api.MicrosoftGraphAPI           `json:"microsoftGraphApi,omitempty"`
	DriveCacheCollection   cache.DriveCacheCollection      `json:"driveCacheCollection,omitempty"`
	UploaderCollection     upload.UploaderCollection       `json:"uploaderCollection,omitempty"`
}

OneDrive describes a OneDrive

func (*OneDrive) CronCacheMicrosoftGraphDrive

func (od *OneDrive) CronCacheMicrosoftGraphDrive() error

func (*OneDrive) DriveContentURLCacheToPayLoad

func (od *OneDrive) DriveContentURLCacheToPayLoad(microsoftGraphDriveItemCache *cache.MicrosoftGraphDriveItemCache) (*DriveItemCachePayload, error)

func (*OneDrive) DriveItemCacheToPayLoad

func (od *OneDrive) DriveItemCacheToPayLoad(microsoftGraphDriveItemCache *cache.MicrosoftGraphDriveItemCache) (*DriveItemCachePayload, error)

func (*OneDrive) ForceGetMicrosoftGraphDriveItem

func (od *OneDrive) ForceGetMicrosoftGraphDriveItem(path, force string) error

func (*OneDrive) GetMicrosoftGraphAPIMeDriveContentURL

func (od *OneDrive) GetMicrosoftGraphAPIMeDriveContentURL(path string) (*DriveItemCachePayload, error)

func (*OneDrive) GetMicrosoftGraphDriveItem

func (od *OneDrive) GetMicrosoftGraphDriveItem(path string) (*DriveItemCachePayload, error)

func (*OneDrive) InitMicrosoftGraphAPI

func (od *OneDrive) InitMicrosoftGraphAPI() error

func (*OneDrive) InitMicrosoftGraphAPIToken

func (od *OneDrive) InitMicrosoftGraphAPIToken(odc oneDriveCollection) error

func (*OneDrive) ReStart

func (od *OneDrive) ReStart(odc oneDriveCollection) error

func (*OneDrive) Start

func (od *OneDrive) Start(odc oneDriveCollection) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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