Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppNameTranslator ¶
type CAPIClient ¶
type CAPIClient struct {
// contains filtered or unexported fields
}
func NewCAPIClient ¶
func NewCAPIClient( capiAddr string, externalCapiAddr string, client HTTPClient, m Metrics, log *log.Logger, ) *CAPIClient
func (*CAPIClient) AvailableSourceIDs ¶
func (c *CAPIClient) AvailableSourceIDs(authToken string) []string
func (*CAPIClient) GetRelatedSourceIds ¶
func (c *CAPIClient) GetRelatedSourceIds(appNames []string, authToken string) map[string][]string
func (*CAPIClient) IsAuthorized ¶
func (c *CAPIClient) IsAuthorized(sourceID, authToken string) bool
type CFAuthMiddlewareProvider ¶
type CFAuthMiddlewareProvider struct {
// contains filtered or unexported fields
}
func NewCFAuthMiddlewareProvider ¶
func NewCFAuthMiddlewareProvider( oauth2Reader Oauth2ClientReader, logAuthorizer LogAuthorizer, metaFetcher MetaFetcher, promQLSourceIdExtractor PromQLSourceIdExtractor, appNameTranslator AppNameTranslator, ) CFAuthMiddlewareProvider
func (CFAuthMiddlewareProvider) Middleware ¶
func (m CFAuthMiddlewareProvider) Middleware(h http.Handler) http.Handler
type LogAuthorizer ¶
type MetaFetcher ¶
type Oauth2Client ¶
type Oauth2ClientReader ¶
type Oauth2ClientReader interface {
Read(token string) (Oauth2Client, error)
}
type PromQLSourceIdExtractor ¶
type UAAClient ¶
type UAAClient struct {
// contains filtered or unexported fields
}
func NewUAAClient ¶
Click to show internal directories.
Click to hide internal directories.