kitchen

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2015 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Overview

Package kitchen implements a driver based on Test Kitchen.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Instance    string
	SSHClient   *openssh.Client
	RsyncClient *rsync.Client
}

Driver is a driver based on Test Kitchen.

func NewDriver

func NewDriver(instance string, sshOptions, rsyncOptions []string) (*Driver, error)

NewDriver creates a new Test Kitchen driver that communicates with the given Test Kitchen instance. Under the hood the instance's YAML configuration is parsed to get a working SSH configuration.

func (Driver) RunCommand

func (drv Driver) RunCommand(args []string) error

RunCommand runs the specified command on the Test Kitchen instance.

func (Driver) String

func (drv Driver) String() string

String returns the driver's name.

func (Driver) Upload

func (drv Driver) Upload(dst string, src ...string) error

Upload copies files to the Test Kitchen instance.

Jump to

Keyboard shortcuts

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