Versions in this module Expand all Collapse all v1 v1.0.2 Mar 13, 2026 v1.0.1 Mar 13, 2026 Changes in this version + func BuildTestJAR(filename, content string) []byte + func BuildTestJARMulti(files map[string]string) []byte + func ComputeSHA256(data []byte) string + type ExecCall struct + Command []string + Container string + Namespace string + PodName string + type MockCronJob struct + Func func() + ID cron.EntryID + Removed bool + Spec string + type MockCronScheduler struct + AddFuncError error + Jobs map[cron.EntryID]*MockCronJob + Started bool + func NewMockCronScheduler() *MockCronScheduler + func (m *MockCronScheduler) AddFunc(spec string, cmd func()) (cron.EntryID, error) + func (m *MockCronScheduler) Entries() []cron.Entry + func (m *MockCronScheduler) GetJob(id cron.EntryID) *MockCronJob + func (m *MockCronScheduler) GetJobBySpec(spec string) *MockCronJob + func (m *MockCronScheduler) Remove(id cron.EntryID) + func (m *MockCronScheduler) Reset() + func (m *MockCronScheduler) Start() + func (m *MockCronScheduler) Stop() + func (m *MockCronScheduler) TriggerJob(id cron.EntryID) + type MockHTTPServer struct + Downloads []string + FailOnPath map[string]bool + FileData map[string][]byte + Server *httptest.Server + func NewMockHTTPServer() *MockHTTPServer + func (m *MockHTTPServer) AddFile(path string, data []byte) + func (m *MockHTTPServer) Close() + func (m *MockHTTPServer) GetDownloads() []string + func (m *MockHTTPServer) Reset() + func (m *MockHTTPServer) SetFailOnPath(path string, fail bool) + func (m *MockHTTPServer) URL() string + type MockMetricsRecorder struct + PluginAPICalls int + PluginAPISources []string + func (m *MockMetricsRecorder) RecordPluginAPICall(source string, _ error, _ time.Duration) + func (m *MockMetricsRecorder) RecordReconcile(_ string, _ error, _ time.Duration) + func (m *MockMetricsRecorder) RecordSolverRun(_ string, _ error, _ time.Duration) + func (m *MockMetricsRecorder) RecordUpdate(_ bool) + type MockPaperAPI struct + BuildInfo *paper.BuildInfo + BuildInfoErr error + BuildNumbers []int + BuildsErr error + GetBuildCalls []string + GetBuildsCalls []string + GetVersionsCalls int + Versions []string + VersionsErr error + func (m *MockPaperAPI) GetBuilds(_ context.Context, version string) ([]int, error) + func (m *MockPaperAPI) GetPaperBuild(_ context.Context, version string) (*paper.BuildInfo, error) + func (m *MockPaperAPI) GetPaperVersions(_ context.Context) ([]string, error) + type MockPluginClient struct + CompatErr error + CompatInfo plugins.CompatibilityInfo + GetCompatCalls int + GetCompatProjects []string + GetCompatVersions []string + GetVersionsCalls int + GetVersionsProjects []string + VersionErr error + Versions []plugins.PluginVersion + func (m *MockPluginClient) GetCompatibility(ctx context.Context, project, version string) (plugins.CompatibilityInfo, error) + func (m *MockPluginClient) GetVersions(ctx context.Context, project string) ([]plugins.PluginVersion, error) + type MockPodExecutor struct + Calls []ExecCall + Err error + Output []byte + func (m *MockPodExecutor) ExecInPod(_ context.Context, namespace, podName, container string, command []string) ([]byte, error) + type MockPodExecutorFunc struct + Calls []ExecCall + ExecFunc func(ctx context.Context, namespace, podName, container string, command []string) ([]byte, error) + func (m *MockPodExecutorFunc) ExecInPod(ctx context.Context, namespace, podName, container string, command []string) ([]byte, error) + type MockRegistryAPI struct + ImageErr error + ImageExist bool + ImageExistCalls []string + ListTagsCalls int + TagExists map[string]bool + Tags []string + TagsErr error + func (m *MockRegistryAPI) ImageExists(_ context.Context, _ string, tag string) (bool, error) + func (m *MockRegistryAPI) ListTags(_ context.Context, _ string, _ int) ([]string, error)