Versions in this module Expand all Collapse all v0 v0.2.0 Oct 20, 2026 Changes in this version + var ErrNoTerminal = errors.New(...) + var SharePoint = App + func HintForAuthError(err error) string + type App struct + Cache string + ClientID string + Name string + Scopes []string + Tools []string + func (app App) AuthCommand(ctx context.Context, tool, legacyCachePath string, args []string, ...) int + func (app App) Authenticate(ctx context.Context, client public.Client) (public.AuthResult, error) + func (app App) CachePath() string + func (app App) CheckStatus(ctx context.Context, client public.Client, cachePath string) (Status, error) + func (app App) NewGraphClient(msal public.Client, account public.Account, opts ...Option) *GraphClient + func (app App) NewPublicClient(cachePath, legacyPath string) (public.Client, error) + func (app App) WriteStatus(w io.Writer, st Status) + type GraphClient struct + func (g *GraphClient) CancelUploadSession(ctx context.Context, uploadURL string) + func (g *GraphClient) Delete(ctx context.Context, path string) error + func (g *GraphClient) DeleteIfMatch(ctx context.Context, path, etag string) error + func (g *GraphClient) Get(ctx context.Context, path string, query url.Values) ([]byte, error) + func (g *GraphClient) GetAll(ctx context.Context, path string, query url.Values) ([]json.RawMessage, error) + func (g *GraphClient) GetStream(ctx context.Context, path string) (io.ReadCloser, error) + func (g *GraphClient) Patch(ctx context.Context, path string, body interface{}) ([]byte, error) + func (g *GraphClient) PatchIfMatch(ctx context.Context, path, etag string, body interface{}) ([]byte, error) + func (g *GraphClient) Post(ctx context.Context, path string, body interface{}) ([]byte, error) + func (g *GraphClient) PutRaw(ctx context.Context, path, contentType string, data []byte) ([]byte, error) + func (g *GraphClient) UploadChunk(ctx context.Context, uploadURL string, chunk []byte, start, total int64) (int, []byte, error) + type HTTPError struct + Body string + Method string + Path string + Status int + func (e *HTTPError) Error() string + type Option func(*GraphClient) + func WithHeader(name, value string) Option + func WithTimeout(d time.Duration) Option + type Status struct + Account string + Cache string + Reason string + Scopes []string + SignedIn bool + Tenant string + TokenExpires time.Time