mocks

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCert

type MockCert struct {
	// contains filtered or unexported fields
}

Mock of Cert interface

func NewMockCert

func NewMockCert(ctrl *gomock.Controller) *MockCert

func (*MockCert) EXPECT

func (_m *MockCert) EXPECT() *_MockCertRecorder

func (*MockCert) GenerateCerts

func (_m *MockCert) GenerateCerts(_param0 string) ([]byte, []byte, []byte, []byte, error)

type MockCmdRunner

type MockCmdRunner struct {
	// contains filtered or unexported fields
}

Mock of CmdRunner interface

func NewMockCmdRunner

func NewMockCmdRunner(ctrl *gomock.Controller) *MockCmdRunner

func (*MockCmdRunner) EXPECT

func (_m *MockCmdRunner) EXPECT() *_MockCmdRunnerRecorder

func (*MockCmdRunner) Output

func (_m *MockCmdRunner) Output(_param0 string, _param1 ...string) ([]byte, error)

func (*MockCmdRunner) Run

func (_m *MockCmdRunner) Run(_param0 string, _param1 ...string) error

type MockCommand

type MockCommand struct {
	// contains filtered or unexported fields
}

Mock of Command interface

func NewMockCommand

func NewMockCommand(ctrl *gomock.Controller) *MockCommand

func (*MockCommand) Distro

func (_m *MockCommand) Distro() string

func (*MockCommand) EXPECT

func (_m *MockCommand) EXPECT() *_MockCommandRecorder

func (*MockCommand) Run

func (_m *MockCommand) Run() error

type MockFS

type MockFS struct {
	// contains filtered or unexported fields
}

Mock of FS interface

func NewMockFS

func NewMockFS(ctrl *gomock.Controller) *MockFS

func (*MockFS) EXPECT

func (_m *MockFS) EXPECT() *_MockFSRecorder

func (*MockFS) Exists

func (_m *MockFS) Exists(_param0 string) (bool, error)

func (*MockFS) Mkdir

func (_m *MockFS) Mkdir(_param0 string) error

func (*MockFS) Read

func (_m *MockFS) Read(_param0 string) ([]byte, error)

func (*MockFS) Write

func (_m *MockFS) Write(_param0 string, _param1 io.Reader, _param2 os.FileMode) error

type MockUI

type MockUI struct {
	// contains filtered or unexported fields
}

Mock of UI interface

func NewMockUI

func NewMockUI(ctrl *gomock.Controller) *MockUI

func (*MockUI) EXPECT

func (_m *MockUI) EXPECT() *_MockUIRecorder

func (*MockUI) PrintHelpText

func (_m *MockUI) PrintHelpText(_param0 string) error

Jump to

Keyboard shortcuts

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