{"modulePath":"code.cloudfoundry.org/cli","version":"v6.31.0+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cfnetworking\n\n## Functions\n\n```go\nfunc NewErrorWrapper() *errorWrapper\n```\n\n## Types\n\n```go\ntype Config struct {\n\tDialTimeout       time.Duration\n\tSkipSSLValidation bool\n}\n```\nConfig is for configuring a NetworkingConnection.\n\n```go\ntype Connection interface {\n\tMake(request *Request, passedResponse *Response) error\n}\n```\nConnection creates and executes http requests\n\n```go\ntype NetworkingConnection struct {\n\tHTTPClient *http.Client\n\tUserAgent  string\n}\n```\nNetworkingConnection represents a connection to the Cloud Controller server.\n\n```go\nfunc NewConnection(config Config) *NetworkingConnection\n```\nNewConnection returns a new NetworkingConnection with provided configuration.\n\n```go\nfunc (connection *NetworkingConnection) Make(request *Request, passedResponse *Response) error\n```\nMake performs the request and parses the response.\n\n```go\ntype ReadSeeker interface {\n\tio.ReadSeeker\n}\n```\n\n```go\ntype Request struct {\n\t*http.Request\n\t// contains filtered or unexported fields\n}\n```\nRequest represents the request of the cloud controller.\n\n```go\nfunc NewRequest(request *http.Request, body io.ReadSeeker) *Request\n```\n\n```go\nfunc (r *Request) ResetBody() error\n```\n\n```go\ntype Response struct {\n\t// Result represents the resource entity type that is expected in the\n\t// response JSON.\n\tResult interface{}\n\n\t// RawResponse represents the response body.\n\tRawResponse []byte\n\n\t// Warnings represents warnings parsed from the custom warnings headers of a\n\t// Cloud Controller response.\n\tWarnings []string\n\n\t// HTTPResponse represents the HTTP response object.\n\tHTTPResponse *http.Response\n\n\t// ResourceLocationURL represents the Location header value\n\tResourceLocationURL string\n}\n```\nResponse represents a Cloud Controller response object.\n\n","path":"code.cloudfoundry.org/cli/api/cfnetworking","name":"cfnetworking","synopsis":"","isRedistributable":true}
