Documentation ¶
Index ¶
Constants ¶
View Source
const ( PromptExpression = `(\$ |\# )` CRLF = "\r\n" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Expecter ¶
type Expecter struct {
// contains filtered or unexported fields
}
func NewExpecter ¶
func NewExpecter(serialConsoleClient vmiSerialConsoleClient, vmiNamespace, vmiName string, opts ...expect.Option) Expecter
NewExpecter will connect to an already logged in VMI console and return the generated expecter it will wait `timeout` for the connection.
func (Expecter) GetGuestKernelArgs ¶ added in v0.3.0
func (Expecter) LoginToCentOSAsRoot ¶ added in v0.3.1
func (Expecter) SafeExpectBatchWithResponse ¶
func (e Expecter) SafeExpectBatchWithResponse(expected []expect.Batcher, timeout time.Duration) ([]expect.BatchRes, error)
SafeExpectBatchWithResponse runs the batch from `expected`, connecting to a VMI's console and waiting for the batch to return with a response until timeout. It validates that the commands arrive to the console. NOTE: This functions inherits limitations from `expectBatchWithValidatedSend`, refer to it for more information.
Click to show internal directories.
Click to hide internal directories.