Documentation
¶
Index ¶
- func InitDriverImpl(driver string) func(string) (Driver, error)
- type DockerDriver
- func (d *DockerDriver) Destroy()
- func (d *DockerDriver) GetConfig(t *testing.T) (unversioned.Config, error)
- func (d *DockerDriver) ProcessCommand(t *testing.T, envVars []unversioned.EnvVar, fullCommand []string) (string, string, int)
- func (d *DockerDriver) ReadDir(t *testing.T, target string) ([]os.FileInfo, error)
- func (d *DockerDriver) ReadFile(t *testing.T, target string) ([]byte, error)
- func (d *DockerDriver) Setup(t *testing.T, envVars []unversioned.EnvVar, fullCommands []unversioned.Command)
- func (d *DockerDriver) StatFile(t *testing.T, target string) (os.FileInfo, error)
- type Driver
- type TarDriver
- func (d *TarDriver) Destroy()
- func (d *TarDriver) GetConfig(t *testing.T) (unversioned.Config, error)
- func (d *TarDriver) ProcessCommand(t *testing.T, envVars []unversioned.EnvVar, fullCommand []string) (string, string, int)
- func (d *TarDriver) ReadDir(t *testing.T, path string) ([]os.FileInfo, error)
- func (d *TarDriver) ReadFile(t *testing.T, path string) ([]byte, error)
- func (d *TarDriver) Setup(t *testing.T, envVars []unversioned.EnvVar, fullCommand []unversioned.Command)
- func (d *TarDriver) StatFile(t *testing.T, path string) (os.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DockerDriver ¶
type DockerDriver struct {
// contains filtered or unexported fields
}
func (*DockerDriver) Destroy ¶
func (d *DockerDriver) Destroy()
func (*DockerDriver) GetConfig ¶
func (d *DockerDriver) GetConfig(t *testing.T) (unversioned.Config, error)
func (*DockerDriver) ProcessCommand ¶
func (d *DockerDriver) ProcessCommand(t *testing.T, envVars []unversioned.EnvVar, fullCommand []string) (string, string, int)
func (*DockerDriver) Setup ¶
func (d *DockerDriver) Setup(t *testing.T, envVars []unversioned.EnvVar, fullCommands []unversioned.Command)
type Driver ¶
type Driver interface {
Setup(t *testing.T, envVars []unversioned.EnvVar, fullCommand []unversioned.Command)
// given an array of command parts, construct a full command and execute it against the
// current environment. a list of environment variables can be passed to be set in the
// environment before the command is executed. additionally, a boolean flag is passed
// to specify whether or not we care about the output of the command.
ProcessCommand(t *testing.T, envVars []unversioned.EnvVar, fullCommand []string) (string, string, int)
StatFile(t *testing.T, path string) (os.FileInfo, error)
ReadFile(t *testing.T, path string) ([]byte, error)
ReadDir(t *testing.T, path string) ([]os.FileInfo, error)
GetConfig(t *testing.T) (unversioned.Config, error)
Destroy()
}
func NewDockerDriver ¶
func NewTarDriver ¶
Click to show internal directories.
Click to hide internal directories.