Documentation ¶
Index ¶
- func CaptureStdout(f func()) string
- type ClientTest
- type HomedirServiceMock
- func (h *HomedirServiceMock) DeleteFileFromUserHomeDir(pathToFile string) error
- func (h *HomedirServiceMock) FileExistsInUserHomeDir(pathToFile string) (bool, error)
- func (h *HomedirServiceMock) ReadFileFromUserHomeDir(pathToFile string) (string, error)
- func (h *HomedirServiceMock) WriteFileToUserHomeDir(content []byte, pathToFile string) error
- type PasswordReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureStdout ¶
func CaptureStdout(f func()) string
Types ¶
type ClientTest ¶ added in v1.4.1
type ClientTest struct { Imc immuc.Client Ts tokenservice.TokenService Options immuc.Options Pr helper.PasswordReader Dialer servertest.BuffDialer }
func NewClientTest ¶
func NewClientTest(pr helper.PasswordReader, tkns tokenservice.TokenService, opts *client.Options) *ClientTest
func NewDefaultClientTest ¶
func NewDefaultClientTest() *ClientTest
func (*ClientTest) Connect ¶ added in v1.4.1
func (c *ClientTest) Connect(dialer servertest.BuffDialer)
func (*ClientTest) Login ¶ added in v1.4.1
func (c *ClientTest) Login(username string)
func (*ClientTest) WithOptions ¶ added in v1.4.1
func (ct *ClientTest) WithOptions(opts *immuc.Options) *ClientTest
func (*ClientTest) WithTokenFileService ¶ added in v1.4.1
func (ct *ClientTest) WithTokenFileService(tkns tokenservice.TokenService) *ClientTest
type HomedirServiceMock ¶
type HomedirServiceMock struct {
// contains filtered or unexported fields
}
func (*HomedirServiceMock) DeleteFileFromUserHomeDir ¶
func (h *HomedirServiceMock) DeleteFileFromUserHomeDir(pathToFile string) error
func (*HomedirServiceMock) FileExistsInUserHomeDir ¶
func (h *HomedirServiceMock) FileExistsInUserHomeDir(pathToFile string) (bool, error)
func (*HomedirServiceMock) ReadFileFromUserHomeDir ¶
func (h *HomedirServiceMock) ReadFileFromUserHomeDir(pathToFile string) (string, error)
func (*HomedirServiceMock) WriteFileToUserHomeDir ¶
func (h *HomedirServiceMock) WriteFileToUserHomeDir(content []byte, pathToFile string) error
type PasswordReader ¶
type PasswordReader struct { Pass []string // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.