Versions in this module Expand all Collapse all v0 v0.1.1 Sep 3, 2026 v0.1.0 Sep 3, 2026 Changes in this version + var ErrNoTerminal = errors.New(...) + func AuthCommand(ctx context.Context, tool, legacyCachePath string, args []string, ...) int + func Authenticate(ctx context.Context, client public.Client) (public.AuthResult, error) + func CachePath() string + func HintForAuthError(err error) string + func NewPublicClient(cachePath, legacyPath string) (public.Client, error) + func WriteStatus(w io.Writer, st Status) + type GraphClient struct + func NewGraphClient(msal public.Client, account public.Account, opts ...Option) *GraphClient + func (g *GraphClient) CancelUploadSession(ctx context.Context, uploadURL string) + func (g *GraphClient) Delete(ctx context.Context, path 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) 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 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 + func CheckStatus(ctx context.Context, client public.Client, cachePath string) (Status, error)