Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client used to communicate with Cloud Foundry
func (*Client) NewRequest ¶
NewRequest is used to create a new Request
type CloudFoundryError ¶
type CloudFoundryError struct { Code int `json:"code"` Title string `json:"title"` Detail string `json:"detail"` }
func CloudFoundryToHttpError ¶
func CloudFoundryToHttpError(cfErrors CloudFoundryErrors) CloudFoundryError
func (CloudFoundryError) Error ¶
func (cfErr CloudFoundryError) Error() string
type CloudFoundryErrors ¶
type CloudFoundryErrors struct {
Errors []CloudFoundryError `json:"errors"`
}
type CloudFoundryHTTPError ¶
func (CloudFoundryHTTPError) Error ¶
func (e CloudFoundryHTTPError) Error() string
type Config ¶
type Config struct { ApiAddress string `json:"api_url"` Username string `json:"user"` Password string `json:"password"` ClientID string `json:"client_id"` ClientSecret string `json:"client_secret"` SkipSslValidation bool `json:"skip_ssl_validation"` HttpClient *http.Client Token string `json:"auth_token"` TokenSource oauth2.TokenSource UserAgent string `json:"user_agent"` Origin string `json:"-"` // contains filtered or unexported fields }
Config is used to configure the creation of a client
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig creates a default config object used by CF client
type EndpointUrl ¶
type EndpointUrl struct {
URL string `json:"href"`
}
type Links ¶
type Links struct { AuthEndpoint EndpointUrl `json:"login"` TokenEndpoint EndpointUrl `json:"uaa"` }
Click to show internal directories.
Click to hide internal directories.