Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CAPIClient ¶
type CAPIClient struct {
// contains filtered or unexported fields
}
CAPIClient defines a client for accessing the CC API
func NewCAPIClient ¶
func NewCAPIClient( capiAddr string, externalCapiAddr string, client HTTPClient, m Metrics, log *log.Logger, ) *CAPIClient
NewCAPIClient returns a new CAPIClient
func (*CAPIClient) AvailableSourceIDs ¶
func (c *CAPIClient) AvailableSourceIDs(token string) []string
AvailableSourceIDs returns all the available source ids a client has access to
func (*CAPIClient) IsAuthorized ¶
func (c *CAPIClient) IsAuthorized(sourceID, token string) bool
IsAuthorized determines autorization to a given sourceID is valid
type HTTPClient ¶
HTTClient defines the interface for communication over HTTP
type Oauth2Client ¶
Oauth2Client defines an OAuth2 client
type UAAClient ¶
type UAAClient struct {
// contains filtered or unexported fields
}
UAAClient defines an http client for UAA
func NewUAAClient ¶
func NewUAAClient( uaaAddr string, client string, clientSecret string, httpClient HTTPClient, m Metrics, log *log.Logger, ) *UAAClient
NewUAAClient returns a UAA client
Click to show internal directories.
Click to hide internal directories.