# Packages

Package mock_interactive is a generated GoMock package.

# Functions

NewContext creates a Context.
NewGoExpectSpawner creates a new GoExpectSpawner.
SetSpawnFunc sets the SpawnFunc, allowing for the actual CNF tests to be run or mocked for unit test purposes.
SpawnOc creates an OpenShift Client subprocess, spawning the appropriate underlying PTY.
SpawnShell creates an interactive shell subprocess based on the value of $SHELL, spawning the appropriate underlying PTY.
SpawnSSH spawns an SSH session to a generic linux host using ssh provided by openssh-clients.

# Variables

UnitTestMode is used to determine if the context is unit test oriented v.s.

# Structs

Context represents an interactive context.
ExecSpawnFunc is an implementation of SpawnFunc using exec.Cmd.
GoExpectSpawner provides an implementation of a Spawner based on GoExpect.
Oc provides an OpenShift Client designed to wrap the "oc" CLI.

# Interfaces

Spawner provides an interface for creating interactive sessions such as oc, ssh, or shell.
SpawnFunc Abstracts a wrapper interface over the required methods of the exec.Cmd API for testing purposes.