immuclienttest

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 client.TokenService) *clientTest

func NewDefaultClientTest

func NewDefaultClientTest() *clientTest

Types

type HomedirServiceMock

type HomedirServiceMock struct {
	client.HomedirService
	// 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
}

func (*PasswordReader) Read

func (pr *PasswordReader) Read(msg string) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL