Documentation
¶
Index ¶
- type DriveItemCachePayload
- type DriveItemCachePayloadReference
- type OneDrive
- func (od *OneDrive) CronCacheMicrosoftGraphDrive() error
- func (od *OneDrive) DriveContentURLCacheToPayLoad(microsoftGraphDriveItemCache *cache.MicrosoftGraphDriveItemCache) (*DriveItemCachePayload, error)
- func (od *OneDrive) DriveItemCacheToPayLoad(microsoftGraphDriveItemCache *cache.MicrosoftGraphDriveItemCache) (*DriveItemCachePayload, error)
- func (od *OneDrive) ForceGetMicrosoftGraphDriveItem(path, force string) error
- func (od *OneDrive) GetMicrosoftGraphAPIMeDriveContentURL(path string) (*DriveItemCachePayload, error)
- func (od *OneDrive) GetMicrosoftGraphDriveItem(path string) (*DriveItemCachePayload, error)
- func (od *OneDrive) InitMicrosoftGraphAPI() error
- func (od *OneDrive) InitMicrosoftGraphAPIToken(odc oneDriveCollection) error
- func (od *OneDrive) ReStart(odc oneDriveCollection) error
- func (od *OneDrive) Start(odc oneDriveCollection) error
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 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 (*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 (*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 (*OneDrive) InitMicrosoftGraphAPIToken ¶
Click to show internal directories.
Click to hide internal directories.