Versions in this module Expand all Collapse all v8 v8.4.4 Aug 24, 2022 v8.4.3 Aug 24, 2022 Changes in this version + func NewErrorWrapper() *errorWrapper + type AccountLockedError struct + Message string + func (e AccountLockedError) Error() string + type AuthResponse struct + AccessToken string + RefreshToken string + type Client struct + func NewClient(config Config) *Client + func (client *Client) CreateUser(user string, password string, origin string) (User, error) + func (client *Client) DeleteUser(userGuid string) (User, error) + func (client *Client) GetAPIVersion() (string, error) + func (client *Client) GetLoginPrompts() (map[string][]string, error) + func (client *Client) GetSSHPasscode(accessToken string, sshOAuthClient string) (string, error) + func (client *Client) RefreshAccessToken(refreshToken string) (RefreshedTokens, error) + func (client *Client) SetupResources(uaaURL string, loginURL string) error + func (client *Client) UpdatePassword(userGUID string, oldPassword string, newPassword string) error + func (client *Client) WrapConnection(wrapper ConnectionWrapper) + func (client Client) Authenticate(creds map[string]string, origin string, grantType constant.GrantType) (string, string, error) + func (client Client) ListUsers(userName, origin string) ([]User, error) + func (client Client) Revoke(token string) error + func (client Client) ValidateClientUser(clientID string) error + type Config interface + BinaryName func() string + BinaryVersion func() string + DialTimeout func() time.Duration + SetUAAEndpoint func(uaaEndpoint string) + SkipSSLValidation func() bool + UAADisableKeepAlives func() bool + UAAGrantType func() string + UAAOAuthClient func() string + UAAOAuthClientSecret func() string + type ConflictError struct + Message string + func (e ConflictError) Error() string + type Connection interface + Make func(request *http.Request, passedResponse *Response) error + type ConnectionWrapper interface + Wrap func(innerconnection Connection) Connection + type Info struct + Links struct{ ... } + func NewInfo(uaaURL string, loginURL string) Info + func (info Info) LoginLink() string + func (info Info) UAALink() string + type InsufficientScopeError struct + Message string + func (e InsufficientScopeError) Error() string + type InvalidAuthTokenError struct + Message string + func (e InvalidAuthTokenError) Error() string + type InvalidPasswordError struct + Message string + func (e InvalidPasswordError) Error() string + type InvalidSCIMResourceError struct + Message string + func (e InvalidSCIMResourceError) Error() string + type RawHTTPStatusError struct + RawResponse []byte + StatusCode int + func (r RawHTTPStatusError) Error() string + type RefreshedTokens struct + AccessToken string + RefreshToken string + Type string + func (refreshTokenResponse RefreshedTokens) AuthorizationToken() string + type RequestError struct + Err error + func (e RequestError) Error() string + type Response struct + HTTPResponse *http.Response + RawResponse []byte + Result interface{} + type UAAConnection struct + HTTPClient *http.Client + func NewConnection(skipSSLValidation bool, disableKeepAlives bool, dialTimeout time.Duration) *UAAConnection + func (connection *UAAConnection) Make(request *http.Request, passedResponse *Response) error + type UAAErrorResponse struct + Description string + Type string + func (e UAAErrorResponse) Error() string + type UnauthorizedError struct + Message string + func (e UnauthorizedError) Error() string + type UnverifiedServerError struct + URL string + func (e UnverifiedServerError) Error() string + type User struct + ID string + Origin string Other modules containing this package github.com/LukasHeimann/cloudfoundrycli