Documentation ¶
Index ¶
- func CaptureStdout(f func()) string
- func NewClientTest(pr helper.PasswordReader, tkns tokenservice.TokenService) *clientTest
- func NewDefaultClientTest() *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
func NewClientTest ¶
func NewClientTest(pr helper.PasswordReader, tkns tokenservice.TokenService) *clientTest
func NewDefaultClientTest ¶
func NewDefaultClientTest() *clientTest
Types ¶
type HomedirServiceMock ¶
type HomedirServiceMock struct { homedir.HomedirService Token []byte }
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.