Documentation
¶
Index ¶
- type Identity
- func (c Identity) GetCertificate() string
- func (c Identity) GetCertificateExpiresAt() string
- func (c Identity) GetClientID() string
- func (c Identity) GetClientSecret() string
- func (c Identity) GetDomains() []string
- func (c Identity) GetKey() string
- func (c Identity) GetOsbURL() string
- func (c Identity) GetProofTokenURL() string
- func (c Identity) GetURL() string
- func (c Identity) GetZoneUUID() uuid.UUID
- type Platform
- type VCAPServices
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identity ¶ added in v0.7.0
type Identity struct {
ClientID string `json:"clientid"`
ClientSecret string `json:"clientsecret"`
Domains []string `json:"domains"`
URL string `json:"url"`
ZoneUUID uuid.UUID `json:"zone_uuid"`
ProofTokenURL string `json:"prooftoken_url"`
OsbURL string `json:"osb_url"`
Certificate string `json:"certificate"`
Key string `json:"key"`
CertificateExpiresAt string `json:"certificate_expires_at"`
}
Identity represents the parsed credentials from the ias binding
func GetIASConfig ¶
GetIASConfig parses the IAS config from the applications environment
func (Identity) GetCertificate ¶ added in v0.7.0
GetCertificate implements the auth.OAuthConfig interface.
func (Identity) GetCertificateExpiresAt ¶ added in v0.7.0
GetCertificateExpiresAt implements the auth.OAuthConfig interface.
func (Identity) GetClientID ¶ added in v0.7.0
GetClientID implements the auth.OAuthConfig interface.
func (Identity) GetClientSecret ¶ added in v0.7.0
GetClientSecret implements the auth.OAuthConfig interface.
func (Identity) GetDomains ¶ added in v0.9.0
GetDomains implements the auth.OAuthConfig interface.
func (Identity) GetProofTokenURL ¶ added in v0.7.0
GetProofTokenURL implements the auth.OAuthConfig interface.
func (Identity) GetZoneUUID ¶ added in v0.7.0
GetZoneUUID implements the auth.OAuthConfig interface.
type Platform ¶
type Platform string
Platform holds the type string of the platform the application runs on
type VCAPServices ¶ added in v0.7.0
type VCAPServices struct {
Identity []struct {
Credentials Identity `json:"credentials"`
} `json:"identity"`
}
VCAPServices is the Cloud Foundry environment variable that stores information about services bound to the application