cf

package
v0.0.0-...-1b83794 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CfApiURLParsingError                     = "error parsing CF API URL: %s"
	CreateCfApiHTTPRequestError              = "error creating HTTP request for CF API endpoint: %s"
	CfApiRequestError                        = "error accessing CF API endpoint: %s"
	CFApiReadResponseError                   = "error reading response from CF API endpoint: %s"
	CFApiUnmarshalError                      = "error unmarshaling response from CF API endpoint: %s"
	CFApiUnexpectedResponseStatusErrorFormat = "unexpected status in CF API response: %d"
	UAAEndpointEmptyError                    = "UAA url is empty"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(cfApiURL string, httpClient httpClient) *Client

func (*Client) GetUAAURL

func (cl *Client) GetUAAURL() (string, error)

type OAuthClient

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

func NewOAuthClient

func NewOAuthClient(target, clientID, clientSecret string, requestTimeout time.Duration, client client) OAuthClient

func (OAuthClient) Do

func (oc OAuthClient) Do(request *http.Request) (*http.Response, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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