Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GraphService ¶
type GraphService interface {
CreateFolder(ctx context.Context, driveID, driveItemID, folderName string) (models.DriveItemable, error)
GetDriveRootItems(ctx context.Context, driveID string) ([]models.DriveItemable, error)
GetDriveItem(ctx context.Context, driveID, driveItemID string) (models.DriveItemable, error)
DeleteDriveItem(ctx context.Context, driveID, driveItemID string) error
GetAppToken(ctx context.Context) (azcore.AccessToken, error)
GetSiteByName(ctx context.Context, siteName string) ([]models.Siteable, error)
UploadFile(ctx context.Context, driveID, itemPath string, file *os.File) (models.DriveItemable, error)
DownloadDriveItem(ctx context.Context, driveID, driveItemID string) ([]byte, error)
}
func NewGraphService ¶
func NewGraphService(clientId, tenantId, clientSecret string, logger *graphhelper.Logger) (GraphService, error)
Click to show internal directories.
Click to hide internal directories.