Versions in this module Expand all Collapse all v0 v0.0.97 Apr 1, 2024 Changes in this version + const APIName + const BearerTokenAuthenticationSupport + const BearerTokenEndpoint + const DefaultBaseDomain + const OAuthAuthenticationSupport + const OAuthTokenEndpoint + const OAuthWithCertAuthenticationSupport + const TokenInvalidateEndpoint + const TokenRefreshEndpoint + func ExtractErrorMessageFromHTML(htmlContent string) string + func ParseJSONErrorResponse(body []byte) (string, error) + type APIHandlerError struct + ErrorMessage string + ErrorType string + ExtraDetails map[string]interface{} + HTTPStatusCode int + type ConfigMap map[string]EndpointConfig + type EndpointConfig struct + Accept string + ContentType *string + type GraphAPIHandler struct + InstanceName string + Logger logger.Logger + OverrideBaseDomain string + func (g *GraphAPIHandler) ConstructAPIAuthEndpoint(instanceName string, endpointPath string, log logger.Logger) string + func (g *GraphAPIHandler) ConstructAPIResourceEndpoint(instanceName string, endpointPath string, log logger.Logger) string + func (g *GraphAPIHandler) GetAPIBearerTokenAuthenticationSupportStatus() bool + func (g *GraphAPIHandler) GetAPIOAuthAuthenticationSupportStatus() bool + func (g *GraphAPIHandler) GetAPIOAuthWithCertAuthenticationSupportStatus() bool + func (g *GraphAPIHandler) GetAPIRequestHeaders(endpoint string) map[string]string + func (g *GraphAPIHandler) GetAcceptHeader() string + func (g *GraphAPIHandler) GetBearerTokenEndpoint() string + func (g *GraphAPIHandler) GetContentTypeHeader(endpoint string, log logger.Logger) string + func (g *GraphAPIHandler) GetDefaultBaseDomain() string + func (g *GraphAPIHandler) GetOAuthTokenEndpoint() string + func (g *GraphAPIHandler) GetTokenInvalidateEndpoint() string + func (g *GraphAPIHandler) GetTokenRefreshEndpoint() string + func (g *GraphAPIHandler) HandleAPIErrorResponse(resp *http.Response, out interface{}, log logger.Logger) error + func (g *GraphAPIHandler) HandleAPISuccessResponse(resp *http.Response, out interface{}, log logger.Logger) error + func (g *GraphAPIHandler) MarshalMultipartRequest(fields map[string]string, files map[string]string, log logger.Logger) ([]byte, string, error) + func (g *GraphAPIHandler) MarshalRequest(body interface{}, method string, endpoint string, log logger.Logger) ([]byte, error) + func (g *GraphAPIHandler) ReturnAPIErrorResponse(resp *http.Response) *APIHandlerError + func (g *GraphAPIHandler) SetBaseDomain() string