Documentation ¶
Index ¶
- Constants
- Variables
- type APIInformation
- type CloudControllerClient
- func (client *CloudControllerClient) API() string
- func (client *CloudControllerClient) APIVersion() string
- func (client *CloudControllerClient) AuthorizationEndpoint() string
- func (client *CloudControllerClient) DopplerEndpoint() string
- func (client *CloudControllerClient) Info() (APIInformation, Warnings, error)
- func (client *CloudControllerClient) LoggregatorEndpoint() string
- func (client *CloudControllerClient) RoutingEndpoint() string
- func (client *CloudControllerClient) TargetCF(APIURL string, skipSSLValidation bool) (Warnings, error)
- func (client *CloudControllerClient) TokenEndpoint() string
- type Connection
- type ForbiddenError
- type Request
- type RequestError
- type ResourceNotFoundError
- type Response
- type UnauthorizedError
- type UnexpectedResponseError
- type UnverifiedServerError
- type Warnings
Constants ¶
View Source
const (
InfoRequest = "Info"
)
Variables ¶
View Source
var Routes = rata.Routes{ {Path: "/v2/info", Method: "GET", Name: InfoRequest}, }
Functions ¶
This section is empty.
Types ¶
type APIInformation ¶
type APIInformation struct { APIVersion string `json:"api_version"` AuthorizationEndpoint string `json:"authorization_endpoint"` DopplerEndpoint string `json:"doppler_logging_endpoint"` LoggregatorEndpoint string `json:"logging_endpoint"` MinimumCLIVersion string `json:"min_cli_version"` MinimumRecommendedCLIVersion string `json:"min_recommended_cli_version"` Name string `json:"name"` RoutingEndpoint string `json:"routing_endpoint"` TokenEndpoint string `json:"token_endpoint"` }
type CloudControllerClient ¶
type CloudControllerClient struct {
// contains filtered or unexported fields
}
func NewCloudControllerClient ¶
func NewCloudControllerClient() *CloudControllerClient
func (*CloudControllerClient) API ¶
func (client *CloudControllerClient) API() string
func (*CloudControllerClient) APIVersion ¶
func (client *CloudControllerClient) APIVersion() string
func (*CloudControllerClient) AuthorizationEndpoint ¶
func (client *CloudControllerClient) AuthorizationEndpoint() string
func (*CloudControllerClient) DopplerEndpoint ¶
func (client *CloudControllerClient) DopplerEndpoint() string
func (*CloudControllerClient) Info ¶
func (client *CloudControllerClient) Info() (APIInformation, Warnings, error)
func (*CloudControllerClient) LoggregatorEndpoint ¶
func (client *CloudControllerClient) LoggregatorEndpoint() string
func (*CloudControllerClient) RoutingEndpoint ¶
func (client *CloudControllerClient) RoutingEndpoint() string
func (*CloudControllerClient) TargetCF ¶
func (client *CloudControllerClient) TargetCF(APIURL string, skipSSLValidation bool) (Warnings, error)
func (*CloudControllerClient) TokenEndpoint ¶
func (client *CloudControllerClient) TokenEndpoint() string
type Connection ¶
type Connection struct { HTTPClient *http.Client URL string // contains filtered or unexported fields }
func NewConnection ¶
func NewConnection(APIURL string, skipSSLValidation bool) *Connection
type ForbiddenError ¶
type ForbiddenError struct {
// contains filtered or unexported fields
}
func (ForbiddenError) Error ¶
func (e ForbiddenError) Error() string
type RequestError ¶
type RequestError error
type ResourceNotFoundError ¶
type ResourceNotFoundError struct {
// contains filtered or unexported fields
}
func (ResourceNotFoundError) Error ¶
func (e ResourceNotFoundError) Error() string
type UnauthorizedError ¶
type UnauthorizedError struct {
// contains filtered or unexported fields
}
func (UnauthorizedError) Error ¶
func (e UnauthorizedError) Error() string
type UnexpectedResponseError ¶
type UnexpectedResponseError struct { StatusCode int Status string Body string // contains filtered or unexported fields }
func (UnexpectedResponseError) Error ¶
func (e UnexpectedResponseError) Error() string
type UnverifiedServerError ¶
type UnverifiedServerError struct {
// contains filtered or unexported fields
}
UnverifiedServerError replaces x509.UnknownAuthorityError when the server has SSL but the client is unable to verify it's certificate
func (UnverifiedServerError) Error ¶
func (e UnverifiedServerError) Error() string
Click to show internal directories.
Click to hide internal directories.