graph

package
v0.0.0-...-69f3078 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDoc

func CreateDoc(ctx context.Context, client *msgraphsdkgo.GraphServiceClient, name string, content []byte) (string, string, error)

CreateDoc creates (or uploads) a new document with the given name and content into the specified directory (dir) in the user's OneDrive.

func GetDoc

func GetDocByPath

func GetDocByPath(ctx context.Context, c *msgraphsdkgo.GraphServiceClient, path string) (string, error)

Types

type DocInfo

type DocInfo struct {
	ID, Name string
}

func ListDocs

ListDocs lists all documents in the user's OneDrive. It recursively traverses folders to find all documents.

func (DocInfo) String

func (d DocInfo) String() string

Jump to

Keyboard shortcuts

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