Versions in this module Expand all Collapse all v1 v1.2.0 Sep 26, 2018 v1.0.0 Jun 11, 2018 Changes in this version + type App struct + Guid string + Name string + type AppListerClient struct + func NewAppListerClient(c Curler) *AppListerClient + func (c *AppListerClient) ListApps(spaceGuid string) ([]App, error) + type AuthCurler interface + Curl func(url, method, body string) ([]byte, error) + type BindDrainClient struct + func NewBindDrainClient(c Curler) *BindDrainClient + func (c *BindDrainClient) BindDrain(appGuid, serviceInstanceGuid string) error + type CLICurlClient struct + func NewCLICurlClient(cli plugin.CliConnection) *CLICurlClient + func (c *CLICurlClient) Curl(URL, method, body string) ([]byte, error) + type Client struct + func NewClient(c Curler) *Client + func (c *Client) EnvVars(appGUID string) (map[string]string, error) + type CreateDrainClient struct + func NewCreateDrainClient(c Curler) *CreateDrainClient + func (c *CreateDrainClient) CreateDrain(name, url, spaceGuid, drainType string) error + type Curler interface + Curl func(URL, method, body string) ([]byte, error) + type Doer interface + Do func(*http.Request) (*http.Response, error) + type HTTPCurlClient struct + func NewHTTPCurlClient(apiAddr string, d Doer, f TokenFetcher, r SaveAndRestager) *HTTPCurlClient + func (c *HTTPCurlClient) Curl(url, method, body string) ([]byte, error) + type Logger interface + Fatalf func(format string, v ...interface{}) + type Restager struct + func NewRestager(appGUID string, c AuthCurler, log Logger) *Restager + func (r *Restager) SaveAndRestage(refreshToken string) + type SaveAndRestager interface + SaveAndRestage func(refreshToken string) + type SaveAndRestagerFunc func(string) + func (f SaveAndRestagerFunc) SaveAndRestage(refToken string) + type TokenFetcher interface + Token func() (string, string, error) + type TokenManager struct + func NewTokenManager(uaa UAAClient, clientID string, initialRefreshToken string, appGUID string, ...) *TokenManager + func (m *TokenManager) Token() (string, string, error) + type UAAClient interface + GetRefreshToken func(clientID, refreshToken string, insecureSkipVerify bool) (string, string, error) Incompatible versions in this module v2.0.0+incompatible Oct 3, 2019