{"modulePath":"github.com/cloudfoundry/cf-drain-cli","version":"v2.0.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package command\n\n## Functions\n\n```go\nfunc BindDrain(cli plugin.CliConnection, df DrainFetcher, args []string, log Logger)\n```\n\n```go\nfunc CreateDrain(\n\tcli plugin.CliConnection,\n\targs []string,\n\tlog Logger,\n)\n```\n\n```go\nfunc DeleteDrain(cli plugin.CliConnection, args []string, log Logger, in io.Reader, serviceDrainFetcher DrainFetcher)\n```\n\n```go\nfunc DeleteSpaceDrain(cli plugin.CliConnection, args []string, log Logger, in io.Reader, df DrainFetcher, deleteDrain DeleteDrainFunc)\n```\n\n```go\nfunc Drains(\n\tcli plugin.CliConnection,\n\targs []string,\n\tlog Logger,\n\ttableWriter io.Writer,\n\tfetchers ...DrainFetcher,\n)\n```\n\n```go\nfunc PushSpaceDrain(\n\tcli plugin.CliConnection,\n\targs []string,\n\td Downloader,\n\tf RefreshTokenFetcher,\n\tlog Logger,\n)\n```\n\n## Types\n\n```go\ntype DeleteDrainFunc func(plugin.CliConnection, []string, Logger, io.Reader, DrainFetcher)\n```\n\n```go\ntype Downloader interface {\n\tDownload(assetName string) string\n}\n```\n\n```go\ntype DrainFetcher interface {\n\tDrains(spaceGUID string) ([]drain.Drain, error)\n}\n```\n\n```go\ntype GithubReleaseDownloader struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewGithubReleaseDownloader(c HTTPClient, log Logger) GithubReleaseDownloader\n```\n\n```go\nfunc (d GithubReleaseDownloader) Download(assetName string) string\n```\n\n```go\ntype HTTPClient interface {\n\tDo(r *http.Request) (*http.Response, error)\n}\n```\n\n```go\ntype Logger interface {\n\tPrintf(format string, args ...interface{})\n\tFatalf(format string, args ...interface{})\n\tPrint(...interface{})\n}\n```\nLogger is used for outputting log-cache results and errors\n\n```go\ntype RefreshTokenFetcher interface {\n\tRefreshToken() (string, error)\n}\n```\n\n```go\ntype TokenFetcher struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewTokenFetcher(configPath string) *TokenFetcher\n```\n\n```go\nfunc (tf *TokenFetcher) RefreshToken() (string, error)\n```\n\n","path":"github.com/cloudfoundry/cf-drain-cli/internal/command","name":"command","synopsis":"","isRedistributable":true}
