Documentation ¶
Overview ¶
Package reader provides the reader of standard input.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Set = wire.NewSet( wire.Struct(new(Reader), "*"), wire.Bind(new(Interface), new(*Reader)), )
Set provides an implementation and interface for Reader.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
MockInterface is an autogenerated mock type for the Interface type
func NewMockInterface ¶
func NewMockInterface(t mockConstructorTestingTNewMockInterface) *MockInterface
NewMockInterface creates a new instance of MockInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockInterface) EXPECT ¶
func (_m *MockInterface) EXPECT() *MockInterface_Expecter
func (*MockInterface) ReadPassword ¶
func (_m *MockInterface) ReadPassword(prompt string) (string, error)
ReadPassword provides a mock function with given fields: prompt
func (*MockInterface) ReadString ¶
func (_m *MockInterface) ReadString(prompt string) (string, error)
ReadString provides a mock function with given fields: prompt
type MockInterface_Expecter ¶
type MockInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInterface_Expecter) ReadPassword ¶
func (_e *MockInterface_Expecter) ReadPassword(prompt interface{}) *MockInterface_ReadPassword_Call
ReadPassword is a helper method to define mock.On call
- prompt string
func (*MockInterface_Expecter) ReadString ¶
func (_e *MockInterface_Expecter) ReadString(prompt interface{}) *MockInterface_ReadString_Call
ReadString is a helper method to define mock.On call
- prompt string
type MockInterface_ReadPassword_Call ¶
MockInterface_ReadPassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadPassword'
func (*MockInterface_ReadPassword_Call) Return ¶
func (_c *MockInterface_ReadPassword_Call) Return(_a0 string, _a1 error) *MockInterface_ReadPassword_Call
func (*MockInterface_ReadPassword_Call) Run ¶
func (_c *MockInterface_ReadPassword_Call) Run(run func(prompt string)) *MockInterface_ReadPassword_Call
type MockInterface_ReadString_Call ¶
MockInterface_ReadString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadString'
func (*MockInterface_ReadString_Call) Return ¶
func (_c *MockInterface_ReadString_Call) Return(_a0 string, _a1 error) *MockInterface_ReadString_Call
func (*MockInterface_ReadString_Call) Run ¶
func (_c *MockInterface_ReadString_Call) Run(run func(prompt string)) *MockInterface_ReadString_Call
type Reader ¶
func (*Reader) ReadPassword ¶
ReadPassword reads a password from the stdin without echo back.