Documentation ¶
Overview ¶
Package reporter is a generated GoMock package.
package reporter contains an abstraction for scanning Coder Kubernetes workspaces using JFrog JFrog and uploading results to a Coder deployment.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoderClient ¶
type K8sReporter ¶
type K8sReporter struct { Client kubernetes.Interface LabelSelector string FieldSelector string Namespace string CoderClient CoderClient Logger slog.Logger JFrogClient jfrog.Client ResultsChan chan codersdk.JFrogXrayScan // contains filtered or unexported fields }
func (*K8sReporter) Start ¶
func (k *K8sReporter) Start(stop chan struct{})
type MockCoderClient ¶
type MockCoderClient struct {
// contains filtered or unexported fields
}
MockCoderClient is a mock of CoderClient interface.
func NewMockCoderClient ¶
func NewMockCoderClient(ctrl *gomock.Controller) *MockCoderClient
NewMockCoderClient creates a new mock instance.
func (*MockCoderClient) AgentManifest ¶
func (m *MockCoderClient) AgentManifest(arg0 context.Context, arg1 string) (agentsdk.Manifest, error)
AgentManifest mocks base method.
func (*MockCoderClient) EXPECT ¶
func (m *MockCoderClient) EXPECT() *MockCoderClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCoderClient) PostJFrogXrayScan ¶
func (m *MockCoderClient) PostJFrogXrayScan(arg0 context.Context, arg1 codersdk.JFrogXrayScan) error
PostJFrogXrayScan mocks base method.
type MockCoderClientMockRecorder ¶
type MockCoderClientMockRecorder struct {
// contains filtered or unexported fields
}
MockCoderClientMockRecorder is the mock recorder for MockCoderClient.
func (*MockCoderClientMockRecorder) AgentManifest ¶
func (mr *MockCoderClientMockRecorder) AgentManifest(arg0, arg1 any) *gomock.Call
AgentManifest indicates an expected call of AgentManifest.
func (*MockCoderClientMockRecorder) PostJFrogXrayScan ¶
func (mr *MockCoderClientMockRecorder) PostJFrogXrayScan(arg0, arg1 any) *gomock.Call
PostJFrogXrayScan indicates an expected call of PostJFrogXrayScan.