wrapper

package
v0.0.0-...-9a4260c Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package wrapper is a generated GoMock package.

This file is a generated GoMock file.

Package wrapper is a generated GoMock package.

Package wrapper is a generated GoMock package.

Package wrapper is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecInterface

type ExecInterface interface {
	// CommandExecute is wrapper function for CommandContext and Run function of exec package
	CommandExecute(ctx context.Context, resultStdout, resultStderr *bytes.Buffer, name string, arg ...string) error
}

ExecInterface is wrapper interface of exec package

var ExecWrapper ExecInterface

ExecWrapper is to be used instead of exec package

type IoUtilInterface

type IoUtilInterface interface {
	// ReadFile is wrapper function for Readfile function of ioutil package
	ReadFile(fileName string) ([]byte, error)
	// WriteFile is wrapper function for Writefile function of ioutil package
	WriteFile(fileName string, data []byte, fileMode os.FileMode) error
}

IoUtilInterface is wrapper interface of ioutil package

var IoUtilWrapper IoUtilInterface

IoUtilWrapper is to be used instead of iotuil package

type MockExecInterface

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

MockExecInterface is a mock of ExecInterface interface

func NewMockExecInterface

func NewMockExecInterface(ctrl *gomock.Controller) *MockExecInterface

NewMockExecInterface creates a new mock instance

func (*MockExecInterface) CommandExecute

func (m *MockExecInterface) CommandExecute(ctx context.Context, resultStdout, resultStderr *bytes.Buffer, name string, arg ...string) error

CommandExecute mocks base method

func (*MockExecInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

type MockExecInterfaceMockRecorder

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

MockExecInterfaceMockRecorder is the mock recorder for MockExecInterface

func (*MockExecInterfaceMockRecorder) CommandExecute

func (mr *MockExecInterfaceMockRecorder) CommandExecute(ctx, resultStdout, resultStderr, name interface{}, arg ...interface{}) *gomock.Call

CommandExecute indicates an expected call of CommandExecute

type MockIoUtilInterface

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

MockIoUtilInterface is a mock of IoUtilInterface interface

func NewMockIoUtilInterface

func NewMockIoUtilInterface(ctrl *gomock.Controller) *MockIoUtilInterface

NewMockIoUtilInterface creates a new mock instance

func (*MockIoUtilInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockIoUtilInterface) ReadFile

func (m *MockIoUtilInterface) ReadFile(fileName string) ([]byte, error)

ReadFile mocks base method

func (*MockIoUtilInterface) WriteFile

func (m *MockIoUtilInterface) WriteFile(fileName string, data []byte, fileMode os.FileMode) error

WriteFile mocks base method

type MockIoUtilInterfaceMockRecorder

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

MockIoUtilInterfaceMockRecorder is the mock recorder for MockIoUtilInterface

func (*MockIoUtilInterfaceMockRecorder) ReadFile

func (mr *MockIoUtilInterfaceMockRecorder) ReadFile(fileName interface{}) *gomock.Call

ReadFile indicates an expected call of ReadFile

func (*MockIoUtilInterfaceMockRecorder) WriteFile

func (mr *MockIoUtilInterfaceMockRecorder) WriteFile(fileName, data, fileMode interface{}) *gomock.Call

WriteFile indicates an expected call of WriteFile

type MockOsInterface

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

MockOsInterface is a mock of OsInterface interface

func NewMockOsInterface

func NewMockOsInterface(ctrl *gomock.Controller) *MockOsInterface

NewMockOsInterface creates a new mock instance

func (*MockOsInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockOsInterface) MkdirAll

func (m *MockOsInterface) MkdirAll(path string, perm os.FileMode) error

MkdirAll mocks base method

func (*MockOsInterface) RemoveAll

func (m *MockOsInterface) RemoveAll(path string) error

RemoveAll mocks base method

type MockOsInterfaceMockRecorder

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

MockOsInterfaceMockRecorder is the mock recorder for MockOsInterface

func (*MockOsInterfaceMockRecorder) MkdirAll

func (mr *MockOsInterfaceMockRecorder) MkdirAll(path, perm interface{}) *gomock.Call

MkdirAll indicates an expected call of MkdirAll

func (*MockOsInterfaceMockRecorder) RemoveAll

func (mr *MockOsInterfaceMockRecorder) RemoveAll(path interface{}) *gomock.Call

RemoveAll indicates an expected call of RemoveAll

type MockSSHInterface

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

MockSSHInterface is a mock of SSHInterface interface

func NewMockSSHInterface

func NewMockSSHInterface(ctrl *gomock.Controller) *MockSSHInterface

NewMockSSHInterface creates a new mock instance

func (*MockSSHInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockSSHInterface) Run

func (m *MockSSHInterface) Run(addr, command string, resultStdout, resultStderr *bytes.Buffer, config *ssh.ClientConfig) error

Run mocks base method

type MockSSHInterfaceMockRecorder

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

MockSSHInterfaceMockRecorder is the mock recorder for MockSSHInterface

func (*MockSSHInterfaceMockRecorder) Run

func (mr *MockSSHInterfaceMockRecorder) Run(addr, command, resultStdout, resultStderr, config interface{}) *gomock.Call

Run indicates an expected call of Run

type MockYamlDecoderInterface

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

MockYamlDecoderInterface is a mock of YamlDecoderInterface interface

func NewMockYamlDecoderInterface

func NewMockYamlDecoderInterface(ctrl *gomock.Controller) *MockYamlDecoderInterface

NewMockYamlDecoderInterface creates a new mock instance

func (*MockYamlDecoderInterface) Decode

func (m *MockYamlDecoderInterface) Decode(v interface{}) error

Decode mocks base method

func (*MockYamlDecoderInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

type MockYamlDecoderInterfaceMockRecorder

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

MockYamlDecoderInterfaceMockRecorder is the mock recorder for MockYamlDecoderInterface

func (*MockYamlDecoderInterfaceMockRecorder) Decode

func (mr *MockYamlDecoderInterfaceMockRecorder) Decode(v interface{}) *gomock.Call

Decode indicates an expected call of Decode

type MockYamlInterface

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

MockYamlInterface is a mock of YamlInterface interface

func NewMockYamlInterface

func NewMockYamlInterface(ctrl *gomock.Controller) *MockYamlInterface

NewMockYamlInterface creates a new mock instance

func (*MockYamlInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockYamlInterface) Marshal

func (m *MockYamlInterface) Marshal(in interface{}) ([]byte, error)

Marshal mocks base method

func (*MockYamlInterface) NewDecoder

NewDecoder mocks base method

func (*MockYamlInterface) Unmarshal

func (m *MockYamlInterface) Unmarshal(in []byte, out interface{}) error

Unmarshal mocks base method

type MockYamlInterfaceMockRecorder

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

MockYamlInterfaceMockRecorder is the mock recorder for MockYamlInterface

func (*MockYamlInterfaceMockRecorder) Marshal

func (mr *MockYamlInterfaceMockRecorder) Marshal(in interface{}) *gomock.Call

Marshal indicates an expected call of Marshal

func (*MockYamlInterfaceMockRecorder) NewDecoder

func (mr *MockYamlInterfaceMockRecorder) NewDecoder(r interface{}) *gomock.Call

NewDecoder indicates an expected call of NewDecoder

func (*MockYamlInterfaceMockRecorder) Unmarshal

func (mr *MockYamlInterfaceMockRecorder) Unmarshal(in, out interface{}) *gomock.Call

Unmarshal indicates an expected call of Unmarshal

type OsInterface

type OsInterface interface {
	// MkdirAll is wrapper function for MkdirAll function of os package
	MkdirAll(path string, perm os.FileMode) error
	// RemoveAll is wrapper function for RemoveAll function of os package
	RemoveAll(path string) error
}

OsInterface is wrapper interface of os package

var OsWrapper OsInterface

OsWrapper is to be used instead of os package

type SSHInterface

type SSHInterface interface {
	// Run is wrapper function for ssh execution process of ssh package
	Run(addr, command string, resultStdout, resultStderr *bytes.Buffer, config *ssh.ClientConfig) error
}

SSHInterface is wrapper interface of ssh package

var SSHWrapper SSHInterface

SSHWrapper is to be used instead of ssh package

type YamlDecoderInterface

type YamlDecoderInterface interface {
	// Decode is wrapper function for Decode function of yaml package
	Decode(v interface{}) (err error)
}

YamlDecoderInterface is wrapper interface of Decode struct of yaml package

type YamlInterface

type YamlInterface interface {
	// Unmarshal is wrapper function for Unmarshal function of yaml package
	Unmarshal(in []byte, out interface{}) (err error)
	// Marshal is wrapper function for Marshal function of yaml package
	Marshal(in interface{}) (out []byte, err error)
	// NewDecoder is wrapper function for NewDecoder function of yaml package
	NewDecoder(r io.Reader) YamlDecoderInterface
}

YamlInterface is wrapper interface of yaml package

var YamlWrapper YamlInterface

YamlWrapper is to be used instead of yaml package

Jump to

Keyboard shortcuts

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