Documentation
¶
Index ¶
- Variables
- func GetServiceAppAndSP(c context.Context, client *msgraph.GraphServiceClient) (gmodels.Applicationable, gmodels.ServicePrincipalable, error)
- func GetServiceMsGraphClient(c context.Context) *msgraph.GraphServiceClient
- func HandleMsGraphError(err error) error
- func WithDelegatedMsGraphClient(c ctx.RequestContext) (ctx.RequestContext, *msgraph.GraphServiceClient, error)
- type ContextKey
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMsGraphResourceNotFound = errors.New("Request_ResourceNotFound")
)
Functions ¶
func GetServiceAppAndSP ¶
func GetServiceAppAndSP(c context.Context, client *msgraph.GraphServiceClient) (gmodels.Applicationable, gmodels.ServicePrincipalable, error)
should use service client
func GetServiceMsGraphClient ¶
func GetServiceMsGraphClient(c context.Context) *msgraph.GraphServiceClient
func HandleMsGraphError ¶
func WithDelegatedMsGraphClient ¶
func WithDelegatedMsGraphClient(c ctx.RequestContext) (ctx.RequestContext, *msgraph.GraphServiceClient, error)
Types ¶
type ContextKey ¶
type ContextKey int
const ( ServiceClientIDContextKey ContextKey = iota ServiceMsGraphClientContextKey ServiceMsGraphClientClientIDContextKey )
Click to show internal directories.
Click to hide internal directories.