Documentation ¶
Index ¶
- func BindDrain(cli plugin.CliConnection, df DrainFetcher, args []string, log Logger)
- func CreateDrain(cli plugin.CliConnection, args []string, log Logger)
- func DeleteDrain(cli plugin.CliConnection, args []string, log Logger, in io.Reader, ...)
- func DeleteSpaceDrain(cli plugin.CliConnection, args []string, log Logger, in io.Reader, ...)
- func Drains(cli plugin.CliConnection, args []string, log Logger, tableWriter io.Writer, ...)
- func PushSpaceDrain(cli plugin.CliConnection, args []string, d Downloader, f RefreshTokenFetcher, ...)
- type DeleteDrainFunc
- type Downloader
- type DrainFetcher
- type GithubReleaseDownloader
- type HTTPClient
- type Logger
- type RefreshTokenFetcher
- type TokenFetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindDrain ¶
func BindDrain(cli plugin.CliConnection, df DrainFetcher, args []string, log Logger)
func CreateDrain ¶
func CreateDrain( cli plugin.CliConnection, args []string, log Logger, )
func DeleteDrain ¶
func DeleteDrain(cli plugin.CliConnection, args []string, log Logger, in io.Reader, serviceDrainFetcher DrainFetcher)
func DeleteSpaceDrain ¶
func DeleteSpaceDrain(cli plugin.CliConnection, args []string, log Logger, in io.Reader, df DrainFetcher, deleteDrain DeleteDrainFunc)
func Drains ¶
func Drains( cli plugin.CliConnection, args []string, log Logger, tableWriter io.Writer, fetchers ...DrainFetcher, )
func PushSpaceDrain ¶
func PushSpaceDrain( cli plugin.CliConnection, args []string, d Downloader, f RefreshTokenFetcher, log Logger, )
Types ¶
type DeleteDrainFunc ¶
type DeleteDrainFunc func(plugin.CliConnection, []string, Logger, io.Reader, DrainFetcher)
type Downloader ¶
type GithubReleaseDownloader ¶
type GithubReleaseDownloader struct {
// contains filtered or unexported fields
}
func NewGithubReleaseDownloader ¶
func NewGithubReleaseDownloader(c HTTPClient, log Logger) GithubReleaseDownloader
func (GithubReleaseDownloader) Download ¶
func (d GithubReleaseDownloader) Download(assetName string) string
type Logger ¶
type Logger interface { Printf(format string, args ...interface{}) Fatalf(format string, args ...interface{}) Print(...interface{}) }
Logger is used for outputting log-cache results and errors
type RefreshTokenFetcher ¶
type TokenFetcher ¶
type TokenFetcher struct {
// contains filtered or unexported fields
}
func NewTokenFetcher ¶
func NewTokenFetcher(configPath string) *TokenFetcher
func (*TokenFetcher) RefreshToken ¶
func (tf *TokenFetcher) RefreshToken() (string, error)
Click to show internal directories.
Click to hide internal directories.