Documentation
¶
Index ¶
- type Answer
- type FakeUI
- func (ui *FakeUI) AskForChoice(opts types.ChoiceOpts) (int, error)
- func (ui *FakeUI) AskForConfirmation() error
- func (ui *FakeUI) AskForPassword(label string) (string, error)
- func (ui *FakeUI) AskForText(opts types.TextOpts) (string, error)
- func (ui *FakeUI) BeginLinef(pattern string, args ...interface{})
- func (ui *FakeUI) EndLinef(pattern string, args ...interface{})
- func (ui *FakeUI) ErrorLinef(pattern string, args ...interface{})
- func (ui *FakeUI) Flush()
- func (ui *FakeUI) IsInteractive() bool
- func (ui *FakeUI) PrintBlock(block []byte)
- func (ui *FakeUI) PrintErrorBlock(block string)
- func (ui *FakeUI) PrintLinef(pattern string, args ...interface{})
- func (ui *FakeUI) PrintTable(table Table)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeUI ¶
type FakeUI struct { Said []string Errors []string Blocks []string // keep as string to make ginkgo err msgs easier Table Table Tables []Table AskedTextLabels []string AskedText []Answer AskedPasswordLabels []string AskedPasswords []Answer AskedChoiceCalled bool AskedChoiceLabel string AskedChoiceOptions []string AskedChoiceChosens []int AskedChoiceErrs []error AskedConfirmationCalled bool AskedConfirmationErr error Interactive bool Flushed bool // contains filtered or unexported fields }
func (*FakeUI) AskForChoice ¶
func (ui *FakeUI) AskForChoice(opts types.ChoiceOpts) (int, error)
func (*FakeUI) AskForConfirmation ¶
func (*FakeUI) BeginLinef ¶
func (*FakeUI) ErrorLinef ¶
func (*FakeUI) IsInteractive ¶
func (*FakeUI) PrintBlock ¶
func (*FakeUI) PrintErrorBlock ¶
func (*FakeUI) PrintLinef ¶
func (*FakeUI) PrintTable ¶
func (ui *FakeUI) PrintTable(table Table)
Click to show internal directories.
Click to hide internal directories.