Documentation
¶
Index ¶
Constants ¶
View Source
const URLPrefix = "https://graph.microsoft.com/v1.0/"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsGraphAdapter ¶
type MsGraphAdapter struct {
// contains filtered or unexported fields
}
func NewMsGraphAdapter ¶
func NewMsGraphAdapter(ctx context.Context, conf MsGraphConfig) (*MsGraphAdapter, chan struct{}, error)
func (*MsGraphAdapter) Close ¶
func (a *MsGraphAdapter) Close() error
type MsGraphConfig ¶
type MsGraphConfig struct {
ClientOptions uspclient.ClientOptions `json:"client_options" yaml:"client_options"`
TenantID string `json:"tenant_id" yaml:"tenant_id"`
ClientID string `json:"client_id" yaml:"client_id"`
ClientSecret string `json:"client_secret" yaml:"client_secret"`
URL string `json:"url" yaml:"url"`
// LoginEndpoint overrides the Azure AD authority used for the OAuth2
// client_credentials token exchange. Empty means the public cloud
// endpoint (https://login.microsoftonline.com).
LoginEndpoint string `json:"login_endpoint" yaml:"login_endpoint"`
// GraphEndpoint overrides the Microsoft Graph API root the relative URL
// is appended to. Empty means the public cloud v1.0 root
// (https://graph.microsoft.com/v1.0/).
GraphEndpoint string `json:"graph_endpoint" yaml:"graph_endpoint"`
// PollInterval is the wait between polls of the Graph endpoint. It is
// not settable through a config file; it exists as a seam for tests.
PollInterval time.Duration `json:"-" yaml:"-"`
}
func (*MsGraphConfig) Validate ¶
func (c *MsGraphConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.