{"modulePath":"github.com/cloudfoundry/cf-drain-cli","version":"v2.0.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cloudcontroller\n\n## Types\n\n```go\ntype App struct {\n\tName string\n\tGuid string\n}\n```\n\n```go\ntype AppListerClient struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAppListerClient(c Curler) *AppListerClient\n```\n\n```go\nfunc (c *AppListerClient) ListApps(spaceGuid string) ([]App, error)\n```\n\n```go\ntype AuthCurler interface {\n\tCurl(url, method, body string) ([]byte, error)\n}\n```\n\n```go\ntype BindDrainClient struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewBindDrainClient(c Curler) *BindDrainClient\n```\n\n```go\nfunc (c *BindDrainClient) BindDrain(appGuid, serviceInstanceGuid string) error\n```\n\n```go\ntype CLICurlClient struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCLICurlClient(cli plugin.CliConnection) *CLICurlClient\n```\n\n```go\nfunc (c *CLICurlClient) Curl(URL, method, body string) ([]byte, error)\n```\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewClient(c Curler) *Client\n```\n\n```go\nfunc (c *Client) EnvVars(appGUID string) (map[string]string, error)\n```\n\n```go\ntype CreateDrainClient struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCreateDrainClient(c Curler) *CreateDrainClient\n```\n\n```go\nfunc (c *CreateDrainClient) CreateDrain(name, url, spaceGuid, drainType string) error\n```\n\n```go\ntype Curler interface {\n\tCurl(URL, method, body string) ([]byte, error)\n}\n```\n\n```go\ntype Doer interface {\n\tDo(*http.Request) (*http.Response, error)\n}\n```\n\n```go\ntype HTTPCurlClient struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewHTTPCurlClient(apiAddr string, d Doer, f TokenFetcher, r SaveAndRestager) *HTTPCurlClient\n```\n\n```go\nfunc (c *HTTPCurlClient) Curl(url, method, body string) ([]byte, error)\n```\n\n```go\ntype Logger interface {\n\tFatalf(format string, v ...interface{})\n}\n```\n\n```go\ntype Restager struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewRestager(appGUID string, c AuthCurler, log Logger) *Restager\n```\n\n```go\nfunc (r *Restager) SaveAndRestage(refreshToken string)\n```\n\n```go\ntype SaveAndRestager interface {\n\tSaveAndRestage(refreshToken string)\n}\n```\n\n```go\ntype SaveAndRestagerFunc func(string)\n```\n\n```go\nfunc (f SaveAndRestagerFunc) SaveAndRestage(refToken string)\n```\n\n```go\ntype TokenFetcher interface {\n\tToken() (string, string, error)\n}\n```\n\n```go\ntype TokenManager struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewTokenManager(\n\tuaa UAAClient,\n\tclientID string,\n\tinitialRefreshToken string,\n\tappGUID string,\n\tskipCertVerify bool,\n\tlog Logger,\n\n) *TokenManager\n```\n\n```go\nfunc (m *TokenManager) Token() (string, string, error)\n```\n\n```go\ntype UAAClient interface {\n\tGetRefreshToken(clientID, refreshToken string, insecureSkipVerify bool) (string, string, error)\n}\n```\n\n","path":"github.com/cloudfoundry/cf-drain-cli/internal/cloudcontroller","name":"cloudcontroller","synopsis":"","isRedistributable":true}
