cloudcontroller

package
v6.22.2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudControllerConnection

type CloudControllerConnection struct {
	HTTPClient *http.Client
	URL        string
	// contains filtered or unexported fields
}

func NewConnection

func NewConnection(APIURL string, routes rata.Routes, skipSSLValidation bool) *CloudControllerConnection

func (*CloudControllerConnection) Make

func (connection *CloudControllerConnection) Make(passedRequest Request, passedResponse *Response) error

type Connection

type Connection interface {
	Make(passedRequest Request, passedResponse *Response) error
}

Connection creates and executes http requests

type RawCCError

type RawCCError struct {
	StatusCode  int
	RawResponse []byte
}

func (RawCCError) Error

func (r RawCCError) Error() string

type Request

type Request struct {
	// Header is the set of request headers
	Header http.Header

	// URIParams are the list URI route parameters
	URIParams map[string]string

	// Query is a list of HTTP query parameters
	Query url.Values

	// RequestName is the name of the request (see routes)
	RequestName string

	URI    string
	Method string

	// Body is the request body
	Body io.Reader
}

Request contains all the elements of a Cloud Controller request

func NewRequest

func NewRequest(requestName string, URIParams map[string]string, header http.Header, query url.Values, body ...io.Reader) Request

NewRequest contains a constructed UAA request with some defaults. There is an optional body that can be passed, however only the first body is used.

func NewRequestFromURI

func NewRequestFromURI(uri string, method string, header http.Header) Request

type RequestError

type RequestError struct {
	Err error
}

func (RequestError) Error

func (e RequestError) Error() string

type Response

type Response struct {
	Result      interface{}
	RawResponse []byte
	Warnings    []string
}

type UnverifiedServerError

type UnverifiedServerError struct {
	URL string
}

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

Directories

Path Synopsis
Package ccv2 represents a Cloud Controller V2 client.
Package ccv2 represents a Cloud Controller V2 client.
ccv2fakes
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
wrapperfakes
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL