mocks

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FindingServiceClient

type FindingServiceClient struct {
	mock.Mock
}

FindingServiceClient is an autogenerated mock type for the FindingServiceClient type

func NewFindingServiceClient

func NewFindingServiceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *FindingServiceClient

NewFindingServiceClient creates a new instance of FindingServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FindingServiceClient) BatchListFinding

BatchListFinding provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) CleanOldResource added in v0.9.0

func (_m *FindingServiceClient) CleanOldResource(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)

CleanOldResource provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) ClearScore

ClearScore provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) DeleteFinding

DeleteFinding provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) DeleteFindingSetting

func (_m *FindingServiceClient) DeleteFindingSetting(ctx context.Context, in *finding.DeleteFindingSettingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)

DeleteFindingSetting provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) DeletePendFinding

DeletePendFinding provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) DeleteResource

DeleteResource provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) GetAISummary added in v0.6.0

GetAISummary provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) GetAISummaryStream added in v0.10.0

GetAISummaryStream provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) GetFinding

GetFinding provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) GetFindingSetting

GetFindingSetting provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) GetPendFinding

GetPendFinding provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) GetRecommend

GetRecommend provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) GetResource

GetResource provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) ListFinding

ListFinding provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) ListFindingSetting

ListFindingSetting provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) ListFindingTag

ListFindingTag provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) ListFindingTagName

ListFindingTagName provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) ListResource

ListResource provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) ListResourceTag

ListResourceTag provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) ListResourceTagName

ListResourceTagName provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) PutFinding

PutFinding provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) PutFindingBatch

PutFindingBatch provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) PutFindingSetting

PutFindingSetting provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) PutPendFinding

PutPendFinding provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) PutRecommend

PutRecommend provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) PutResource

PutResource provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) PutResourceBatch

PutResourceBatch provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) TagFinding

TagFinding provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) TagResource

TagResource provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) UntagByResourceName added in v0.9.0

UntagByResourceName provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) UntagFinding

UntagFinding provides a mock function with given fields: ctx, in, opts

func (*FindingServiceClient) UntagResource

UntagResource provides a mock function with given fields: ctx, in, opts

type FindingServiceServer

type FindingServiceServer struct {
	mock.Mock
}

FindingServiceServer is an autogenerated mock type for the FindingServiceServer type

func NewFindingServiceServer

func NewFindingServiceServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *FindingServiceServer

NewFindingServiceServer creates a new instance of FindingServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FindingServiceServer) BatchListFinding

BatchListFinding provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) CleanOldResource added in v0.9.0

func (_m *FindingServiceServer) CleanOldResource(_a0 context.Context, _a1 *emptypb.Empty) (*emptypb.Empty, error)

CleanOldResource provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) ClearScore

ClearScore provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) DeleteFinding

DeleteFinding provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) DeleteFindingSetting

DeleteFindingSetting provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) DeletePendFinding

DeletePendFinding provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) DeleteResource

DeleteResource provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) GetAISummary added in v0.6.0

GetAISummary provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) GetAISummaryStream added in v0.10.0

GetAISummaryStream provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) GetFinding

GetFinding provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) GetFindingSetting

GetFindingSetting provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) GetPendFinding

GetPendFinding provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) GetRecommend

GetRecommend provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) GetResource

GetResource provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) ListFinding

ListFinding provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) ListFindingSetting

ListFindingSetting provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) ListFindingTag

ListFindingTag provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) ListFindingTagName

ListFindingTagName provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) ListResource

ListResource provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) ListResourceTag

ListResourceTag provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) ListResourceTagName

ListResourceTagName provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) PutFinding

PutFinding provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) PutFindingBatch

PutFindingBatch provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) PutFindingSetting

PutFindingSetting provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) PutPendFinding

PutPendFinding provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) PutRecommend

PutRecommend provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) PutResource

PutResource provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) PutResourceBatch

PutResourceBatch provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) TagFinding

TagFinding provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) TagResource

TagResource provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) UntagByResourceName added in v0.9.0

UntagByResourceName provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) UntagFinding

UntagFinding provides a mock function with given fields: _a0, _a1

func (*FindingServiceServer) UntagResource

UntagResource provides a mock function with given fields: _a0, _a1

type FindingService_GetAISummaryClient added in v0.10.0

type FindingService_GetAISummaryClient struct {
	mock.Mock
}

FindingService_GetAISummaryClient is an autogenerated mock type for the FindingService_GetAISummaryClient type

func NewFindingService_GetAISummaryClient added in v0.10.0

func NewFindingService_GetAISummaryClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *FindingService_GetAISummaryClient

NewFindingService_GetAISummaryClient creates a new instance of FindingService_GetAISummaryClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FindingService_GetAISummaryClient) CloseSend added in v0.10.0

func (_m *FindingService_GetAISummaryClient) CloseSend() error

CloseSend provides a mock function with given fields:

func (*FindingService_GetAISummaryClient) Context added in v0.10.0

Context provides a mock function with given fields:

func (*FindingService_GetAISummaryClient) Header added in v0.10.0

Header provides a mock function with given fields:

func (*FindingService_GetAISummaryClient) Recv added in v0.10.0

Recv provides a mock function with given fields:

func (*FindingService_GetAISummaryClient) RecvMsg added in v0.10.0

func (_m *FindingService_GetAISummaryClient) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*FindingService_GetAISummaryClient) SendMsg added in v0.10.0

func (_m *FindingService_GetAISummaryClient) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*FindingService_GetAISummaryClient) Trailer added in v0.10.0

Trailer provides a mock function with given fields:

type FindingService_GetAISummaryServer added in v0.10.0

type FindingService_GetAISummaryServer struct {
	mock.Mock
}

FindingService_GetAISummaryServer is an autogenerated mock type for the FindingService_GetAISummaryServer type

func NewFindingService_GetAISummaryServer added in v0.10.0

func NewFindingService_GetAISummaryServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *FindingService_GetAISummaryServer

NewFindingService_GetAISummaryServer creates a new instance of FindingService_GetAISummaryServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FindingService_GetAISummaryServer) Context added in v0.10.0

Context provides a mock function with given fields:

func (*FindingService_GetAISummaryServer) RecvMsg added in v0.10.0

func (_m *FindingService_GetAISummaryServer) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*FindingService_GetAISummaryServer) Send added in v0.10.0

Send provides a mock function with given fields: _a0

func (*FindingService_GetAISummaryServer) SendHeader added in v0.10.0

func (_m *FindingService_GetAISummaryServer) SendHeader(_a0 metadata.MD) error

SendHeader provides a mock function with given fields: _a0

func (*FindingService_GetAISummaryServer) SendMsg added in v0.10.0

func (_m *FindingService_GetAISummaryServer) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*FindingService_GetAISummaryServer) SetHeader added in v0.10.0

SetHeader provides a mock function with given fields: _a0

func (*FindingService_GetAISummaryServer) SetTrailer added in v0.10.0

func (_m *FindingService_GetAISummaryServer) SetTrailer(_a0 metadata.MD)

SetTrailer provides a mock function with given fields: _a0

type FindingService_GetAISummaryStreamClient added in v0.10.0

type FindingService_GetAISummaryStreamClient struct {
	mock.Mock
}

FindingService_GetAISummaryStreamClient is an autogenerated mock type for the FindingService_GetAISummaryStreamClient type

func NewFindingService_GetAISummaryStreamClient added in v0.10.0

func NewFindingService_GetAISummaryStreamClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *FindingService_GetAISummaryStreamClient

NewFindingService_GetAISummaryStreamClient creates a new instance of FindingService_GetAISummaryStreamClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FindingService_GetAISummaryStreamClient) CloseSend added in v0.10.0

CloseSend provides a mock function with given fields:

func (*FindingService_GetAISummaryStreamClient) Context added in v0.10.0

Context provides a mock function with given fields:

func (*FindingService_GetAISummaryStreamClient) Header added in v0.10.0

Header provides a mock function with given fields:

func (*FindingService_GetAISummaryStreamClient) Recv added in v0.10.0

Recv provides a mock function with given fields:

func (*FindingService_GetAISummaryStreamClient) RecvMsg added in v0.10.0

func (_m *FindingService_GetAISummaryStreamClient) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*FindingService_GetAISummaryStreamClient) SendMsg added in v0.10.0

func (_m *FindingService_GetAISummaryStreamClient) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*FindingService_GetAISummaryStreamClient) Trailer added in v0.10.0

Trailer provides a mock function with given fields:

type FindingService_GetAISummaryStreamServer added in v0.10.0

type FindingService_GetAISummaryStreamServer struct {
	mock.Mock
}

FindingService_GetAISummaryStreamServer is an autogenerated mock type for the FindingService_GetAISummaryStreamServer type

func NewFindingService_GetAISummaryStreamServer added in v0.10.0

func NewFindingService_GetAISummaryStreamServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *FindingService_GetAISummaryStreamServer

NewFindingService_GetAISummaryStreamServer creates a new instance of FindingService_GetAISummaryStreamServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FindingService_GetAISummaryStreamServer) Context added in v0.10.0

Context provides a mock function with given fields:

func (*FindingService_GetAISummaryStreamServer) RecvMsg added in v0.10.0

func (_m *FindingService_GetAISummaryStreamServer) RecvMsg(m interface{}) error

RecvMsg provides a mock function with given fields: m

func (*FindingService_GetAISummaryStreamServer) Send added in v0.10.0

Send provides a mock function with given fields: _a0

func (*FindingService_GetAISummaryStreamServer) SendHeader added in v0.10.0

SendHeader provides a mock function with given fields: _a0

func (*FindingService_GetAISummaryStreamServer) SendMsg added in v0.10.0

func (_m *FindingService_GetAISummaryStreamServer) SendMsg(m interface{}) error

SendMsg provides a mock function with given fields: m

func (*FindingService_GetAISummaryStreamServer) SetHeader added in v0.10.0

SetHeader provides a mock function with given fields: _a0

func (*FindingService_GetAISummaryStreamServer) SetTrailer added in v0.10.0

SetTrailer provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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