Documentation
¶
Overview ¶
Package intune provides a gollem.ToolSet for querying Microsoft Intune managed device information via the Microsoft Graph API. Authentication uses the OAuth 2.0 Client Credentials Flow.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*ToolSet)
Option configures a ToolSet.
func WithBaseURL ¶
WithBaseURL overrides the Microsoft Graph API base URL (default: https://graph.microsoft.com/v1.0).
func WithHTTPClient ¶
WithHTTPClient overrides the HTTP client used for all requests.
func WithLogger ¶
WithLogger sets the logger. A nil logger keeps the default (slog.Default()).
func WithTokenEndpoint ¶
WithTokenEndpoint overrides the OAuth2 token endpoint. The default is derived from the tenant ID. This is intended for unit tests that point at httptest servers.
type ToolSet ¶
type ToolSet struct {
// contains filtered or unexported fields
}
ToolSet implements gollem.ToolSet for Microsoft Intune / Graph API lookups. Fields are unexported; configure via Option.
func New ¶
New constructs the ToolSet with the required Azure AD credentials. tenantID, clientID, and clientSecret must all be non-empty. It only validates static configuration; use Ping to verify connectivity and credentials.