Help us shape the future of Go! Take the 2026 Go Developer Survey

service

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: MIT Imports: 6 Imported by: 0

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)

Jump to

Keyboard shortcuts

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