env

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

func GetIASConfig() (*Identity, error)

GetIASConfig parses the IAS config from the applications environment

func (Identity) GetCertificate added in v0.7.0

func (c Identity) GetCertificate() string

GetCertificate implements the auth.OAuthConfig interface.

func (Identity) GetCertificateExpiresAt added in v0.7.0

func (c Identity) GetCertificateExpiresAt() string

GetCertificateExpiresAt implements the auth.OAuthConfig interface.

func (Identity) GetClientID added in v0.7.0

func (c Identity) GetClientID() string

GetClientID implements the auth.OAuthConfig interface.

func (Identity) GetClientSecret added in v0.7.0

func (c Identity) GetClientSecret() string

GetClientSecret implements the auth.OAuthConfig interface.

func (Identity) GetDomains added in v0.9.0

func (c Identity) GetDomains() []string

GetDomains implements the auth.OAuthConfig interface.

func (Identity) GetKey added in v0.7.0

func (c Identity) GetKey() string

GetKey implements the auth.OAuthConfig interface.

func (Identity) GetOsbURL added in v0.7.0

func (c Identity) GetOsbURL() string

GetOsbURL implements the auth.OAuthConfig interface.

func (Identity) GetProofTokenURL added in v0.7.0

func (c Identity) GetProofTokenURL() string

GetProofTokenURL implements the auth.OAuthConfig interface.

func (Identity) GetURL added in v0.7.0

func (c Identity) GetURL() string

GetURL implements the auth.OAuthConfig interface.

func (Identity) GetZoneUUID added in v0.7.0

func (c Identity) GetZoneUUID() uuid.UUID

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL