mock

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: interfaces.go

Generated by this command:

mockgen -source=interfaces.go -destination=../mock/interfaces.go -package=mock

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHandlerInterface

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

MockHandlerInterface is a mock of HandlerInterface interface.

func NewMockHandlerInterface

func NewMockHandlerInterface(ctrl *gomock.Controller) *MockHandlerInterface

NewMockHandlerInterface creates a new mock instance.

func (*MockHandlerInterface) ApiV1GetScan

func (m *MockHandlerInterface) ApiV1GetScan(w http.ResponseWriter, r *http.Request, imageId generated.ImageID)

ApiV1GetScan mocks base method.

func (*MockHandlerInterface) EXPECT

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

func (*MockHandlerInterface) Healthz

Healthz mocks base method.

type MockHandlerInterfaceMockRecorder

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

MockHandlerInterfaceMockRecorder is the mock recorder for MockHandlerInterface.

func (*MockHandlerInterfaceMockRecorder) ApiV1GetScan

func (mr *MockHandlerInterfaceMockRecorder) ApiV1GetScan(w, r, imageId any) *gomock.Call

ApiV1GetScan indicates an expected call of ApiV1GetScan.

func (*MockHandlerInterfaceMockRecorder) Healthz

func (mr *MockHandlerInterfaceMockRecorder) Healthz(w, r any) *gomock.Call

Healthz indicates an expected call of Healthz.

type MockS3Interface

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

MockS3Interface is a mock of S3Interface interface.

func NewMockS3Interface

func NewMockS3Interface(ctrl *gomock.Controller) *MockS3Interface

NewMockS3Interface creates a new mock instance.

func (*MockS3Interface) EXPECT

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

func (*MockS3Interface) FetchFromS3

func (m *MockS3Interface) FetchFromS3(arg0 string) ([]byte, error)

FetchFromS3 mocks base method.

func (*MockS3Interface) PutToS3

func (m *MockS3Interface) PutToS3(arg0, arg1, arg2 string, arg3 io.ReadSeeker) error

PutToS3 mocks base method.

type MockS3InterfaceMockRecorder

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

MockS3InterfaceMockRecorder is the mock recorder for MockS3Interface.

func (*MockS3InterfaceMockRecorder) FetchFromS3

func (mr *MockS3InterfaceMockRecorder) FetchFromS3(arg0 any) *gomock.Call

FetchFromS3 indicates an expected call of FetchFromS3.

func (*MockS3InterfaceMockRecorder) PutToS3

func (mr *MockS3InterfaceMockRecorder) PutToS3(arg0, arg1, arg2, arg3 any) *gomock.Call

PutToS3 indicates an expected call of PutToS3.

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) CopyFromRemoteServer

func (m *MockSSHInterface) CopyFromRemoteServer(srcPath, dstPath, filename string) (*os.File, error)

CopyFromRemoteServer mocks base method.

func (*MockSSHInterface) EXPECT

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

func (*MockSSHInterface) SFTPClose

func (m *MockSSHInterface) SFTPClose() error

SFTPClose mocks base method.

func (*MockSSHInterface) SSHClose

func (m *MockSSHInterface) SSHClose() error

SSHClose mocks base method.

type MockSSHInterfaceMockRecorder

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

MockSSHInterfaceMockRecorder is the mock recorder for MockSSHInterface.

func (*MockSSHInterfaceMockRecorder) CopyFromRemoteServer

func (mr *MockSSHInterfaceMockRecorder) CopyFromRemoteServer(srcPath, dstPath, filename any) *gomock.Call

CopyFromRemoteServer indicates an expected call of CopyFromRemoteServer.

func (*MockSSHInterfaceMockRecorder) SFTPClose

func (mr *MockSSHInterfaceMockRecorder) SFTPClose() *gomock.Call

SFTPClose indicates an expected call of SFTPClose.

func (*MockSSHInterfaceMockRecorder) SSHClose

func (mr *MockSSHInterfaceMockRecorder) SSHClose() *gomock.Call

SSHClose indicates an expected call of SSHClose.

type MockVaultInterface

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

MockVaultInterface is a mock of VaultInterface interface.

func NewMockVaultInterface

func NewMockVaultInterface(ctrl *gomock.Controller) *MockVaultInterface

NewMockVaultInterface creates a new mock instance.

func (*MockVaultInterface) EXPECT

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

func (*MockVaultInterface) Fetch

func (m *MockVaultInterface) Fetch(mountPath, secretPath, data string) ([]byte, error)

Fetch mocks base method.

type MockVaultInterfaceMockRecorder

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

MockVaultInterfaceMockRecorder is the mock recorder for MockVaultInterface.

func (*MockVaultInterfaceMockRecorder) Fetch

func (mr *MockVaultInterfaceMockRecorder) Fetch(mountPath, secretPath, data any) *gomock.Call

Fetch indicates an expected call of Fetch.

Jump to

Keyboard shortcuts

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