acceptance

package
v0.0.0-...-34d941c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdRunner

type CmdRunner interface {
	RunCommand(env map[string]string, args ...string) (string, string, int, error)
	RunStreamingCommand(out io.Writer, env map[string]string, args ...string) (string, string, int, error)
}

func NewSSHCmdRunner

func NewSSHCmdRunner(
	vmUsername string,
	vmIP string,
	vmPort string,
	privateKeyPath string,
	logger boshlog.Logger,
) CmdRunner

type Config

type Config struct {
	VMUsername       string `json:"vm_username"`
	VMIP             string `json:"vm_ip"`
	VMPort           string `json:"vm_port"`
	PrivateKeyPath   string `json:"private_key_path"`
	StemcellURL      string `json:"stemcell_url"`
	StemcellPath     string `json:"stemcell_path"`
	CpiReleaseURL    string `json:"cpi_release_url"`
	CpiReleasePath   string `json:"cpi_release_path"`
	DummyReleasePath string `json:"dummy_release_path"`
}

func NewConfig

func NewConfig(fs boshsys.FileSystem) (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

type Environment

type Environment interface {
	Home() string
	Path(string) string
	Copy(string, string) error
	WriteContent(string, []byte) error
	RemoteDownload(string, string) error
	DownloadOrCopy(string, string, string) error
}

func NewRemoteTestEnvironment

func NewRemoteTestEnvironment(
	vmUsername string,
	vmIP string,
	vmPort string,
	privateKeyPath string,
	fileSystem boshsys.FileSystem,
	logger boshlog.Logger,
) Environment

type InstanceSSH

type InstanceSSH interface {
	RunCommand(cmd string) (stdout, stderr string, exitCode int, err error)
	RunCommandWithSudo(cmd string) (stdout, stderr string, exitCode int, err error)
}

func NewInstanceSSH

func NewInstanceSSH(
	vmUsername string,
	vmIP string,
	vmPort string,
	privateKeyPath string,
	instanceUsername string,
	instanceIP string,
	instancePassword string,
	fileSystem boshsys.FileSystem,
	logger boshlog.Logger,
) InstanceSSH

type MultiWriter

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

MultiWriter implements mirrored writes to multiple io.Writer objects.

func NewMultiWriter

func NewMultiWriter(writers ...io.Writer) *MultiWriter

NewMultiWriter returns a new MultiWriter that proxies writes to multiple io.Writer objects.

func (*MultiWriter) Write

func (b *MultiWriter) Write(p []byte) (nn int, err error)

Write writes the contents of p into all proxied writers. It returns the number of bytes written. If nn < len(p), it also returns an error explaining why the write is short. If a proxied write errors, subsequent writers will not be written to.

Jump to

Keyboard shortcuts

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