cf

package
v0.0.0-...-6863e89 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section 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(host string, restClient Rest, uaaClient TokenFetcher) *Client

func (*Client) UpdateBuild

func (c *Client) UpdateBuild(guid string, build api_model.Build) error

type Rest

type Rest interface {
	Patch(url string, authToken string, body io.Reader) (*http.Response, error)
}

TODO: remove mockery usages after refactoring everything to use Ginkgo for consistency

type RestClient

type RestClient struct {
	*http.Client
}

func (*RestClient) Patch

func (r *RestClient) Patch(url, authToken string, body io.Reader) (*http.Response, error)

type TokenFetcher

type TokenFetcher interface {
	Fetch() (string, error)
}

TODO: remove mockery usages after refactoring everything to use Ginkgo for consistency

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