command

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: Apache-2.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 Downloader interface {
	Download(assetName string) string
}

type DrainFetcher

type DrainFetcher interface {
	Drains(spaceGUID string) ([]drain.Drain, error)
}

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 HTTPClient

type HTTPClient interface {
	Do(r *http.Request) (*http.Response, error)
}

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 RefreshTokenFetcher interface {
	RefreshToken() (string, error)
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL