Documentation
¶
Index ¶
- Constants
- func FetchAzureADKeySet(ctx context.Context) (jwk.Set, error)
- func GetAzureAdIssuers(tenantId string) []string
- func GetAzureCredentialObjectId(ctx context.Context) (string, error)
- type AzureCredentialHealthCheckOptions
- type Check
- type FuncHealthCheckOptions
- type HealthCheck
- func NewAzureCredentialHealthCheck(options AzureCredentialHealthCheckOptions) HealthCheck
- func NewFuncHealthCheck(options FuncHealthCheckOptions) HealthCheck
- func NewServiceBusHealthCheck(options ServiceBusHealthCheckOptions) HealthCheck
- func NewUrlHealthCheck(options UrlHealthCheckOptions) HealthCheck
- type HealthCheckOptions
- type HealthCheckResult
- type HealthCheckService
- type ServiceBusHealthCheckOptions
- type UrlHealthCheckOptions
Constants ¶
View Source
const ( // JWKS for Azure AD // Source: https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration AzureAdJwksUri = "https://login.microsoftonline.com/common/discovery/v2.0/keys" AzureAdV2IssuerFormat = "https://login.microsoftonline.com/" + azureAdTenantIdToken + "/v2.0/" AzureAdV1IssuerFormat = "https://sts.windows.net/" + azureAdTenantIdToken + "/" )
View Source
const ( HealthCheckStatusHealthy = 2 HealthCheckStatusDegraded = 1 HealthCheckStatusUnhealthy = 0 )
View Source
const HealthCheckQueueName = "healthcheck"
Variables ¶
This section is empty.
Functions ¶
func FetchAzureADKeySet ¶
fetchs the Azure AD key set
func GetAzureAdIssuers ¶
Types ¶
type Check ¶
type Check func(ctx context.Context) HealthCheckResult
type FuncHealthCheckOptions ¶
type HealthCheck ¶
type HealthCheck interface {
Check(ctx context.Context) HealthCheckResult
}
A health check, which can be used to check the status of a component in the application, such as a backend service, database or some internal state.
func NewAzureCredentialHealthCheck ¶
func NewAzureCredentialHealthCheck(options AzureCredentialHealthCheckOptions) HealthCheck
func NewFuncHealthCheck ¶
func NewFuncHealthCheck(options FuncHealthCheckOptions) HealthCheck
func NewServiceBusHealthCheck ¶
func NewServiceBusHealthCheck(options ServiceBusHealthCheckOptions) HealthCheck
func NewUrlHealthCheck ¶
func NewUrlHealthCheck(options UrlHealthCheckOptions) HealthCheck
type HealthCheckOptions ¶
type HealthCheckResult ¶
type HealthCheckService ¶
type HealthCheckService interface { AddHealthCheck(healthCheck HealthCheck) // Runs the provided health checks and returns the aggregated status. CheckHealth(ctx context.Context) []HealthCheckResult }
func NewHealthCheckService ¶
func NewHealthCheckService() HealthCheckService
Click to show internal directories.
Click to hide internal directories.