Documentation
¶
Overview ¶
This package contains the msgraph package which is used to interact with the Microsoft Graph API it implements the UserWithGroup struct and the GraphClient struct
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheInterface ¶
type CacheInterface interface { Add(key string, value string) Get(key string) (string, bool) Remove(key string) }
The cache interface defines the methods that a cache should implement.
type MsGraphClient ¶
type MsGraphClient struct { Client *msgraphsdk.GraphServiceClient GroupCache kvcachehelper.CacheInterface // contains filtered or unexported fields }
func NewMsGraphClient ¶
func NewMsGraphClient(config MsGraphConfig, cacheHelper kvcachehelper.CacheInterface) (*MsGraphClient, error)
NewMsGraphClient creates a new GraphClient
func (*MsGraphClient) GetUser ¶
func (g *MsGraphClient) GetUser(userId string) (*identitymodels.User, error)
GetUsersWithGroups gets a user and the name of the groups the user is a member of TODO: Implement isExpired TODO: Implement isDisabled...
Click to show internal directories.
Click to hide internal directories.