spec

package
v0.0.0-...-3072089 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2015 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertFor

func CertFor(certName string) *tls.Certificate

func CertPool

func CertPool() *x509.CertPool

func CreateTarball

func CreateTarball(installScript string) string

func FileExists

func FileExists(name string) bool

func FixtureData

func FixtureData(name string) []byte

func FixtureFilename

func FixtureFilename(name string) string

func GetFreePort

func GetFreePort() int

func HttpClient

func HttpClient(clientCert *tls.Certificate) *http.Client

func HttpDo

func HttpDo(method, url string, clientCert *tls.Certificate) (*http.Response, error)

func HttpPut

func HttpPut(url, uploadFile string, clientCert *tls.Certificate) (*http.Response, error)

func StartDownloadServer

func StartDownloadServer(port int, tarballPath string, directorCert *tls.Certificate) net.Listener

Types

type CapturableWriter

type CapturableWriter interface {
	Write(p []byte) (int, error)
	Suppress(pattern string, block func())
	Ignore(pattern string) *regexp.Regexp
	Capture(pattern string)
	Captured() string
}

func NewCapturableWriter

func NewCapturableWriter(out io.Writer) CapturableWriter

Jump to

Keyboard shortcuts

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