mock

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 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) ApiV1GetScans added in v0.3.0

func (m *MockHandlerInterface) ApiV1GetScans(w http.ResponseWriter, r *http.Request)

ApiV1GetScans mocks base method.

func (*MockHandlerInterface) ApiV1GetTest added in v0.3.0

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

ApiV1GetTest mocks base method.

func (*MockHandlerInterface) ApiV1GetTests added in v0.3.0

func (m *MockHandlerInterface) ApiV1GetTests(w http.ResponseWriter, r *http.Request)

ApiV1GetTests 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) ApiV1GetScans added in v0.3.0

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

ApiV1GetScans indicates an expected call of ApiV1GetScans.

func (*MockHandlerInterfaceMockRecorder) ApiV1GetTest added in v0.3.0

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

ApiV1GetTest indicates an expected call of ApiV1GetTest.

func (*MockHandlerInterfaceMockRecorder) ApiV1GetTests added in v0.3.0

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

ApiV1GetTests indicates an expected call of ApiV1GetTests.

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) Fetch added in v0.3.0

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

Fetch mocks base method.

func (*MockS3Interface) List added in v0.3.0

func (m *MockS3Interface) List() ([]string, error)

List mocks base method.

func (*MockS3Interface) Put added in v0.3.0

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

Put mocks base method.

type MockS3InterfaceMockRecorder

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

MockS3InterfaceMockRecorder is the mock recorder for MockS3Interface.

func (*MockS3InterfaceMockRecorder) Fetch added in v0.3.0

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

Fetch indicates an expected call of Fetch.

func (*MockS3InterfaceMockRecorder) List added in v0.3.0

List indicates an expected call of List.

func (*MockS3InterfaceMockRecorder) Put added in v0.3.0

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

Put indicates an expected call of Put.

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