immuclienttest

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 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
}

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