cloudcontrollerv2

package
v6.22.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 (*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

func (*Connection) Make

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

type ForbiddenError

type ForbiddenError struct {
	// contains filtered or unexported fields
}

func (ForbiddenError) Error

func (e ForbiddenError) Error() string

type Request

type Request struct {
	RequestName string
	Params      rata.Params
}

type RequestError

type RequestError error

type ResourceNotFoundError

type ResourceNotFoundError struct {
	// contains filtered or unexported fields
}

func (ResourceNotFoundError) Error

func (e ResourceNotFoundError) Error() string

type Response

type Response struct {
	Result   interface{}
	Warnings []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

type Warnings

type Warnings []string

Jump to

Keyboard shortcuts

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