Versions in this module Expand all Collapse all v0 v0.0.52 Sep 1, 2016 v0.0.51 Aug 31, 2016 v0.0.50 Aug 31, 2016 Changes in this version + type AccessToken interface + Refresh func() (AccessToken, error) + RefreshToken func() Token + type AccessTokenImpl struct + func (t AccessTokenImpl) Refresh() (AccessToken, error) + func (t AccessTokenImpl) RefreshToken() Token + func (t AccessTokenImpl) Type() string + func (t AccessTokenImpl) Value() string + type AccessTokenSession struct + func NewAccessTokenSession(accessToken StaleAccessToken) *AccessTokenSession + func (s *AccessTokenSession) TokenFunc(retried bool) (string, error) + type Client struct + func NewClient(endpoint string, httpClient boshhttp.HTTPClient, logger boshlog.Logger) Client + func (c Client) ClientCredentialsGrant() (TokenResp, error) + func (c Client) OwnerPasswordCredentialsGrant(answers []PromptAnswer) (TokenResp, error) + func (c Client) Prompts() (PromptsResp, error) + func (c Client) RefreshTokenGrant(refreshValue string) (TokenResp, error) + type ClientRequest struct + func NewClientRequest(endpoint string, httpClient boshhttp.HTTPClient, logger boshlog.Logger) ClientRequest + func (r ClientRequest) Get(path string, response interface{}) error + func (r ClientRequest) Post(path string, payload []byte, response interface{}) error + type ClientTokenSession struct + func NewClientTokenSession(uaa UAA) *ClientTokenSession + func (c *ClientTokenSession) TokenFunc(retried bool) (string, error) + type Config struct + CACert string + Client string + ClientSecret string + Host string + Port int + func NewConfigFromURL(url string) (Config, error) + func (c Config) CACertPool() (*x509.CertPool, error) + func (c Config) Validate() error + type Factory struct + func NewFactory(logger boshlog.Logger) Factory + func (f Factory) New(config Config) (UAA, error) + type Prompt struct + Key string + Label string + Type string + func (p Prompt) IsPassword() bool + type PromptAnswer struct + Key string + Value string + type PromptSorting []Prompt + func (s PromptSorting) Len() int + func (s PromptSorting) Less(i, j int) bool + func (s PromptSorting) Swap(i, j int) + type PromptsResp struct + Prompts map[string][]string + type StaleAccessToken interface + Refresh func() (AccessToken, error) + RefreshToken func() Token + type Token interface + Type func() string + Value func() string + type TokenImpl struct + func (t TokenImpl) Type() string + func (t TokenImpl) Value() string + type TokenInfo struct + ExpiredAt int + Scopes []string + Username string + func NewTokenInfoFromValue(value string) (TokenInfo, error) + type TokenResp struct + AccessToken string + RefreshToken string + Type string + type UAA interface + ClientCredentialsGrant func() (Token, error) + NewStaleAccessToken func(refreshValue string) StaleAccessToken + OwnerPasswordCredentialsGrant func([]PromptAnswer) (AccessToken, error) + Prompts func() ([]Prompt, error) + type UAAImpl struct + func (u UAAImpl) ClientCredentialsGrant() (Token, error) + func (u UAAImpl) NewStaleAccessToken(refreshValue string) StaleAccessToken + func (u UAAImpl) OwnerPasswordCredentialsGrant(answers []PromptAnswer) (AccessToken, error) + func (u UAAImpl) Prompts() ([]Prompt, error)