usp_ms_graph

package
v1.32.32 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

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

Jump to

Keyboard shortcuts

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