Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockFilterer
- type MockFiltererMockRecorder
- type MockGrafeasClient
- func (m *MockGrafeasClient) BatchCreateNotes(arg0 context.Context, arg1 *grafeas_go_proto.BatchCreateNotesRequest, ...) (*grafeas_go_proto.BatchCreateNotesResponse, error)
- func (m *MockGrafeasClient) BatchCreateOccurrences(arg0 context.Context, arg1 *grafeas_go_proto.BatchCreateOccurrencesRequest, ...) (*grafeas_go_proto.BatchCreateOccurrencesResponse, error)
- func (m *MockGrafeasClient) CreateNote(arg0 context.Context, arg1 *grafeas_go_proto.CreateNoteRequest, ...) (*grafeas_go_proto.Note, error)
- func (m *MockGrafeasClient) CreateOccurrence(arg0 context.Context, arg1 *grafeas_go_proto.CreateOccurrenceRequest, ...) (*grafeas_go_proto.Occurrence, error)
- func (m *MockGrafeasClient) DeleteNote(arg0 context.Context, arg1 *grafeas_go_proto.DeleteNoteRequest, ...) (*emptypb.Empty, error)
- func (m *MockGrafeasClient) DeleteOccurrence(arg0 context.Context, arg1 *grafeas_go_proto.DeleteOccurrenceRequest, ...) (*emptypb.Empty, error)
- func (m *MockGrafeasClient) EXPECT() *MockGrafeasClientMockRecorder
- func (m *MockGrafeasClient) GetNote(arg0 context.Context, arg1 *grafeas_go_proto.GetNoteRequest, ...) (*grafeas_go_proto.Note, error)
- func (m *MockGrafeasClient) GetOccurrence(arg0 context.Context, arg1 *grafeas_go_proto.GetOccurrenceRequest, ...) (*grafeas_go_proto.Occurrence, error)
- func (m *MockGrafeasClient) GetOccurrenceNote(arg0 context.Context, arg1 *grafeas_go_proto.GetOccurrenceNoteRequest, ...) (*grafeas_go_proto.Note, error)
- func (m *MockGrafeasClient) GetVulnerabilityOccurrencesSummary(arg0 context.Context, ...) (*grafeas_go_proto.VulnerabilityOccurrencesSummary, error)
- func (m *MockGrafeasClient) ListNoteOccurrences(arg0 context.Context, arg1 *grafeas_go_proto.ListNoteOccurrencesRequest, ...) (*grafeas_go_proto.ListNoteOccurrencesResponse, error)
- func (m *MockGrafeasClient) ListNotes(arg0 context.Context, arg1 *grafeas_go_proto.ListNotesRequest, ...) (*grafeas_go_proto.ListNotesResponse, error)
- func (m *MockGrafeasClient) ListOccurrences(arg0 context.Context, arg1 *grafeas_go_proto.ListOccurrencesRequest, ...) (*grafeas_go_proto.ListOccurrencesResponse, error)
- func (m *MockGrafeasClient) UpdateNote(arg0 context.Context, arg1 *grafeas_go_proto.UpdateNoteRequest, ...) (*grafeas_go_proto.Note, error)
- func (m *MockGrafeasClient) UpdateOccurrence(arg0 context.Context, arg1 *grafeas_go_proto.UpdateOccurrenceRequest, ...) (*grafeas_go_proto.Occurrence, error)
- type MockGrafeasClientMockRecorder
- func (mr *MockGrafeasClientMockRecorder) BatchCreateNotes(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGrafeasClientMockRecorder) BatchCreateOccurrences(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGrafeasClientMockRecorder) CreateNote(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGrafeasClientMockRecorder) CreateOccurrence(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGrafeasClientMockRecorder) DeleteNote(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGrafeasClientMockRecorder) DeleteOccurrence(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGrafeasClientMockRecorder) GetNote(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGrafeasClientMockRecorder) GetOccurrence(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGrafeasClientMockRecorder) GetOccurrenceNote(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGrafeasClientMockRecorder) GetVulnerabilityOccurrencesSummary(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGrafeasClientMockRecorder) ListNoteOccurrences(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGrafeasClientMockRecorder) ListNotes(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGrafeasClientMockRecorder) ListOccurrences(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGrafeasClientMockRecorder) UpdateNote(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGrafeasClientMockRecorder) UpdateOccurrence(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- type MockGrafeasProjectsClient
- func (m *MockGrafeasProjectsClient) CreateProject(arg0 context.Context, arg1 *project_go_proto.CreateProjectRequest, ...) (*project_go_proto.Project, error)
- func (m *MockGrafeasProjectsClient) DeleteProject(arg0 context.Context, arg1 *project_go_proto.DeleteProjectRequest, ...) (*emptypb.Empty, error)
- func (m *MockGrafeasProjectsClient) EXPECT() *MockGrafeasProjectsClientMockRecorder
- func (m *MockGrafeasProjectsClient) GetProject(arg0 context.Context, arg1 *project_go_proto.GetProjectRequest, ...) (*project_go_proto.Project, error)
- func (m *MockGrafeasProjectsClient) ListProjects(arg0 context.Context, arg1 *project_go_proto.ListProjectsRequest, ...) (*project_go_proto.ListProjectsResponse, error)
- type MockGrafeasProjectsClientMockRecorder
- func (mr *MockGrafeasProjectsClientMockRecorder) CreateProject(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGrafeasProjectsClientMockRecorder) DeleteProject(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGrafeasProjectsClientMockRecorder) GetProject(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockGrafeasProjectsClientMockRecorder) ListProjects(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- type MockOpaClient
- type MockOpaClientMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFilterer ¶
type MockFilterer struct {
// contains filtered or unexported fields
}
MockFilterer is a mock of Filterer interface
func NewMockFilterer ¶
func NewMockFilterer(ctrl *gomock.Controller) *MockFilterer
NewMockFilterer creates a new mock instance
func (*MockFilterer) EXPECT ¶
func (m *MockFilterer) EXPECT() *MockFiltererMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFilterer) ParseExpression ¶
func (m *MockFilterer) ParseExpression(arg0 string) (*filtering.Query, error)
ParseExpression mocks base method
type MockFiltererMockRecorder ¶
type MockFiltererMockRecorder struct {
// contains filtered or unexported fields
}
MockFiltererMockRecorder is the mock recorder for MockFilterer
func (*MockFiltererMockRecorder) ParseExpression ¶
func (mr *MockFiltererMockRecorder) ParseExpression(arg0 interface{}) *gomock.Call
ParseExpression indicates an expected call of ParseExpression
type MockGrafeasClient ¶
type MockGrafeasClient struct {
// contains filtered or unexported fields
}
MockGrafeasClient is a mock of GrafeasV1Beta1Client interface
func NewMockGrafeasClient ¶
func NewMockGrafeasClient(ctrl *gomock.Controller) *MockGrafeasClient
NewMockGrafeasClient creates a new mock instance
func (*MockGrafeasClient) BatchCreateNotes ¶
func (m *MockGrafeasClient) BatchCreateNotes(arg0 context.Context, arg1 *grafeas_go_proto.BatchCreateNotesRequest, arg2 ...grpc.CallOption) (*grafeas_go_proto.BatchCreateNotesResponse, error)
BatchCreateNotes mocks base method
func (*MockGrafeasClient) BatchCreateOccurrences ¶
func (m *MockGrafeasClient) BatchCreateOccurrences(arg0 context.Context, arg1 *grafeas_go_proto.BatchCreateOccurrencesRequest, arg2 ...grpc.CallOption) (*grafeas_go_proto.BatchCreateOccurrencesResponse, error)
BatchCreateOccurrences mocks base method
func (*MockGrafeasClient) CreateNote ¶
func (m *MockGrafeasClient) CreateNote(arg0 context.Context, arg1 *grafeas_go_proto.CreateNoteRequest, arg2 ...grpc.CallOption) (*grafeas_go_proto.Note, error)
CreateNote mocks base method
func (*MockGrafeasClient) CreateOccurrence ¶
func (m *MockGrafeasClient) CreateOccurrence(arg0 context.Context, arg1 *grafeas_go_proto.CreateOccurrenceRequest, arg2 ...grpc.CallOption) (*grafeas_go_proto.Occurrence, error)
CreateOccurrence mocks base method
func (*MockGrafeasClient) DeleteNote ¶
func (m *MockGrafeasClient) DeleteNote(arg0 context.Context, arg1 *grafeas_go_proto.DeleteNoteRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error)
DeleteNote mocks base method
func (*MockGrafeasClient) DeleteOccurrence ¶
func (m *MockGrafeasClient) DeleteOccurrence(arg0 context.Context, arg1 *grafeas_go_proto.DeleteOccurrenceRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error)
DeleteOccurrence mocks base method
func (*MockGrafeasClient) EXPECT ¶
func (m *MockGrafeasClient) EXPECT() *MockGrafeasClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockGrafeasClient) GetNote ¶
func (m *MockGrafeasClient) GetNote(arg0 context.Context, arg1 *grafeas_go_proto.GetNoteRequest, arg2 ...grpc.CallOption) (*grafeas_go_proto.Note, error)
GetNote mocks base method
func (*MockGrafeasClient) GetOccurrence ¶
func (m *MockGrafeasClient) GetOccurrence(arg0 context.Context, arg1 *grafeas_go_proto.GetOccurrenceRequest, arg2 ...grpc.CallOption) (*grafeas_go_proto.Occurrence, error)
GetOccurrence mocks base method
func (*MockGrafeasClient) GetOccurrenceNote ¶
func (m *MockGrafeasClient) GetOccurrenceNote(arg0 context.Context, arg1 *grafeas_go_proto.GetOccurrenceNoteRequest, arg2 ...grpc.CallOption) (*grafeas_go_proto.Note, error)
GetOccurrenceNote mocks base method
func (*MockGrafeasClient) GetVulnerabilityOccurrencesSummary ¶
func (m *MockGrafeasClient) GetVulnerabilityOccurrencesSummary(arg0 context.Context, arg1 *grafeas_go_proto.GetVulnerabilityOccurrencesSummaryRequest, arg2 ...grpc.CallOption) (*grafeas_go_proto.VulnerabilityOccurrencesSummary, error)
GetVulnerabilityOccurrencesSummary mocks base method
func (*MockGrafeasClient) ListNoteOccurrences ¶
func (m *MockGrafeasClient) ListNoteOccurrences(arg0 context.Context, arg1 *grafeas_go_proto.ListNoteOccurrencesRequest, arg2 ...grpc.CallOption) (*grafeas_go_proto.ListNoteOccurrencesResponse, error)
ListNoteOccurrences mocks base method
func (*MockGrafeasClient) ListNotes ¶
func (m *MockGrafeasClient) ListNotes(arg0 context.Context, arg1 *grafeas_go_proto.ListNotesRequest, arg2 ...grpc.CallOption) (*grafeas_go_proto.ListNotesResponse, error)
ListNotes mocks base method
func (*MockGrafeasClient) ListOccurrences ¶
func (m *MockGrafeasClient) ListOccurrences(arg0 context.Context, arg1 *grafeas_go_proto.ListOccurrencesRequest, arg2 ...grpc.CallOption) (*grafeas_go_proto.ListOccurrencesResponse, error)
ListOccurrences mocks base method
func (*MockGrafeasClient) UpdateNote ¶
func (m *MockGrafeasClient) UpdateNote(arg0 context.Context, arg1 *grafeas_go_proto.UpdateNoteRequest, arg2 ...grpc.CallOption) (*grafeas_go_proto.Note, error)
UpdateNote mocks base method
func (*MockGrafeasClient) UpdateOccurrence ¶
func (m *MockGrafeasClient) UpdateOccurrence(arg0 context.Context, arg1 *grafeas_go_proto.UpdateOccurrenceRequest, arg2 ...grpc.CallOption) (*grafeas_go_proto.Occurrence, error)
UpdateOccurrence mocks base method
type MockGrafeasClientMockRecorder ¶
type MockGrafeasClientMockRecorder struct {
// contains filtered or unexported fields
}
MockGrafeasClientMockRecorder is the mock recorder for MockGrafeasClient
func (*MockGrafeasClientMockRecorder) BatchCreateNotes ¶
func (mr *MockGrafeasClientMockRecorder) BatchCreateNotes(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
BatchCreateNotes indicates an expected call of BatchCreateNotes
func (*MockGrafeasClientMockRecorder) BatchCreateOccurrences ¶
func (mr *MockGrafeasClientMockRecorder) BatchCreateOccurrences(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
BatchCreateOccurrences indicates an expected call of BatchCreateOccurrences
func (*MockGrafeasClientMockRecorder) CreateNote ¶
func (mr *MockGrafeasClientMockRecorder) CreateNote(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
CreateNote indicates an expected call of CreateNote
func (*MockGrafeasClientMockRecorder) CreateOccurrence ¶
func (mr *MockGrafeasClientMockRecorder) CreateOccurrence(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
CreateOccurrence indicates an expected call of CreateOccurrence
func (*MockGrafeasClientMockRecorder) DeleteNote ¶
func (mr *MockGrafeasClientMockRecorder) DeleteNote(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
DeleteNote indicates an expected call of DeleteNote
func (*MockGrafeasClientMockRecorder) DeleteOccurrence ¶
func (mr *MockGrafeasClientMockRecorder) DeleteOccurrence(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
DeleteOccurrence indicates an expected call of DeleteOccurrence
func (*MockGrafeasClientMockRecorder) GetNote ¶
func (mr *MockGrafeasClientMockRecorder) GetNote(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetNote indicates an expected call of GetNote
func (*MockGrafeasClientMockRecorder) GetOccurrence ¶
func (mr *MockGrafeasClientMockRecorder) GetOccurrence(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetOccurrence indicates an expected call of GetOccurrence
func (*MockGrafeasClientMockRecorder) GetOccurrenceNote ¶
func (mr *MockGrafeasClientMockRecorder) GetOccurrenceNote(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetOccurrenceNote indicates an expected call of GetOccurrenceNote
func (*MockGrafeasClientMockRecorder) GetVulnerabilityOccurrencesSummary ¶
func (mr *MockGrafeasClientMockRecorder) GetVulnerabilityOccurrencesSummary(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetVulnerabilityOccurrencesSummary indicates an expected call of GetVulnerabilityOccurrencesSummary
func (*MockGrafeasClientMockRecorder) ListNoteOccurrences ¶
func (mr *MockGrafeasClientMockRecorder) ListNoteOccurrences(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ListNoteOccurrences indicates an expected call of ListNoteOccurrences
func (*MockGrafeasClientMockRecorder) ListNotes ¶
func (mr *MockGrafeasClientMockRecorder) ListNotes(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ListNotes indicates an expected call of ListNotes
func (*MockGrafeasClientMockRecorder) ListOccurrences ¶
func (mr *MockGrafeasClientMockRecorder) ListOccurrences(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ListOccurrences indicates an expected call of ListOccurrences
func (*MockGrafeasClientMockRecorder) UpdateNote ¶
func (mr *MockGrafeasClientMockRecorder) UpdateNote(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
UpdateNote indicates an expected call of UpdateNote
func (*MockGrafeasClientMockRecorder) UpdateOccurrence ¶
func (mr *MockGrafeasClientMockRecorder) UpdateOccurrence(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
UpdateOccurrence indicates an expected call of UpdateOccurrence
type MockGrafeasProjectsClient ¶
type MockGrafeasProjectsClient struct {
// contains filtered or unexported fields
}
MockGrafeasProjectsClient is a mock of ProjectsClient interface
func NewMockGrafeasProjectsClient ¶
func NewMockGrafeasProjectsClient(ctrl *gomock.Controller) *MockGrafeasProjectsClient
NewMockGrafeasProjectsClient creates a new mock instance
func (*MockGrafeasProjectsClient) CreateProject ¶
func (m *MockGrafeasProjectsClient) CreateProject(arg0 context.Context, arg1 *project_go_proto.CreateProjectRequest, arg2 ...grpc.CallOption) (*project_go_proto.Project, error)
CreateProject mocks base method
func (*MockGrafeasProjectsClient) DeleteProject ¶
func (m *MockGrafeasProjectsClient) DeleteProject(arg0 context.Context, arg1 *project_go_proto.DeleteProjectRequest, arg2 ...grpc.CallOption) (*emptypb.Empty, error)
DeleteProject mocks base method
func (*MockGrafeasProjectsClient) EXPECT ¶
func (m *MockGrafeasProjectsClient) EXPECT() *MockGrafeasProjectsClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockGrafeasProjectsClient) GetProject ¶
func (m *MockGrafeasProjectsClient) GetProject(arg0 context.Context, arg1 *project_go_proto.GetProjectRequest, arg2 ...grpc.CallOption) (*project_go_proto.Project, error)
GetProject mocks base method
func (*MockGrafeasProjectsClient) ListProjects ¶
func (m *MockGrafeasProjectsClient) ListProjects(arg0 context.Context, arg1 *project_go_proto.ListProjectsRequest, arg2 ...grpc.CallOption) (*project_go_proto.ListProjectsResponse, error)
ListProjects mocks base method
type MockGrafeasProjectsClientMockRecorder ¶
type MockGrafeasProjectsClientMockRecorder struct {
// contains filtered or unexported fields
}
MockGrafeasProjectsClientMockRecorder is the mock recorder for MockGrafeasProjectsClient
func (*MockGrafeasProjectsClientMockRecorder) CreateProject ¶
func (mr *MockGrafeasProjectsClientMockRecorder) CreateProject(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
CreateProject indicates an expected call of CreateProject
func (*MockGrafeasProjectsClientMockRecorder) DeleteProject ¶
func (mr *MockGrafeasProjectsClientMockRecorder) DeleteProject(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
DeleteProject indicates an expected call of DeleteProject
func (*MockGrafeasProjectsClientMockRecorder) GetProject ¶
func (mr *MockGrafeasProjectsClientMockRecorder) GetProject(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
GetProject indicates an expected call of GetProject
func (*MockGrafeasProjectsClientMockRecorder) ListProjects ¶
func (mr *MockGrafeasProjectsClientMockRecorder) ListProjects(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
ListProjects indicates an expected call of ListProjects
type MockOpaClient ¶
type MockOpaClient struct {
// contains filtered or unexported fields
}
MockOpaClient is a mock of Client interface
func NewMockOpaClient ¶
func NewMockOpaClient(ctrl *gomock.Controller) *MockOpaClient
NewMockOpaClient creates a new mock instance
func (*MockOpaClient) EXPECT ¶
func (m *MockOpaClient) EXPECT() *MockOpaClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockOpaClient) EvaluatePolicy ¶
func (m *MockOpaClient) EvaluatePolicy(arg0 string, arg1 []byte) (*opa.EvaluatePolicyResponse, error)
EvaluatePolicy mocks base method
func (*MockOpaClient) InitializePolicy ¶
func (m *MockOpaClient) InitializePolicy(arg0 string) opa.ClientError
InitializePolicy mocks base method
type MockOpaClientMockRecorder ¶
type MockOpaClientMockRecorder struct {
// contains filtered or unexported fields
}
MockOpaClientMockRecorder is the mock recorder for MockOpaClient
func (*MockOpaClientMockRecorder) EvaluatePolicy ¶
func (mr *MockOpaClientMockRecorder) EvaluatePolicy(arg0, arg1 interface{}) *gomock.Call
EvaluatePolicy indicates an expected call of EvaluatePolicy
func (*MockOpaClientMockRecorder) InitializePolicy ¶
func (mr *MockOpaClientMockRecorder) InitializePolicy(arg0 interface{}) *gomock.Call
InitializePolicy indicates an expected call of InitializePolicy