acceptance

package
v0.0.67 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 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"`
	StemcellSHA1        string `json:"stemcell_sha1"`
	StemcellPath        string `json:"stemcell_path"`
	CpiReleaseURL       string `json:"cpi_release_url"`
	CpiReleaseSHA1      string `json:"cpi_release_sha1"`
	CpiReleasePath      string `json:"cpi_release_path"`
	DummyReleasePath    string `json:"dummy_release_path"`
	DummyTooReleasePath string `json:"dummy_too_release_path"`
}

func NewConfig

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

func (*Config) IsLocalCpiRelease

func (c *Config) IsLocalCpiRelease() bool

func (*Config) IsLocalStemcell

func (c *Config) IsLocalStemcell() bool

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
}

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