{"modulePath":"github.com/cloudfoundry/cli","version":"v6.22.1+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cloudcontrollerv2\n\n## Constants\n\n```go\nconst (\n\tInfoRequest = \"Info\"\n)\n```\n\n## Variables\n\n```go\nvar Routes = rata.Routes{\n\t{Path: \"/v2/info\", Method: \"GET\", Name: InfoRequest},\n}\n```\n\n## Types\n\n```go\ntype APIInformation struct {\n\tAPIVersion                   string `json:\"api_version\"`\n\tAuthorizationEndpoint        string `json:\"authorization_endpoint\"`\n\tDopplerEndpoint              string `json:\"doppler_logging_endpoint\"`\n\tLoggregatorEndpoint          string `json:\"logging_endpoint\"`\n\tMinimumCLIVersion            string `json:\"min_cli_version\"`\n\tMinimumRecommendedCLIVersion string `json:\"min_recommended_cli_version\"`\n\tName                         string `json:\"name\"`\n\tRoutingEndpoint              string `json:\"routing_endpoint\"`\n\tTokenEndpoint                string `json:\"token_endpoint\"`\n}\n```\n\n```go\ntype CloudControllerClient struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudControllerClient() *CloudControllerClient\n```\n\n```go\nfunc (client *CloudControllerClient) API() string\n```\n\n```go\nfunc (client *CloudControllerClient) APIVersion() string\n```\n\n```go\nfunc (client *CloudControllerClient) AuthorizationEndpoint() string\n```\n\n```go\nfunc (client *CloudControllerClient) DopplerEndpoint() string\n```\n\n```go\nfunc (client *CloudControllerClient) Info() (APIInformation, Warnings, error)\n```\n\n```go\nfunc (client *CloudControllerClient) LoggregatorEndpoint() string\n```\n\n```go\nfunc (client *CloudControllerClient) RoutingEndpoint() string\n```\n\n```go\nfunc (client *CloudControllerClient) TargetCF(APIURL string, skipSSLValidation bool) (Warnings, error)\n```\n\n```go\nfunc (client *CloudControllerClient) TokenEndpoint() string\n```\n\n```go\ntype Connection struct {\n\tHTTPClient *http.Client\n\tURL        string\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewConnection(APIURL string, skipSSLValidation bool) *Connection\n```\n\n```go\nfunc (connection *Connection) Make(passedRequest Request, passedResponse *Response) error\n```\n\n```go\ntype ForbiddenError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (e ForbiddenError) Error() string\n```\n\n```go\ntype Request struct {\n\tRequestName string\n\tParams      rata.Params\n}\n```\n\n```go\ntype RequestError error\n```\n\n```go\ntype ResourceNotFoundError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (e ResourceNotFoundError) Error() string\n```\n\n```go\ntype Response struct {\n\tResult   interface{}\n\tWarnings []string\n}\n```\n\n```go\ntype UnauthorizedError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (e UnauthorizedError) Error() string\n```\n\n```go\ntype UnexpectedResponseError struct {\n\tStatusCode int\n\tStatus     string\n\tBody       string\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (e UnexpectedResponseError) Error() string\n```\n\n```go\ntype UnverifiedServerError struct {\n\t// contains filtered or unexported fields\n}\n```\nUnverifiedServerError replaces x509.UnknownAuthorityError when the server has SSL but the client is unable to verify it's certificate\n\n```go\nfunc (e UnverifiedServerError) Error() string\n```\n\n```go\ntype Warnings []string\n```\n\n","path":"github.com/cloudfoundry/cli/api/cloudcontrollerv2","name":"cloudcontrollerv2","synopsis":"","isRedistributable":true}
