command

package
v0.0.0-...-89061c5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2018 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PushCanaryRouter

func PushCanaryRouter(
	cli plugin.CliConnection,
	reader io.Reader,
	args []string,
	d Downloader,
	r logcache.Reader,
	log Logger,
)

Types

type Downloader

type Downloader interface {
	Download(assetName string) string
}

type GithubReleaseDownloader

type GithubReleaseDownloader struct {
	// contains filtered or unexported fields
}

func NewGithubReleaseDownloader

func NewGithubReleaseDownloader(repoName string, 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{})
}

Jump to

Keyboard shortcuts

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